| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Default implementation of the TransactionDefinition interface, offering bean-style configuration and sensible default values (PROPAGATION_REQUIRED, ISOLATION_DEFAULT, TIMEOUT_DEFAULT, readOnly=false).
Base class for both TransactionTemplate and DefaultTransactionAttribute.
| Field Summary | |
final static String | READ_ONLY_MARKERMarker for read-only transactions in description strings |
final static String | TIMEOUT_PREFIXPrefix for transaction timeout values in description strings |
| Constructor Summary | |
DefaultTransactionDefinition() | |
DefaultTransactionDefinition(int propagationBehavior) | |
| Method Summary | |
boolean | equals(Object other)This implementation of equals compares the toString results. |
final int | getIsolationLevel() |
final int | getPropagationBehavior() |
final int | getTimeout() |
int | hashCode()This implementation of hashCode returns toString's hash code. |
final boolean | isReadOnly() |
final void | setIsolationLevel(int isolationLevel) |
final void | setIsolationLevelName(String constantName)Set the isolation level by the name of the corresponding constant in TransactionDefinition, e.g. |
final void | setPropagationBehavior(int propagationBehavior) |
final void | setPropagationBehaviorName(String constantName)Set the propagation behavior by the name of the corresponding constant in TransactionDefinition, e.g. |
final void | setReadOnly(boolean readOnly) |
final void | setTimeout(int timeout) |
String | toString()Return an identifying description of this transaction definition. |
| Field Detail |
public final static String READ_ONLY_MARKER
public final static String TIMEOUT_PREFIX
| Constructor Detail |
public DefaultTransactionDefinition()
public DefaultTransactionDefinition(int propagationBehavior)
| Method Detail |
public boolean equals(Object other)
public final int getIsolationLevel()
public final int getPropagationBehavior()
public final int getTimeout()
public int hashCode()
public final boolean isReadOnly()
public final void setIsolationLevel(int isolationLevel)
public final void setIsolationLevelName(String constantName)
throws java.lang.IllegalArgumentException
public final void setPropagationBehavior(int propagationBehavior)
public final void setPropagationBehaviorName(String constantName)
throws java.lang.IllegalArgumentException
public final void setReadOnly(boolean readOnly)
public final void setTimeout(int timeout)
public String toString()
Has to be overridden in subclasses for correct equals and hashCode behavior. Alternatively, equals and hashCode can be overridden themselves.
| Association Links |
to Class java.lang.String
to Class org.springframework.core.Constants
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||