Package org.apache.openjpa.kernel
Interface AutoDetach
- All Known Subinterfaces:
Broker
,DistributedBroker
- All Known Implementing Classes:
BrokerImpl
,DelegatingBroker
,DistributedBrokerImpl
,FinalizingBrokerImpl
public interface AutoDetach
Bit flags for when to automatically detach the entire persistence context.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Detach context on close.static final int
Detach context on transaction commit.static final int
Do not detach at all.static final int
Detach context on any nontransctional read, such that each nontransactional operation uses a new persistence context in essence.static final int
Detach context on failed transaction commit / rollback.static final String[]
static final int[]
-
Field Details
-
DETACH_CLOSE
static final int DETACH_CLOSEDetach context on close.- See Also:
-
DETACH_COMMIT
static final int DETACH_COMMITDetach context on transaction commit.- See Also:
-
DETACH_NONTXREAD
static final int DETACH_NONTXREADDetach context on any nontransctional read, such that each nontransactional operation uses a new persistence context in essence.- See Also:
-
DETACH_ROLLBACK
static final int DETACH_ROLLBACKDetach context on failed transaction commit / rollback.- See Also:
-
DETACH_NONE
static final int DETACH_NONEDo not detach at all. Skips proxying second-class containers.- See Also:
-
names
-
values
static final int[] values
-