Package org.datanucleus.store.mongodb
Class ConnectionFactoryImpl.ManagedConnectionImpl
- java.lang.Object
-
- org.datanucleus.store.connection.AbstractManagedConnection
-
- org.datanucleus.store.mongodb.ConnectionFactoryImpl.ManagedConnectionImpl
-
- All Implemented Interfaces:
org.datanucleus.store.connection.ManagedConnection
- Enclosing class:
- ConnectionFactoryImpl
public class ConnectionFactoryImpl.ManagedConnectionImpl extends org.datanucleus.store.connection.AbstractManagedConnection
-
-
Constructor Summary
Constructors Constructor Description ManagedConnectionImpl(org.datanucleus.ExecutionContext ec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
closeAfterTransactionEnd()
Object
getConnection()
XAResource
getXAResource()
protected void
obtainNewConnection()
void
release()
-
Methods inherited from class org.datanucleus.store.connection.AbstractManagedConnection
addListener, closeOnRelease, commitOnRelease, incrementUseCount, isLocked, lock, releaseSavepoint, removeListener, rollbackToSavepoint, setCloseOnRelease, setCommitOnRelease, setSavepoint, toString, transactionFlushed, transactionPreClose, unlock
-
-
-
-
Method Detail
-
closeAfterTransactionEnd
public boolean closeAfterTransactionEnd()
- Specified by:
closeAfterTransactionEnd
in interfaceorg.datanucleus.store.connection.ManagedConnection
- Overrides:
closeAfterTransactionEnd
in classorg.datanucleus.store.connection.AbstractManagedConnection
-
getConnection
public Object getConnection()
-
obtainNewConnection
protected void obtainNewConnection()
-
release
public void release()
- Specified by:
release
in interfaceorg.datanucleus.store.connection.ManagedConnection
- Overrides:
release
in classorg.datanucleus.store.connection.AbstractManagedConnection
-
close
public void close()
- Specified by:
close
in interfaceorg.datanucleus.store.connection.ManagedConnection
- Overrides:
close
in classorg.datanucleus.store.connection.AbstractManagedConnection
-
getXAResource
public XAResource getXAResource()
- Specified by:
getXAResource
in interfaceorg.datanucleus.store.connection.ManagedConnection
- Overrides:
getXAResource
in classorg.datanucleus.store.connection.AbstractManagedConnection
-
-