|
||||||||||
| 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 connection| Method Detail |
|---|
public XAResource getXAResource()
getXAResource in interface XAConnectionpublic Connection getPhysicalConnection()
public Connection getConnection()
throws SQLException
getConnection in interface PooledConnectionSQLExceptionpublic boolean isClosed()
public void close()
throws SQLException
close in interface PooledConnectionSQLExceptionpublic void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener in interface PooledConnectionpublic void removeConnectionEventListener(ConnectionEventListener listener)
removeConnectionEventListener in interface PooledConnectionpublic 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 | |||||||||