org.apache.openjpa.kernel
Interface AutoDetach

All Known Subinterfaces:
Broker, OpenJPAEntityManager
All Known Implementing Classes:
BrokerImpl, DelegatingBroker, EntityManagerImpl

public interface AutoDetach

Bit flags for when to automatically detach the entire persistence context.


Field Summary
static int DETACH_CLOSE
          Detach context on close.
static int DETACH_COMMIT
          Detach context on transaction commit.
static int DETACH_NONTXREAD
          Detach context on any nontransctional read, such that each nontransactional operation uses a new persistence context in essence.
 

Field Detail

DETACH_CLOSE

static final int DETACH_CLOSE
Detach context on close.

See Also:
Constant Field Values

DETACH_COMMIT

static final int DETACH_COMMIT
Detach context on transaction commit.

See Also:
Constant Field Values

DETACH_NONTXREAD

static final int DETACH_NONTXREAD
Detach context on any nontransctional read, such that each nontransactional operation uses a new persistence context in essence.

See Also:
Constant Field Values


Copyright © 2006 Apache Software Foundation. All Rights Reserved.