Example usage for Java org.springframework.transaction.support TransactionTemplate fields, constructors, methods, implement or subclass
The text is from its open source code.
TransactionTemplate(PlatformTransactionManager transactionManager) Construct a new TransactionTemplate using the given transaction manager. | |
TransactionTemplate() Construct a new TransactionTemplate for bean usage. | |
TransactionTemplate(PlatformTransactionManager transactionManager, TransactionDefinition transactionDefinition) Construct a new TransactionTemplate using the given transaction manager, taking its default settings from the given transaction definition. |
void | afterPropertiesSet() |
T | execute(TransactionCallback |
int | getIsolationLevel() |
int | getPropagationBehavior() |
PlatformTransactionManager | getTransactionManager() Return the transaction management strategy to be used. |
void | setIsolationLevel(int isolationLevel) Set the isolation level. |
void | setName(String name) Set the name of this transaction. |
void | setPropagationBehavior(int propagationBehavior) Set the propagation behavior. |
void | setPropagationBehaviorName(String constantName) Set the propagation behavior by the name of the corresponding constant in TransactionDefinition, e.g. |
void | setReadOnly(boolean readOnly) Set whether to optimize as read-only transaction. |
void | setTimeout(int timeout) Set the timeout to apply, as number of seconds. |
void | setTransactionManager(@Nullable PlatformTransactionManager transactionManager) Set the transaction management strategy to be used. |