|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DTPPooledConnection
A pooled connection that is distributed transaction aware. Instances are needed for DTPConnectionPool pools. Note: clients should be aware that some instances of this interface generate TWO related close events: the first when the application closes the SQL connection, and the second after two-phase commit is done. In any case, the connection can NOT be reused before isDiscarded returns true.
Method Summary | |
---|---|
Connection |
getConnection(HeuristicMessage msg)
Get a connection with a given heuristic message. |
TransactionalResource |
getTransactionalResource()
Get the transactional resource for this connection. |
boolean |
isDiscarded()
Tests if the connection can be put back into the pool. |
boolean |
isInResourceTransaction()
Test if the connection is currently associated with a resource transaction. |
void |
setResourceTransaction(ResourceTransaction restx)
Associate a resource transaction with this connection. |
ResourceTransaction |
unsetResourceTransaction()
Unsets the resource transaction property for this connection. |
Methods inherited from interface com.atomikos.jdbc.XPooledConnection |
---|
close, getConnection, getInvalidated, getLastUse, setInvalidated, setLastUse, toString |
Methods inherited from interface javax.sql.PooledConnection |
---|
addConnectionEventListener, removeConnectionEventListener |
Method Detail |
---|
Connection getConnection(HeuristicMessage msg) throws SQLException
msg
- The message to include in the tx logs.
SQLException
TransactionalResource getTransactionalResource()
ResourceTransaction unsetResourceTransaction()
void setResourceTransaction(ResourceTransaction restx) throws SQLException
restx
- The resource transaction to be associated with this
connection.
SQLException
- If a SQL error occurs.boolean isDiscarded()
boolean isInResourceTransaction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |