S2i18n/tx
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[S2i18n]]
* 元文 [#b923d83e]
**トランザクションの自動制御 [#k9290a7a]
S2Txの機能を使って、POJO(普通のJavaのクラス)に対して、Asp...
**トランザクション属性 [#j854a034]
コンポーネント名がAdviceの名前です
|属性|コンポーネント名|説明|
|Required|j2ee.requiredTx|トランザクションが開始されてい...
|RequiresNew|j2ee.requiresNewTx|常に新しいトランザクショ...
|Mandatory|j2ee.mandatoryTx|トランザクションが既に開始さ...
**Example [#j5003a38]
Hoge.java
package examples.tx;
public interface Hoge {
public void foo();
}
HogeImpl.java
package examples.tx;
public class HogeImpl implements Hoge {
public void foo() {
System.out.println("foo");
}
}
HogeClient.dicon
<components>
<include path="j2ee.dicon"/>
<component class="examples.tx.HogeImpl">
<aspect>j2ee.requiredTx</aspect>
</component>
</components>
HogeClient.java
package examples.tx;
import org.seasar.framework.container.S2Container;
import org.seasar.framework.container.factory.S2Containe...
public class HogeClient {
private static final String PATH =
"examples/tx/HogeClient.dicon";
public static void main(String[] args) {
S2Container container = S2ContainerFactory.create...
Hoge hoge = (Hoge) container.getComponent(Hoge.cl...
hoge.foo();
}
}
**実行結果 [#pf401c0d]
DEBUG 2004-03-14 18:05:18,402 [main] Transaction.begin()
foo
DEBUG 2004-03-14 18:05:18,432 [main] Transaction.commit()
j2ee.diconはS2としてあらかじめ用意(srcの直下)されています...
* 英文 [#df1b8d9a]
**Transaction Management [#e9683c01]
S2Tx provides the automatic transaction management by usi...
**Transaction Attributes [#n2eb75ff]
The column of the component is a name of Advice.
|attribute|component|description|
|Required|j2ee.requiredTx|If the method's caller is alrea...
|RequiresNew|j2ee.requiresNewTx|A new transaction is crea...
|Mandatory|j2ee.mandatoryTx|The method will not even star...
**Example [#m74c5aad]
Hoge.java
package examples.tx;
public interface Hoge {
public void foo();
}
HogeImpl.java
package examples.tx;
public class HogeImpl implements Hoge {
public void foo() {
System.out.println("foo");
}
}
HogeClient.dicon
<components>
<include path="j2ee.dicon"/>
<component class="examples.tx.HogeImpl">
<aspect>j2ee.requiredTx</aspect>
</component>
</components>
HogeClient.java
package examples.tx;
import org.seasar.framework.container.S2Container;
import org.seasar.framework.container.factory.S2Containe...
public class HogeClient {
private static final String PATH =
"examples/tx/HogeClient.dicon";
public static void main(String[] args) {
S2Container container = S2ContainerFactory.create...
Hoge hoge = (Hoge) container.getComponent(Hoge.cl...
hoge.foo();
}
}
**Execution result [#n22e696c]
DEBUG 2004-03-14 18:05:18,402 [main] Transaction.begin()
foo
DEBUG 2004-03-14 18:05:18,432 [main] Transaction.commit()
J2ee.dicon file is in S2(under src directory). You only s...
-12 -- [[abcd]] &new{2005-03-08 18:10:34 (火)};
-acbd -- [[12]] &new{2005-03-08 18:12:34 (火)};
#comment
終了行:
[[S2i18n]]
* 元文 [#b923d83e]
**トランザクションの自動制御 [#k9290a7a]
S2Txの機能を使って、POJO(普通のJavaのクラス)に対して、Asp...
**トランザクション属性 [#j854a034]
コンポーネント名がAdviceの名前です
|属性|コンポーネント名|説明|
|Required|j2ee.requiredTx|トランザクションが開始されてい...
|RequiresNew|j2ee.requiresNewTx|常に新しいトランザクショ...
|Mandatory|j2ee.mandatoryTx|トランザクションが既に開始さ...
**Example [#j5003a38]
Hoge.java
package examples.tx;
public interface Hoge {
public void foo();
}
HogeImpl.java
package examples.tx;
public class HogeImpl implements Hoge {
public void foo() {
System.out.println("foo");
}
}
HogeClient.dicon
<components>
<include path="j2ee.dicon"/>
<component class="examples.tx.HogeImpl">
<aspect>j2ee.requiredTx</aspect>
</component>
</components>
HogeClient.java
package examples.tx;
import org.seasar.framework.container.S2Container;
import org.seasar.framework.container.factory.S2Containe...
public class HogeClient {
private static final String PATH =
"examples/tx/HogeClient.dicon";
public static void main(String[] args) {
S2Container container = S2ContainerFactory.create...
Hoge hoge = (Hoge) container.getComponent(Hoge.cl...
hoge.foo();
}
}
**実行結果 [#pf401c0d]
DEBUG 2004-03-14 18:05:18,402 [main] Transaction.begin()
foo
DEBUG 2004-03-14 18:05:18,432 [main] Transaction.commit()
j2ee.diconはS2としてあらかじめ用意(srcの直下)されています...
* 英文 [#df1b8d9a]
**Transaction Management [#e9683c01]
S2Tx provides the automatic transaction management by usi...
**Transaction Attributes [#n2eb75ff]
The column of the component is a name of Advice.
|attribute|component|description|
|Required|j2ee.requiredTx|If the method's caller is alrea...
|RequiresNew|j2ee.requiresNewTx|A new transaction is crea...
|Mandatory|j2ee.mandatoryTx|The method will not even star...
**Example [#m74c5aad]
Hoge.java
package examples.tx;
public interface Hoge {
public void foo();
}
HogeImpl.java
package examples.tx;
public class HogeImpl implements Hoge {
public void foo() {
System.out.println("foo");
}
}
HogeClient.dicon
<components>
<include path="j2ee.dicon"/>
<component class="examples.tx.HogeImpl">
<aspect>j2ee.requiredTx</aspect>
</component>
</components>
HogeClient.java
package examples.tx;
import org.seasar.framework.container.S2Container;
import org.seasar.framework.container.factory.S2Containe...
public class HogeClient {
private static final String PATH =
"examples/tx/HogeClient.dicon";
public static void main(String[] args) {
S2Container container = S2ContainerFactory.create...
Hoge hoge = (Hoge) container.getComponent(Hoge.cl...
hoge.foo();
}
}
**Execution result [#n22e696c]
DEBUG 2004-03-14 18:05:18,402 [main] Transaction.begin()
foo
DEBUG 2004-03-14 18:05:18,432 [main] Transaction.commit()
J2ee.dicon file is in S2(under src directory). You only s...
-12 -- [[abcd]] &new{2005-03-08 18:10:34 (火)};
-acbd -- [[12]] &new{2005-03-08 18:12:34 (火)};
#comment
ページ名: