|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.hibernate.jca.ManagedConnectionImpl
Implementation of JCA Managed Connection.
| Field Summary |
| Fields inherited from interface javax.transaction.xa.XAResource |
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY |
| Method Summary | |
void |
addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
|
void |
associateConnection(Object object)
Associates the session handle with this managed connection |
void |
cleanup()
Cleans up connection handles so they can't be used again But the physical connection is kept open |
void |
commit(Xid arg0,
boolean arg1)
|
void |
destroy()
Closes the connection to the database |
void |
end(Xid arg0,
int arg1)
|
void |
forget(Xid arg0)
|
Object |
getConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
Creates and returns a new Hibernate Session. |
javax.resource.spi.LocalTransaction |
getLocalTransaction()
|
PrintWriter |
getLogWriter()
|
javax.resource.spi.ManagedConnectionMetaData |
getMetaData()
|
int |
getTransactionTimeout()
|
XAResource |
getXAResource()
|
boolean |
isSameRM(XAResource arg0)
|
int |
prepare(Xid arg0)
|
Xid[] |
recover(int arg0)
|
void |
removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
|
void |
rollback(Xid arg0)
|
void |
setLogWriter(PrintWriter out)
|
boolean |
setTransactionTimeout(int arg0)
|
void |
start(Xid arg0,
int arg1)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public Object getConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo connectionRequestInfo) throws javax.resource.ResourceException
getConnection in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public void destroy()
throws javax.resource.ResourceException
destroy in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException - cannot close connection (with the linked exception)
public void cleanup()
throws javax.resource.ResourceException
cleanup in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic void associateConnection(Object object) throws javax.resource.ResourceException
associateConnection in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic void addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
addConnectionEventListener in interface javax.resource.spi.ManagedConnectionpublic void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
removeConnectionEventListener in interface javax.resource.spi.ManagedConnectionpublic XAResource getXAResource() throws javax.resource.ResourceException
getXAResource in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public javax.resource.spi.LocalTransaction getLocalTransaction()
throws javax.resource.ResourceException
getLocalTransaction in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public javax.resource.spi.ManagedConnectionMetaData getMetaData()
throws javax.resource.ResourceException
getMetaData in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic void setLogWriter(PrintWriter out) throws javax.resource.ResourceException
setLogWriter in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic PrintWriter getLogWriter() throws javax.resource.ResourceException
getLogWriter in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic void commit(Xid arg0, boolean arg1) throws XAException
commit in interface XAResourceXAExceptionpublic void end(Xid arg0, int arg1) throws XAException
end in interface XAResourceXAExceptionpublic void forget(Xid arg0) throws XAException
forget in interface XAResourceXAException
public int getTransactionTimeout()
throws XAException
getTransactionTimeout in interface XAResourceXAExceptionpublic boolean isSameRM(XAResource arg0) throws XAException
isSameRM in interface XAResourceXAExceptionpublic int prepare(Xid arg0) throws XAException
prepare in interface XAResourceXAExceptionpublic Xid[] recover(int arg0) throws XAException
recover in interface XAResourceXAExceptionpublic void rollback(Xid arg0) throws XAException
rollback in interface XAResourceXAException
public boolean setTransactionTimeout(int arg0)
throws XAException
setTransactionTimeout in interface XAResourceXAExceptionpublic void start(Xid arg0, int arg1) throws XAException
start in interface XAResourceXAException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||