Package org.apache.cayenne.tx
Class TransactionDescriptor.Builder
java.lang.Object
org.apache.cayenne.tx.TransactionDescriptor.Builder
- Enclosing class:
- TransactionDescriptor
Builder class for the TransactionDescriptor.
- Since:
- 4.2
-
Method Summary
Modifier and TypeMethodDescriptionbuild()connection(Connection connection) A custom connection provided by the TransactionDescriptor will be used instead of any other connection provided by tbe connection pool.connectionSupplier(Supplier<Connection> connectionSupplier) A custom connection provided by the TransactionDescriptor will be used instead of any other connection provided by tbe connection pool.isolation(int isolation) propagation(TransactionPropagation propagation)
-
Method Details
-
isolation
- Parameters:
isolation- one of the followingConnectionconstants:Connection.TRANSACTION_READ_UNCOMMITTED,Connection.TRANSACTION_READ_COMMITTED,Connection.TRANSACTION_REPEATABLE_READ,Connection.TRANSACTION_SERIALIZABLE, orTransactionDescriptor.ISOLATION_DEFAULT
-
connection
A custom connection provided by the TransactionDescriptor will be used instead of any other connection provided by tbe connection pool.- Parameters:
connection- custom connection- See Also:
-
connectionSupplier
A custom connection provided by the TransactionDescriptor will be used instead of any other connection provided by tbe connection pool.- Parameters:
connectionSupplier- custom connection supplier- See Also:
-
propagation
- Parameters:
propagation- transaction propagation behaviour- See Also:
-
build
-