Methods | Description |
---|---|
int getPropagationBehavior() | It returns the propagation behavior.Spring offers the majority of the exchange propagation choices different from EJB CMT. |
int getIsolationLevel() | It gives back the extent to which this exchange is segregated from the work of different exchanges. |
string getName() | It returns the title of exchange. |
int getTimeout() | The transaction should complete while returns the time in seconds . |
boolean isReadOnly() | If exchange is readable then it returns. |
Isolation | Description |
---|---|
TransactionDefinition.ISOLATION_DEFAULT | It is specific to the data source. |
TransactionDefinition.ISOLATION_READ_COMMITTED | Shows that filthy peruses are anticipated; non-repeatable peruses and ghost peruses can happen. |
TransactionDefinition.ISOLATION_READ_UNCOMMITTED | Demonstrates that filthy peruses, non-repeatable peruses and apparition peruses can happen. |
TransactionDefinition.ISOLATION_REPEATABLE_READ | Demonstrates that filthy peruses and non-repeatable peruses are avoided; ghost peruses can happen. |
TransactionDefinition.ISOLATION_SERIALIZE | Demonstrates that messy peruses, non-repeatable peruses and ghost peruses are averted. |
Propagation | Description |
---|---|
TransactionDefinition.PROPAGATION_MANDATORY | Method ought to keep running in an exchange and nothing exists-exception will be thrown. |
TransactionDefinition.PROPAGATION_NESTED | METHOD ought to keep running in a nested exchange |
TransactionDefinition.PROPAGATION_NEVER | Current method ought not keep running in a transaction.If exists an exception will be thrown. |
TransactionDefinition.PROPAGATION_NOT_SUPPORTED | Method ought not keep running in a transaction.existing exchange will be suspended till method finishes the execution. |
TransactionDefinition.PROPAGATION_REQUIRED | Method ought to keep running in a transaction.If already exists,method will keep running in that and if not,a new transaction will be made. |
TransactionDefinition.PROPAGATION_REQUIRES_NEW | Create a new transaction, suspending the present transaction if one exists. |
TransactionDefinition.PROPAGATION_SUPPORTS | Method ought to keep running in another transaction.If already exists,it will be suspended till the method wraps up. |