org.teiid.connector.jdbc
Class JDBCSourceXAConnection
java.lang.Object
org.teiid.connector.basic.BasicConnection
org.teiid.connector.jdbc.JDBCSourceConnection
org.teiid.connector.jdbc.JDBCSourceXAConnection
- All Implemented Interfaces:
- Connection, XAConnection
public class JDBCSourceXAConnection
- extends JDBCSourceConnection
- implements XAConnection
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.