org.teiid.resource.spi
Class BasicManagedConnection
java.lang.Object
org.teiid.resource.spi.BasicManagedConnection
- All Implemented Interfaces:
- javax.resource.spi.ManagedConnection
public class BasicManagedConnection
- extends java.lang.Object
- implements javax.resource.spi.ManagedConnection
Field Summary |
protected java.util.Collection<javax.resource.spi.ConnectionEventListener> |
listeners
|
protected java.io.PrintWriter |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected java.io.PrintWriter log
listeners
protected final java.util.Collection<javax.resource.spi.ConnectionEventListener> listeners
BasicManagedConnection
public BasicManagedConnection(BasicConnection connection)
associateConnection
public void associateConnection(java.lang.Object handle)
throws javax.resource.ResourceException
- Specified by:
associateConnection
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
cleanup
public void cleanup()
throws javax.resource.ResourceException
- Specified by:
cleanup
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
destroy
public void destroy()
throws javax.resource.ResourceException
- Specified by:
destroy
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
getMetaData
public javax.resource.spi.ManagedConnectionMetaData getMetaData()
throws javax.resource.ResourceException
- Specified by:
getMetaData
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
getConnection
public java.lang.Object getConnection(javax.security.auth.Subject arg0,
javax.resource.spi.ConnectionRequestInfo arg1)
throws javax.resource.ResourceException
- Specified by:
getConnection
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
getLocalTransaction
public javax.resource.spi.LocalTransaction getLocalTransaction()
throws javax.resource.ResourceException
- Specified by:
getLocalTransaction
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
getXAResource
public javax.transaction.xa.XAResource getXAResource()
throws javax.resource.ResourceException
- Specified by:
getXAResource
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
addConnectionEventListener
public void addConnectionEventListener(javax.resource.spi.ConnectionEventListener arg0)
- Specified by:
addConnectionEventListener
in interface javax.resource.spi.ManagedConnection
removeConnectionEventListener
public void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener arg0)
- Specified by:
removeConnectionEventListener
in interface javax.resource.spi.ManagedConnection
setLogWriter
public void setLogWriter(java.io.PrintWriter arg0)
throws javax.resource.ResourceException
- Specified by:
setLogWriter
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
getLogWriter
public java.io.PrintWriter getLogWriter()
throws javax.resource.ResourceException
- Specified by:
getLogWriter
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
isValid
public boolean isValid()
Copyright © 2011. All Rights Reserved.