|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openorb.ots.xa.XAVirtualConnection
public class XAVirtualConnection
This class provides a virtual XA connection to manage an XA session without a jdbc driver that includes optional packages of JDBC 2.0
Constructor Summary | |
---|---|
XAVirtualConnection(java.sql.Connection connection,
XAVirtualDataSource xa_datasource)
Constructor |
Method Summary | |
---|---|
void |
addConnectionEventListener(javax.sql.ConnectionEventListener listener)
Add an event listener |
void |
close()
Close an XA connection |
void |
closeEvent()
This operation is called to notify to all registered listener a close event. |
void |
errorEvent(java.sql.SQLException ex)
This operation is called to notify to all registered listener an error event. |
java.sql.Connection |
getConnection()
Return the connection for SQL statements |
java.lang.String |
getDataSourceMetaData()
Return the DataSource meta data |
javax.transaction.xa.XAResource |
getXAResource()
This operation is called by the SessionManager to get an XA Resource on the database. |
void |
removeConnectionEventListener(javax.sql.ConnectionEventListener listener)
Remove an event listener |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XAVirtualConnection(java.sql.Connection connection, XAVirtualDataSource xa_datasource)
Method Detail |
---|
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface javax.sql.PooledConnection
java.sql.SQLException
public void close() throws java.sql.SQLException
close
in interface javax.sql.PooledConnection
java.sql.SQLException
public void addConnectionEventListener(javax.sql.ConnectionEventListener listener)
addConnectionEventListener
in interface javax.sql.PooledConnection
public void removeConnectionEventListener(javax.sql.ConnectionEventListener listener)
removeConnectionEventListener
in interface javax.sql.PooledConnection
public javax.transaction.xa.XAResource getXAResource() throws java.sql.SQLException
getXAResource
in interface javax.sql.XAConnection
java.sql.SQLException
public void closeEvent()
public void errorEvent(java.sql.SQLException ex)
public java.lang.String getDataSourceMetaData()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |