|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.storage.sql.ra.ManagedConnectionImpl
public class ManagedConnectionImpl
The managed connection represents an actual physical connection to the
underlying storage. It is created by the ManagedConnectionFactory
,
and then encapsulated into a Connection
which is then returned to the
application (via the ConnectionFactory
).
If sharing is allowed, several different Connection
s may be
associated to a given ManagedConnection
, although not at the same
time.
Constructor Summary | |
---|---|
ManagedConnectionImpl(ManagedConnectionFactoryImpl managedConnectionFactory,
ConnectionRequestInfoImpl connectionRequestInfo)
Creates a new physical connection to the underlying storage. |
Method Summary | |
---|---|
void |
addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
Called by the application server to add a listener who should be notified of all relevant events on this connection. |
void |
associateConnection(java.lang.Object object)
Called by the application server to change the association of an application-level Connection handle with a
ManagedConnection instance. |
void |
cleanup()
Cleans up the physical connection, so that it may be reused. |
void |
destroy()
Destroys the physical connection. |
javax.resource.cci.Connection |
getConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
Creates a new Connection handle to this ManagedConnection
. |
java.lang.String |
getEISProductName()
|
java.lang.String |
getEISProductVersion()
|
javax.resource.spi.LocalTransaction |
getLocalTransaction()
|
java.io.PrintWriter |
getLogWriter()
|
int |
getMaxConnections()
|
javax.resource.spi.ManagedConnectionMetaData |
getMetaData()
|
java.lang.String |
getUserName()
|
javax.transaction.xa.XAResource |
getXAResource()
|
void |
removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
Called by the application server to remove a listener. |
void |
setLogWriter(java.io.PrintWriter out)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManagedConnectionImpl(ManagedConnectionFactoryImpl managedConnectionFactory, ConnectionRequestInfoImpl connectionRequestInfo) throws javax.resource.ResourceException
ManagedConnectionFactory
when it needs a new connection.
javax.resource.ResourceException
Method Detail |
---|
public javax.resource.cci.Connection getConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo connectionRequestInfo) throws javax.resource.ResourceException
Connection
handle to this ManagedConnection
.
getConnection
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
public void cleanup()
Called by the application server before putting back this
ManagedConnection
into the application server pool.
Later, the application server may call getConnection(javax.security.auth.Subject, javax.resource.spi.ConnectionRequestInfo)
again.
cleanup
in interface javax.resource.spi.ManagedConnection
public void destroy() throws javax.resource.ResourceException
Called by the application server before this ManagedConnection
is
destroyed.
destroy
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
public void associateConnection(java.lang.Object object) throws javax.resource.ResourceException
Connection
handle with a
ManagedConnection
instance.
associateConnection
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
public javax.transaction.xa.XAResource getXAResource()
getXAResource
in interface javax.resource.spi.ManagedConnection
public javax.resource.spi.LocalTransaction getLocalTransaction()
getLocalTransaction
in interface javax.resource.spi.ManagedConnection
public void addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
addConnectionEventListener
in interface javax.resource.spi.ManagedConnection
public void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
removeConnectionEventListener
in interface javax.resource.spi.ManagedConnection
public javax.resource.spi.ManagedConnectionMetaData getMetaData()
getMetaData
in interface javax.resource.spi.ManagedConnection
public void setLogWriter(java.io.PrintWriter out)
setLogWriter
in interface javax.resource.spi.ManagedConnection
public java.io.PrintWriter getLogWriter()
getLogWriter
in interface javax.resource.spi.ManagedConnection
public java.lang.String getEISProductName()
getEISProductName
in interface javax.resource.spi.ManagedConnectionMetaData
public java.lang.String getEISProductVersion()
getEISProductVersion
in interface javax.resource.spi.ManagedConnectionMetaData
public int getMaxConnections()
getMaxConnections
in interface javax.resource.spi.ManagedConnectionMetaData
public java.lang.String getUserName() throws javax.resource.ResourceException
getUserName
in interface javax.resource.spi.ManagedConnectionMetaData
javax.resource.ResourceException
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |