|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.transaction.support.DefaultTransactionDefinition
org.springframework.transaction.interceptor.DefaultTransactionAttribute
public class DefaultTransactionAttribute
Transaction attribute that takes the EJB approach to rolling back on runtime, but not checked, exceptions.
| Field Summary | |
|---|---|
static String |
COMMIT_RULE_PREFIX
Prefix for commit-on-exception rules in description strings |
static String |
ROLLBACK_RULE_PREFIX
Prefix for rollback-on-exception rules in description strings |
| Fields inherited from class org.springframework.transaction.support.DefaultTransactionDefinition |
|---|
READ_ONLY_MARKER, TIMEOUT_PREFIX |
| Fields inherited from interface org.springframework.transaction.TransactionDefinition |
|---|
ISOLATION_CONSTANT_PREFIX, ISOLATION_DEFAULT, ISOLATION_READ_COMMITTED, ISOLATION_READ_UNCOMMITTED, ISOLATION_REPEATABLE_READ, ISOLATION_SERIALIZABLE, PROPAGATION_CONSTANT_PREFIX, PROPAGATION_MANDATORY, PROPAGATION_NESTED, PROPAGATION_NEVER, PROPAGATION_NOT_SUPPORTED, PROPAGATION_REQUIRED, PROPAGATION_REQUIRES_NEW, PROPAGATION_SUPPORTS, TIMEOUT_DEFAULT |
| Constructor Summary | |
|---|---|
DefaultTransactionAttribute()
Create a new DefaultTransactionAttribute, with default settings. |
|
DefaultTransactionAttribute(int propagationBehavior)
Create a new DefaultTransactionAttribute with the the given propagation behavior. |
|
DefaultTransactionAttribute(TransactionAttribute other)
Copy constructor. |
|
| Method Summary | |
|---|---|
boolean |
rollbackOn(Throwable ex)
Default behavior is as with EJB: rollback on unchecked exception. |
String |
toString()
Return a description of this transaction attribute. |
| Methods inherited from class org.springframework.transaction.support.DefaultTransactionDefinition |
|---|
equals, getDefinitionDescription, getIsolationLevel, getName, getPropagationBehavior, getTimeout, hashCode, isReadOnly, setIsolationLevel, setIsolationLevelName, setName, setPropagationBehavior, setPropagationBehaviorName, setReadOnly, setTimeout |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.springframework.transaction.TransactionDefinition |
|---|
getIsolationLevel, getName, getPropagationBehavior, getTimeout, isReadOnly |
| Field Detail |
|---|
public static final String ROLLBACK_RULE_PREFIX
public static final String COMMIT_RULE_PREFIX
| Constructor Detail |
|---|
public DefaultTransactionAttribute()
DefaultTransactionDefinition.setPropagationBehavior(int),
DefaultTransactionDefinition.setIsolationLevel(int),
DefaultTransactionDefinition.setTimeout(int),
DefaultTransactionDefinition.setReadOnly(boolean),
DefaultTransactionDefinition.setName(java.lang.String)public DefaultTransactionAttribute(TransactionAttribute other)
DefaultTransactionDefinition.setPropagationBehavior(int),
DefaultTransactionDefinition.setIsolationLevel(int),
DefaultTransactionDefinition.setTimeout(int),
DefaultTransactionDefinition.setReadOnly(boolean),
DefaultTransactionDefinition.setName(java.lang.String)public DefaultTransactionAttribute(int propagationBehavior)
propagationBehavior - one of the propagation constants in the
TransactionDefinition interfaceDefaultTransactionDefinition.setIsolationLevel(int),
DefaultTransactionDefinition.setTimeout(int),
DefaultTransactionDefinition.setReadOnly(boolean)| Method Detail |
|---|
public boolean rollbackOn(Throwable ex)
rollbackOn in interface TransactionAttributeex - the exception to evaluate
public String toString()
toString in class DefaultTransactionDefinitionTransactionAttributeEditor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||