|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ManagedConnection
Wrapper for a connection to the datastore, allowing management.
| Method Summary | |
|---|---|
void |
addListener(ManagedConnectionResourceListener listener)
Registers a ManagedConnectionResourceListener |
void |
close()
Close the connection to the datastore. |
void |
flush()
Flush the connection. |
java.lang.Object |
getConnection()
Connection to the datastore |
javax.transaction.xa.XAResource |
getXAResource()
An XAResoure for this datastore connection. |
boolean |
isLocked()
whether access to this ManagedConnection has been locked. |
void |
lock()
lock the access to this ManagedConnection |
void |
release()
Method to release the connection when non-transactional. |
void |
removeListener(ManagedConnectionResourceListener listener)
Deregister a ManagedConnectionResourceListener |
void |
setManagedResource()
Whether this connection is managed by a transaction manager |
void |
unlock()
unlock the access to this ManagedConnection |
| Method Detail |
|---|
java.lang.Object getConnection()
javax.transaction.xa.XAResource getXAResource()
void release()
void close()
ManagedConnectionResourceListener.managedConnectionPreClose() and
ManagedConnectionResourceListener.managedConnectionPostClose().
The listeners are unregistered after this method is invoked.
void setManagedResource()
boolean isLocked()
void lock()
void unlock()
void flush()
ManagedConnectionResourceListener.managedConnectionFlushed()
void addListener(ManagedConnectionResourceListener listener)
listener - The listenervoid removeListener(ManagedConnectionResourceListener listener)
listener - The listener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||