org.teiid.connector.jdbc
Class JDBCSourceXAConnection

java.lang.Object
  extended by org.teiid.connector.basic.BasicConnection
      extended by org.teiid.connector.jdbc.JDBCSourceConnection
          extended by org.teiid.connector.jdbc.JDBCSourceXAConnection
All Implemented Interfaces:
Connection, XAConnection

public class JDBCSourceXAConnection
extends JDBCSourceConnection
implements XAConnection


Field Summary
 
Fields inherited from class org.teiid.connector.jdbc.JDBCSourceConnection
environment, physicalConnection
 
Constructor Summary
JDBCSourceXAConnection(java.sql.Connection conn, javax.sql.XAConnection xaConn, ConnectorEnvironment environment, Translator sqlTranslator)
           
 
Method Summary
 void close()
          Release the connection.
 void closeCalled()
          XAConnection Connections should be cycled to ensure proper cleanup after the transaction.
 javax.sql.XAConnection getXAConnection()
           
 javax.transaction.xa.XAResource getXAResource()
          Get XAResource for this connection
 boolean isAlive()
          Called to determine whether the connection is open
 
Methods inherited from class org.teiid.connector.jdbc.JDBCSourceConnection
closeSourceConnection, createProcedureExecution, createResultSetExecution, createUpdateExecution
 
Methods inherited from class org.teiid.connector.basic.BasicConnection
createExecution, getCapabilities, setConnectorIdentity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.teiid.connector.api.Connection
createExecution, getCapabilities, setConnectorIdentity
 

Constructor Detail

JDBCSourceXAConnection

public JDBCSourceXAConnection(java.sql.Connection conn,
                              javax.sql.XAConnection xaConn,
                              ConnectorEnvironment environment,
                              Translator sqlTranslator)
                       throws ConnectorException,
                              java.sql.SQLException
Throws:
ConnectorException
java.sql.SQLException
Method Detail

getXAResource

public javax.transaction.xa.XAResource getXAResource()
                                              throws ConnectorException
Description copied from interface: XAConnection
Get XAResource for this connection

Specified by:
getXAResource in interface XAConnection
Returns:
the XAResource, never null
Throws:
ConnectorException
See Also:
XAConnection.getXAResource()

close

public void close()
Description copied from interface: Connection
Release the connection. This will be called when MetaMatrix has completed using the connection for an execution.

Specified by:
close in interface Connection
Overrides:
close in class JDBCSourceConnection

closeCalled

public void closeCalled()
XAConnection Connections should be cycled to ensure proper cleanup after the transaction.

Specified by:
closeCalled in interface Connection
Overrides:
closeCalled in class BasicConnection

isAlive

public boolean isAlive()
Description copied from interface: Connection
Called to determine whether the connection is open

Specified by:
isAlive in interface Connection
Overrides:
isAlive in class JDBCSourceConnection
Returns:
true if open, false if there is a source error.

getXAConnection

public javax.sql.XAConnection getXAConnection()


Copyright © 2009. All Rights Reserved.