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 SummaryModifier 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 following- Connectionconstants:- Connection.TRANSACTION_READ_UNCOMMITTED,- Connection.TRANSACTION_READ_COMMITTED,- Connection.TRANSACTION_REPEATABLE_READ,- Connection.TRANSACTION_SERIALIZABLE, or- TransactionDescriptor.ISOLATION_DEFAULT
 
- 
connectionA 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:
 
- 
connectionSupplierA 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
 
-