public class TransactionAttributeEditor extends PropertyEditorSupportSE
TransactionAttribute
オブジェクトの場合は PropertyEditor。フォームの文字列を受け入れます PROPAGATION_NAME, ISOLATION_NAME, readOnly, timeout_NNNN,+Exception1,-Exception2
伝播コードのみが必要な場合。例:
PROPAGATION_MANDATORY, ISOLATION_DEFAULT
トークンは任意の順序にすることができます。伝搬および分離コードは、TransactionDefinition クラスの定数の名前を使用する必要があります。タイムアウト値は秒単位です。タイムアウトが指定されていない場合、トランザクションマネージャーは特定のトランザクションマネージャーに固有のデフォルトのタイムアウトを適用します。
例外名の部分文字列の前の "+" は、この例外がスローされた場合でもトランザクションをコミットする必要があることを示します。ロールバックする必要がある "-"。
TransactionDefinition
, Constants
コンストラクターと説明 |
---|
TransactionAttributeEditor() |
修飾子と型 | メソッドと説明 |
---|---|
void | setAsText(StringSE text) 形式は PROPAGATION_NAME、ISOLATION_NAME、readOnly、timeout_NNNN、+ Exception1、-Exception2 です。 |
addPropertyChangeListenerSE, firePropertyChangeSE, getAsTextSE, getCustomEditorSE, getJavaInitializationStringSE, getSourceSE, getTagsSE, getValueSE, isPaintableSE, paintValueSE, removePropertyChangeListenerSE, setSourceSE, setValueSE, supportsCustomEditorSE
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public void setAsText(StringSE text) throws IllegalArgumentExceptionSE
PropertyEditorSE
の setAsTextSE
PropertyEditorSupportSE
の setAsTextSE
IllegalArgumentExceptionSE