public class JDBCXAConnection
extends java.lang.Object
implements javax.sql.XAConnection
Title: Dataspace Framework
Description: Dataspace underlying provider implementation
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Constructor and Description |
---|
JDBCXAConnection(JDBCXADataSource dataSource,
JDBCConnection connection) |
Modifier and Type | Method and Description |
---|---|
void |
addConnectionEventListener(javax.sql.ConnectionEventListener listener) |
void |
addStatementEventListener(javax.sql.StatementEventListener listener) |
void |
close() |
void |
connectionClosed() |
void |
connectionErrorOccured(SQLException e) |
Connection |
getConnection()
Returns a connection that can be used by the user application.
|
javax.transaction.xa.XAResource |
getXAResource() |
boolean |
isInUse()
Returns true if getConnection() has been called and the userConnection
is still open.
|
void |
release()
Force close the userConnection, no close event is fired.
|
void |
removeConnectionEventListener(javax.sql.ConnectionEventListener listener) |
void |
removeStatementEventListener(javax.sql.StatementEventListener listener) |
public JDBCXAConnection(JDBCXADataSource dataSource, JDBCConnection connection)
public javax.transaction.xa.XAResource getXAResource() throws SQLException
getXAResource
in interface javax.sql.XAConnection
SQLException
public Connection getConnection() throws SQLException
getConnection
in interface javax.sql.PooledConnection
SQLException
public void close() throws SQLException
close
in interface javax.sql.PooledConnection
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 void addStatementEventListener(javax.sql.StatementEventListener listener)
addStatementEventListener
in interface javax.sql.PooledConnection
public void removeStatementEventListener(javax.sql.StatementEventListener listener)
removeStatementEventListener
in interface javax.sql.PooledConnection
public void connectionClosed()
connectionClosed
in interface JDBCConnectionEventListener
public void connectionErrorOccured(SQLException e)
connectionErrorOccured
in interface JDBCConnectionEventListener
public boolean isInUse()
public void release()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.