public class TransactionAttributeEditor extends PropertyEditorSupport
TransactionAttribute
objects. Accepts a String of form
PROPAGATION_NAME, ISOLATION_NAME, readOnly, timeout_NNNN,+Exception1,-Exception2
where only propagation code is required. For example:
PROPAGATION_MANDATORY, ISOLATION_DEFAULT
The tokens can be in any order. Propagation and isolation codes must use the names of the constants in the TransactionDefinition class. Timeout values are in seconds. If no timeout is specified, the transaction manager will apply a default timeout specific to the particular transaction manager.
A "+" before an exception name substring indicates that transactions should commit even if this exception is thrown; a "-" that they should roll back.
TransactionDefinition
,
Constants
Constructor and Description |
---|
TransactionAttributeEditor() |
Modifier and Type | Method and Description |
---|---|
void |
setAsText(String text)
Format is PROPAGATION_NAME,ISOLATION_NAME,readOnly,timeout_NNNN,+Exception1,-Exception2.
|
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
public void setAsText(String text) throws IllegalArgumentException
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
IllegalArgumentException