org.teiid.resource.spi
Class BasicConnection

java.lang.Object
  extended by org.teiid.resource.spi.BasicConnection
All Implemented Interfaces:
javax.resource.cci.Connection

public abstract class BasicConnection
extends java.lang.Object
implements javax.resource.cci.Connection


Constructor Summary
BasicConnection()
           
 
Method Summary
 void cleanUp()
          Called by the ManagedConnection to indicate the physical connection should be cleaned up for reuse.
 javax.resource.cci.Interaction createInteraction()
           
 javax.resource.cci.LocalTransaction getLocalTransaction()
           
 javax.resource.cci.ConnectionMetaData getMetaData()
           
 javax.resource.cci.ResultSetInfo getResultSetInfo()
           
 javax.transaction.xa.XAResource getXAResource()
           
 boolean isAlive()
          Tests the connection to see if it is still valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.resource.cci.Connection
close
 

Constructor Detail

BasicConnection

public BasicConnection()
Method Detail

createInteraction

public javax.resource.cci.Interaction createInteraction()
                                                 throws javax.resource.ResourceException
Specified by:
createInteraction in interface javax.resource.cci.Connection
Throws:
javax.resource.ResourceException

getLocalTransaction

public javax.resource.cci.LocalTransaction getLocalTransaction()
                                                        throws javax.resource.ResourceException
Specified by:
getLocalTransaction in interface javax.resource.cci.Connection
Throws:
javax.resource.ResourceException

getMetaData

public javax.resource.cci.ConnectionMetaData getMetaData()
                                                  throws javax.resource.ResourceException
Specified by:
getMetaData in interface javax.resource.cci.Connection
Throws:
javax.resource.ResourceException

getResultSetInfo

public javax.resource.cci.ResultSetInfo getResultSetInfo()
                                                  throws javax.resource.ResourceException
Specified by:
getResultSetInfo in interface javax.resource.cci.Connection
Throws:
javax.resource.ResourceException

getXAResource

public javax.transaction.xa.XAResource getXAResource()
                                              throws javax.resource.ResourceException
Throws:
javax.resource.ResourceException

isAlive

public boolean isAlive()
Tests the connection to see if it is still valid.

Returns:

cleanUp

public void cleanUp()
Called by the ManagedConnection to indicate the physical connection should be cleaned up for reuse.



Copyright © 2011. All Rights Reserved.