Package org.apache.cayenne.tx
Class TransactionDescriptor
java.lang.Object
org.apache.cayenne.tx.TransactionDescriptor
Descriptor that allows to customize transaction logic.
 It provides following options:
 
- transaction isolation level
- transaction propagation logic.
- custom connection to use in a transaction
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class for the TransactionDescriptor.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intKeep database default isolation level
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()static TransactionDescriptorReturns descriptor with theTransactionPropagation.NESTEDpropagation and theISOLATION_DEFAULTisolation levelint
- 
Field Details- 
ISOLATION_DEFAULTpublic static final int ISOLATION_DEFAULTKeep database default isolation level- See Also:
 
 
- 
- 
Constructor Details- 
TransactionDescriptorprotected TransactionDescriptor()
 
- 
- 
Method Details- 
getIsolationpublic int getIsolation()- Returns:
- required isolation level
 
- 
getPropagation- Returns:
- required propagation behaviour
 
- 
getConnectionSupplier- Returns:
- custom connection supplier, passed by user
- Since:
- 4.2
 
- 
builder- Returns:
- TransactionDescriptor Builder
- Since:
- 4.2
 
- 
defaultDescriptorReturns descriptor with theTransactionPropagation.NESTEDpropagation and theISOLATION_DEFAULTisolation level- Returns:
- default descriptor
- Since:
- 4.2
 
 
-