Desenvolver e Download de Software Open Source

View Stickerサンプルファイル6

category(Tag) tree

file info

category(Tag)
サンプル定義ファイル
file name
sample6.xml
última actualização
2008-01-10 19:19
tipo
Plain Text
editor
Y.Murakamin
descrição
条件分岐のサンプルです
linguagem
Japanese
translate
<?xml version='1.0' encoding='Shift_JIS'?>
<!--
 ******************************************************************** 
 sticker sample
 
 Condition branching. 
  
 ******************************************************************** 
-->
<sticker version="0.1.3">
	<info>Server definition</info>
	<servers>
		<server name="your-server" driver="driver name"
			url="jdbc url" user="your name"
			pass="password" autocommit="false" />
	</servers>

	<info>cursor definition</info>
	<cursors>
		<cursor name="true_cursor">
			select 'TRUE' from dual
		</cursor>
		<cursor name="false_cursor">
			select 'FALSE' from dual
		</cursor>
	</cursors>

	<connect name="your-server">
		<if name="true_cursor" value="TRUE">
			<info>execute!</info>
		</if>

		<if name="false_cursor" value="FALSE">
			<info>not execute...</info>
		</if>
	</connect>

	<!-- exception definition -->
	<exception>
		<info>process failure!</info>
	</exception>
</sticker>