|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.bea.domingo.connector.impl.DomingoManagedConnection
public final class DomingoManagedConnection
| Field Summary | |
|---|---|
protected static de.bea.domingo.i18n.Resources |
METADATA
Internationalized resources. |
protected static de.bea.domingo.i18n.Resources |
RESOURCES
Internationalized resources. |
| Constructor Summary | |
|---|---|
DomingoManagedConnection(DomingoLogAdapter theMonitor,
DomingoManagedConnectionFactory mcf,
javax.resource.spi.ConnectionRequestInfo cri)
Constructor (using only ConnectionRequestInfo). |
|
DomingoManagedConnection(DomingoLogAdapter theMonitor,
DomingoManagedConnectionFactory mcf,
javax.resource.spi.security.GenericCredential gc)
Constructor (using GenericCredentials). |
|
DomingoManagedConnection(DomingoLogAdapter theMonitor,
DomingoManagedConnectionFactory mcf,
javax.resource.spi.security.PasswordCredential pc)
Constructor (using PasswordCredential). |
|
| Method Summary | |
|---|---|
void |
addConnection(javax.resource.cci.Connection connection)
Adds a new connection. |
void |
addConnectionEventListener(javax.resource.spi.ConnectionEventListener connectionEventListener)
|
void |
associateConnection(java.lang.Object connection)
|
void |
cleanup()
|
void |
connectionClosed(javax.resource.spi.ConnectionEvent event)
|
void |
connectionErrorOccurred(javax.resource.spi.ConnectionEvent event)
|
protected de.bea.domingo.DSession |
createPhysicalConnection(javax.resource.spi.ConnectionRequestInfo cri)
Returns a physical connection (using only ConnectionRequestInfo). |
protected de.bea.domingo.DSession |
createPhysicalConnection(javax.resource.spi.security.GenericCredential gc)
Returns a physical connection (using GenericCredential). |
protected de.bea.domingo.DSession |
createPhysicalConnection(java.lang.String username,
char[] password)
Returns a physical connection (using username and password). |
void |
destroy()
|
java.lang.Object |
getConnection(javax.security.auth.Subject subj,
javax.resource.spi.ConnectionRequestInfo cri)
|
javax.resource.spi.ConnectionRequestInfo |
getConnectionRequestInfo()
|
java.lang.String |
getEISProductName()
|
java.lang.String |
getEISProductVersion()
|
javax.resource.spi.LocalTransaction |
getLocalTransaction()
|
java.io.PrintWriter |
getLogWriter()
|
int |
getMaxConnections()
|
javax.resource.spi.ManagedConnectionMetaData |
getMetaData()
|
DomingoLogAdapter |
getMonitor()
Returns the associated monitor. |
de.bea.domingo.DSession |
getSession()
Returns the domingo session of a managed connection. |
java.lang.String |
getUserName()
|
javax.transaction.xa.XAResource |
getXAResource()
|
void |
localTransactionCommitted(javax.resource.spi.ConnectionEvent event)
|
void |
localTransactionRolledback(javax.resource.spi.ConnectionEvent event)
|
void |
localTransactionStarted(javax.resource.spi.ConnectionEvent event)
|
void |
removeConnection(DomingoConnection connection)
Removes a connection from the set of connections associated with this managed connection. |
void |
removeConnectionEventListener(javax.resource.spi.ConnectionEventListener connectionEventListener)
|
void |
setLogWriter(java.io.PrintWriter writer)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final de.bea.domingo.i18n.Resources RESOURCES
protected static final de.bea.domingo.i18n.Resources METADATA
| Constructor Detail |
|---|
public DomingoManagedConnection(DomingoLogAdapter theMonitor,
DomingoManagedConnectionFactory mcf,
javax.resource.spi.ConnectionRequestInfo cri)
throws javax.resource.ResourceException
theMonitor - the domingo monitor to use for monitoringmcf - the managed connection factory that creates this connectioncri - connection request information for authentication
javax.resource.ResourceException - if the connection cannot be created
public DomingoManagedConnection(DomingoLogAdapter theMonitor,
DomingoManagedConnectionFactory mcf,
javax.resource.spi.security.PasswordCredential pc)
throws javax.resource.ResourceException
theMonitor - the domingo monitor to use for monitoringmcf - the managed connection factory that creates this connectionpc - the password credentials for authentication
javax.resource.ResourceException - if the connection cannot be created
public DomingoManagedConnection(DomingoLogAdapter theMonitor,
DomingoManagedConnectionFactory mcf,
javax.resource.spi.security.GenericCredential gc)
throws javax.resource.ResourceException
theMonitor - the domingo monitor to use for monitoringmcf - the managed connection factory that creates this connectiongc - generic credentials for authentication
javax.resource.ResourceException - if the connection cannot be created| Method Detail |
|---|
protected de.bea.domingo.DSession createPhysicalConnection(javax.resource.spi.ConnectionRequestInfo cri)
throws javax.resource.ResourceException
cri - connection request information for authentication
javax.resource.ResourceException - if the connection cannot be created
protected de.bea.domingo.DSession createPhysicalConnection(javax.resource.spi.security.GenericCredential gc)
throws javax.resource.ResourceException
gc - generic credentials for authentication
javax.resource.ResourceException - if the connection cannot be created
protected de.bea.domingo.DSession createPhysicalConnection(java.lang.String username,
char[] password)
throws javax.resource.ResourceException
username - username for authenticationpassword - password for authentication
javax.resource.ResourceException - if the connection cannot be createdpublic de.bea.domingo.DSession getSession()
public DomingoLogAdapter getMonitor()
public void associateConnection(java.lang.Object connection)
throws javax.resource.ResourceException
associateConnection in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionManagedConnection.associateConnection(java.lang.Object)
public javax.resource.spi.LocalTransaction getLocalTransaction()
throws javax.resource.ResourceException
getLocalTransaction in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionManagedConnection.getLocalTransaction()
public javax.transaction.xa.XAResource getXAResource()
throws javax.resource.ResourceException
getXAResource in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionManagedConnection.getXAResource()
public javax.resource.spi.ManagedConnectionMetaData getMetaData()
throws javax.resource.ResourceException
getMetaData in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionManagedConnection.getMetaData()
public java.io.PrintWriter getLogWriter()
throws javax.resource.ResourceException
getLogWriter in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionManagedConnection.getLogWriter()
public void setLogWriter(java.io.PrintWriter writer)
throws javax.resource.ResourceException
setLogWriter in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionManagedConnection.setLogWriter(java.io.PrintWriter)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
public java.lang.String getEISProductName()
throws javax.resource.ResourceException
getEISProductName in interface javax.resource.spi.ManagedConnectionMetaDatajavax.resource.ResourceExceptionManagedConnectionMetaData.getEISProductName()
public java.lang.String getEISProductVersion()
throws javax.resource.ResourceException
getEISProductVersion in interface javax.resource.spi.ManagedConnectionMetaDatajavax.resource.ResourceExceptionManagedConnectionMetaData.getEISProductVersion()
public int getMaxConnections()
throws javax.resource.ResourceException
getMaxConnections in interface javax.resource.spi.ManagedConnectionMetaDatajavax.resource.ResourceExceptionManagedConnectionMetaData.getMaxConnections()public javax.resource.spi.ConnectionRequestInfo getConnectionRequestInfo()
public java.lang.String getUserName()
throws javax.resource.ResourceException
getUserName in interface javax.resource.spi.ManagedConnectionMetaDatajavax.resource.ResourceExceptionManagedConnectionMetaData.getUserName()
public void cleanup()
throws javax.resource.ResourceException
cleanup in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionManagedConnection.cleanup()public void addConnection(javax.resource.cci.Connection connection)
connection - the new connection.public void removeConnection(DomingoConnection connection)
connection - The connection to remove.
public void destroy()
throws javax.resource.ResourceException
destroy in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionManagedConnection.destroy()
public java.lang.Object getConnection(javax.security.auth.Subject subj,
javax.resource.spi.ConnectionRequestInfo cri)
throws javax.resource.ResourceException
getConnection in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionManagedConnection.getConnection(javax.security.auth.Subject,
javax.resource.spi.ConnectionRequestInfo)public void addConnectionEventListener(javax.resource.spi.ConnectionEventListener connectionEventListener)
addConnectionEventListener in interface javax.resource.spi.ManagedConnectionManagedConnection.addConnectionEventListener(javax.resource.spi.ConnectionEventListener)public void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener connectionEventListener)
removeConnectionEventListener in interface javax.resource.spi.ManagedConnectionManagedConnection.removeConnectionEventListener(javax.resource.spi.ConnectionEventListener)public void connectionClosed(javax.resource.spi.ConnectionEvent event)
ConnectionEventListener.connectionClosed(javax.resource.spi.ConnectionEvent)public void localTransactionStarted(javax.resource.spi.ConnectionEvent event)
ConnectionEventListener.localTransactionStarted(javax.resource.spi.ConnectionEvent)public void localTransactionCommitted(javax.resource.spi.ConnectionEvent event)
ConnectionEventListener.localTransactionCommitted(javax.resource.spi.ConnectionEvent)public void localTransactionRolledback(javax.resource.spi.ConnectionEvent event)
ConnectionEventListener.localTransactionRolledback(javax.resource.spi.ConnectionEvent)public void connectionErrorOccurred(javax.resource.spi.ConnectionEvent event)
ConnectionEventListener.connectionErrorOccurred(javax.resource.spi.ConnectionEvent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||