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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ManagedConnectionImpl
public ManagedConnectionImpl(JDOConnectionFactory jdofactory,
ManagedConnectionFactoryImpl factory,
Subject subject,
ConnectionRequestInfo cri)
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
Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.