Package org.teiid.resource.spi
Interface ResourceConnection
-
- All Superinterfaces:
javax.resource.cci.Connection
,Connection
- All Known Implementing Classes:
AccumuloConnectionImpl
,BasicConnection
,CassandraConnectionImpl
,CouchbaseConnectionImpl
,FileConnectionImpl
,FtpFileConnectionImpl
,InfinispanManagedConnectionFactory.InfinispanResourceConnection
,LDAPConnectionImpl
,MongoDBConnectionImpl
,SalesforceConnectionImpl
,SolrConnectionImpl
public interface ResourceConnection extends javax.resource.cci.Connection, Connection
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
cleanUp()
Called by theManagedConnection
to indicate the physical connection should be cleaned up for reuse.default javax.resource.cci.Interaction
createInteraction()
default javax.resource.cci.LocalTransaction
getLocalTransaction()
default javax.resource.cci.ConnectionMetaData
getMetaData()
default javax.resource.cci.ResultSetInfo
getResultSetInfo()
default XAResource
getXAResource()
Supply theXAResource
is applicable to theBasicManagedConnection
default boolean
isAlive()
Tests the connection to see if it is still valid.-
Methods inherited from interface org.teiid.resource.api.Connection
close
-
-
-
-
Method Detail
-
createInteraction
default javax.resource.cci.Interaction createInteraction() throws javax.resource.ResourceException
- Specified by:
createInteraction
in interfacejavax.resource.cci.Connection
- Throws:
javax.resource.ResourceException
-
getLocalTransaction
default javax.resource.cci.LocalTransaction getLocalTransaction() throws javax.resource.ResourceException
- Specified by:
getLocalTransaction
in interfacejavax.resource.cci.Connection
- Throws:
javax.resource.ResourceException
-
getMetaData
default javax.resource.cci.ConnectionMetaData getMetaData() throws javax.resource.ResourceException
- Specified by:
getMetaData
in interfacejavax.resource.cci.Connection
- Throws:
javax.resource.ResourceException
-
getResultSetInfo
default javax.resource.cci.ResultSetInfo getResultSetInfo() throws javax.resource.ResourceException
- Specified by:
getResultSetInfo
in interfacejavax.resource.cci.Connection
- Throws:
javax.resource.ResourceException
-
getXAResource
default XAResource getXAResource() throws javax.resource.ResourceException
Supply theXAResource
is applicable to theBasicManagedConnection
- Returns:
- Throws:
javax.resource.ResourceException
-
isAlive
default boolean isAlive()
Tests the connection to see if it is still valid.- Returns:
-
cleanUp
default void cleanUp()
Called by theManagedConnection
to indicate the physical connection should be cleaned up for reuse.
-
-