SolarMetric Kodo JDO 2.4.3 generated on March 27 2003

com.solarmetric.kodo.impl.jdbc.ee
Class ManagedConnectionImpl

java.lang.Object
  |
  +--com.solarmetric.kodo.impl.jdbc.ee.ManagedConnectionImpl
All Implemented Interfaces:
ManagedConnection, ManagedConnectionMetaData

public class ManagedConnectionImpl
extends Object
implements ManagedConnection, ManagedConnectionMetaData

A mostly no-op managed connection that exists for the convenient obtaining of a ConnectionFactory.


Constructor Summary
ManagedConnectionImpl(JDOConnectionFactory jdofactory, ManagedConnectionFactoryImpl factory, Subject subject, ConnectionRequestInfo cri)
           
 
Method Summary
 void addConnectionEventListener(ConnectionEventListener listener)
           
 void associateConnection(Object connection)
           
 void cleanup()
           
 void destroy()
           
 Object getConnection(Subject subject, ConnectionRequestInfo cri)
           
 ConnectionRequestInfo getConnectionRequestInfo()
           
 String getEISProductName()
           
 String getEISProductVersion()
           
 LocalTransaction getLocalTransaction()
           
 PrintWriter getLogWriter()
           
 ManagedConnectionFactory getManagedConnectionFactory()
           
 int getMaxConnections()
           
 ManagedConnectionMetaData getMetaData()
           
 Subject getSubject()
           
 String getUserName()
           
 XAResource getXAResource()
           
 void removeConnectionEventListener(ConnectionEventListener listener)
           
 void setLogWriter(PrintWriter logWriter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedConnectionImpl

public ManagedConnectionImpl(JDOConnectionFactory jdofactory,
                             ManagedConnectionFactoryImpl factory,
                             Subject subject,
                             ConnectionRequestInfo cri)
Method Detail

getConnection

public Object getConnection(Subject subject,
                            ConnectionRequestInfo cri)
                     throws ResourceException
Specified by:
getConnection in interface ManagedConnection

destroy

public void destroy()
             throws ResourceException
Specified by:
destroy in interface ManagedConnection

cleanup

public void cleanup()
             throws ResourceException
Specified by:
cleanup in interface ManagedConnection

associateConnection

public void associateConnection(Object connection)
                         throws ResourceException
Specified by:
associateConnection in interface ManagedConnection

addConnectionEventListener

public void addConnectionEventListener(ConnectionEventListener listener)
Specified by:
addConnectionEventListener in interface ManagedConnection

removeConnectionEventListener

public void removeConnectionEventListener(ConnectionEventListener listener)
Specified by:
removeConnectionEventListener in interface ManagedConnection

getXAResource

public XAResource getXAResource()
                         throws ResourceException
Specified by:
getXAResource in interface ManagedConnection

getLocalTransaction

public LocalTransaction getLocalTransaction()
                                     throws ResourceException
Specified by:
getLocalTransaction in interface ManagedConnection

getMetaData

public ManagedConnectionMetaData getMetaData()
                                      throws ResourceException
Specified by:
getMetaData in interface ManagedConnection

setLogWriter

public void setLogWriter(PrintWriter logWriter)
Specified by:
setLogWriter in interface ManagedConnection

getLogWriter

public PrintWriter getLogWriter()
Specified by:
getLogWriter in interface ManagedConnection

getManagedConnectionFactory

public ManagedConnectionFactory getManagedConnectionFactory()

getSubject

public Subject getSubject()

getConnectionRequestInfo

public ConnectionRequestInfo getConnectionRequestInfo()

getEISProductName

public String getEISProductName()
Specified by:
getEISProductName in interface ManagedConnectionMetaData

getEISProductVersion

public String getEISProductVersion()
Specified by:
getEISProductVersion in interface ManagedConnectionMetaData

getMaxConnections

public int getMaxConnections()
Specified by:
getMaxConnections in interface ManagedConnectionMetaData

getUserName

public String getUserName()
Specified by:
getUserName in interface ManagedConnectionMetaData

SolarMetric Kodo JDO 2.4.3 generated on March 27 2003

Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.