de.bea.domingo.connector.impl
Class DomingoConnectionImpl

java.lang.Object
  extended by de.bea.domingo.connector.impl.DomingoConnectionImpl
All Implemented Interfaces:
DomingoConnection, javax.resource.cci.Connection, javax.resource.cci.ConnectionMetaData

public final class DomingoConnectionImpl
extends java.lang.Object
implements DomingoConnection, javax.resource.cci.ConnectionMetaData

Author:
Kurt Riede

Constructor Summary
DomingoConnectionImpl(DomingoManagedConnection mc)
          Constructor.
 
Method Summary
 void close()
          
 javax.resource.cci.Interaction createInteraction()
          This method always throw an exception since interaction is not supported.
 java.lang.String getEISProductName()
          
 java.lang.String getEISProductVersion()
          
 javax.resource.cci.LocalTransaction getLocalTransaction()
          This method always throw an exception since transacctions are not supported.
 javax.resource.cci.ConnectionMetaData getMetaData()
          
 de.bea.domingo.DNotesMonitor getMonitor()
          Returns the associated monitor.
 javax.resource.cci.ResultSetInfo getResultSetInfo()
          This method always throw an exception since result-set-inifo is not supported.
 de.bea.domingo.DSession getSession()
          Returns the domingo session of a connection.
 java.lang.String getUserName()
          
 void reassociate(DomingoManagedConnection mc)
          Reassociated a session with a new managed connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomingoConnectionImpl

public DomingoConnectionImpl(DomingoManagedConnection mc)
                      throws javax.resource.ResourceException
Constructor.

Parameters:
mc - the managed connection
Throws:
javax.resource.ResourceException - if the connection cannot be created
Method Detail

getMonitor

public de.bea.domingo.DNotesMonitor getMonitor()
Returns the associated monitor.

Returns:
a monitor

close

public void close()
           throws javax.resource.ResourceException

Specified by:
close in interface javax.resource.cci.Connection
Throws:
javax.resource.ResourceException
See Also:
Connection.close()

createInteraction

public javax.resource.cci.Interaction createInteraction()
                                                 throws javax.resource.ResourceException
This method always throw an exception since interaction is not supported.

Specified by:
createInteraction in interface javax.resource.cci.Connection
Throws:
javax.resource.ResourceException
See Also:
Connection.createInteraction()

getLocalTransaction

public javax.resource.cci.LocalTransaction getLocalTransaction()
                                                        throws javax.resource.ResourceException
This method always throw an exception since transacctions are not supported.

Specified by:
getLocalTransaction in interface javax.resource.cci.Connection
Throws:
javax.resource.ResourceException
See Also:
Connection.getLocalTransaction()

getMetaData

public javax.resource.cci.ConnectionMetaData getMetaData()
                                                  throws javax.resource.ResourceException

Specified by:
getMetaData in interface javax.resource.cci.Connection
Throws:
javax.resource.ResourceException
See Also:
Connection.getMetaData()

getResultSetInfo

public javax.resource.cci.ResultSetInfo getResultSetInfo()
                                                  throws javax.resource.ResourceException
This method always throw an exception since result-set-inifo is not supported.

Specified by:
getResultSetInfo in interface javax.resource.cci.Connection
Throws:
javax.resource.ResourceException
See Also:
Connection.getResultSetInfo()

reassociate

public void reassociate(DomingoManagedConnection mc)
Reassociated a session with a new managed connection.

Specified by:
reassociate in interface DomingoConnection
Parameters:
mc - the new managed connection
See Also:
DomingoConnection.reassociate(de.bea.domingo.connector.impl.DomingoManagedConnection)

getEISProductName

public java.lang.String getEISProductName()
                                   throws javax.resource.ResourceException

Specified by:
getEISProductName in interface javax.resource.cci.ConnectionMetaData
Throws:
javax.resource.ResourceException
See Also:
ConnectionMetaData.getEISProductName()

getEISProductVersion

public java.lang.String getEISProductVersion()
                                      throws javax.resource.ResourceException

Specified by:
getEISProductVersion in interface javax.resource.cci.ConnectionMetaData
Throws:
javax.resource.ResourceException
See Also:
ConnectionMetaData.getEISProductVersion()

getUserName

public java.lang.String getUserName()
                             throws javax.resource.ResourceException

Specified by:
getUserName in interface javax.resource.cci.ConnectionMetaData
Throws:
javax.resource.ResourceException
See Also:
ConnectionMetaData.getUserName()

getSession

public de.bea.domingo.DSession getSession()
                                   throws javax.resource.ResourceException
Returns the domingo session of a connection.

Specified by:
getSession in interface DomingoConnection
Returns:
domingo session
Throws:
javax.resource.ResourceException - if the session cannot be created.
See Also:
DomingoConnection.getSession()


Domingo 1.0 Java-API