primaryConnectionFactory
ConnectionFactory primaryConnectionFactory
"Primary" ConnectionFactory, normally used for transactional operations.
ConnectionManagerThe "allocateConnection" method can create connections and enlist them (like most normal persistence operations need) or create a connection and return it without enlisting it into a transaction, for example on a read-only operation, or when running non-transactional, or to get schema information.
Connections can be locked per ExecutionContext basis. Locking of connections is used to handle the connection over to the user application. A locked connection denies any further access to the datastore, until the user application unlock it.
(package private) boolean(package private) final PersistenceNucleusContext(package private) ConnectionFactory(package private) Map<ExecutionContext, ManagedConnection> (package private) ConnectionFactory(package private) Map<ExecutionContext, ManagedConnection> (package private) final StoreManagerprivate ManagedConnectionallocateManagedConnection(boolean primary,
ExecutionContext ec,
Transaction transaction,
Map options) voidclose()voidprivate voidconfigureTransactionEventListener(Transaction transaction,
ManagedConnection mconn) voidgetConnection(boolean primary,
ExecutionContext ec,
Transaction txn) getConnection(int isolationLevel) getConnection(ExecutionContext ec,
Map options) protected ManagedConnectiongetManagedConnection(boolean primary,
ExecutionContext ec) protected voidputManagedConnection(boolean primary,
ExecutionContext ec,
ManagedConnection mconn) protected voidremoveManagedConnection(boolean primary,
ExecutionContext ec) clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConnectionstoreMgr - Store manager for whom we are managing connectionsConnectionManagerclose in interface ConnectionManagerdisableConnectionCaching in interface ConnectionManagerConnectionManagergetConnection in interface ConnectionManagerec - execution contextoptions - connection optionsConnectionManagergetConnection in interface ConnectionManagerisolationLevel - Isolation level (-1 implies use the default for the datastore).ConnectionManagergetConnection in interface ConnectionManagerprimary - Whether to take use the "primary" connection factory, otherwise takes the "secondary"ec - ExecutionContexttxn - The TransactionConnectionManagercloseAllConnections in interface ConnectionManagerec - The ExecutionContextprimary - Whether to use the primary ConnectionFactoryec - ExecutionContextprimary - Whether to use the primary ConnectionFactoryec - ExecutionContextprimary - Whether to use the primary ConnectionFactoryec - ExecutionContextmconn - The ManagedConnectionprimary - Whether this is the primary connection poolec - Key in the pooltransaction - The transactionoptions - Options for the connection (e.g isolation). These will override those of the txn itselftransaction - The transaction that we add a listener tomconn - Managed connection being used