|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.slim3.datasource.XAConnectionImpl
public class XAConnectionImpl
An implementation class for XAConnection
.
Field Summary | |
---|---|
protected AtomicBoolean |
closed
Whether this connection is closed. |
protected List<ConnectionEventListener> |
listeners
The list for ConnectionEventListener . |
protected static Log |
log
The log. |
protected Connection |
physicalConnection
The physical connection. |
protected boolean |
transactional
Whether this connection is transactional. |
protected XAResourceImpl |
xaResource
The XA resource. |
Constructor Summary | |
---|---|
XAConnectionImpl(Connection physicalConnection)
Constructor. |
Method Summary | |
---|---|
void |
addConnectionEventListener(ConnectionEventListener listener)
|
void |
close()
|
Connection |
getConnection()
|
Connection |
getPhysicalConnection()
Returns the physical connection. |
XAResource |
getXAResource()
|
boolean |
isClosed()
Determines if this connection is closed. |
boolean |
isTransactional()
Determines if this connection is transactional. |
void |
notifyConnectionClosed()
Notifies listeners that the logical connection is closed. |
void |
notifyConnectionErrorOccurred(SQLException error)
Notifies listeners that a error has occurred. |
void |
removeConnectionEventListener(ConnectionEventListener listener)
|
void |
setTransactional(boolean transactional)
Sets the transactional flag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static Log log
protected final Connection physicalConnection
protected final XAResourceImpl xaResource
protected List<ConnectionEventListener> listeners
ConnectionEventListener
.
protected boolean transactional
protected AtomicBoolean closed
Constructor Detail |
---|
public XAConnectionImpl(Connection physicalConnection)
physicalConnection
- the physical connectionMethod Detail |
---|
public XAResource getXAResource()
getXAResource
in interface XAConnection
public Connection getPhysicalConnection()
public Connection getConnection() throws SQLException
getConnection
in interface PooledConnection
SQLException
public boolean isClosed()
public void close() throws SQLException
close
in interface PooledConnection
SQLException
public void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener
in interface PooledConnection
public void removeConnectionEventListener(ConnectionEventListener listener)
removeConnectionEventListener
in interface PooledConnection
public void notifyConnectionClosed()
public void notifyConnectionErrorOccurred(SQLException error)
error
- the connection errorpublic boolean isTransactional()
public void setTransactional(boolean transactional)
transactional
- the transactional flag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |