Package org.apache.jackrabbit.jca
Class AnonymousConnection
- java.lang.Object
- 
- org.apache.jackrabbit.jca.AnonymousConnection
 
- 
- All Implemented Interfaces:
- javax.resource.spi.ManagedConnection,- XAResource
 
 public class AnonymousConnection extends Object implements javax.resource.spi.ManagedConnection, XAResource Implements aManagedConnectionfor an anonymous user, where noConnectionRequestInfohas been specified.
- 
- 
Field Summary- 
Fields inherited from interface javax.transaction.xa.XAResourceTMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
 
- 
 - 
Constructor SummaryConstructors Constructor Description AnonymousConnection()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)voidassociateConnection(Object o)voidcleanup()voidcommit(Xid xid, boolean arg1)voiddestroy()voidend(Xid xid, int flags)voidforget(Xid xid)ObjectgetConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cri)javax.resource.spi.LocalTransactiongetLocalTransaction()PrintWritergetLogWriter()javax.resource.spi.ManagedConnectionMetaDatagetMetaData()intgetTransactionTimeout()XAResourcegetXAResource()booleanisSameRM(XAResource xares)intprepare(Xid xid)Xid[]recover(int flags)voidremoveConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)voidrollback(Xid xid)voidsetLogWriter(PrintWriter logWriter)booleansetTransactionTimeout(int timeout)voidstart(Xid xid, int flags)
 
- 
- 
- 
Method Detail- 
getXAResourcepublic XAResource getXAResource() throws javax.resource.ResourceException - Specified by:
- getXAResourcein interface- javax.resource.spi.ManagedConnection
- Throws:
- javax.resource.ResourceException
 
 - 
cleanuppublic void cleanup() throws javax.resource.ResourceException- Specified by:
- cleanupin interface- javax.resource.spi.ManagedConnection
- Throws:
- javax.resource.ResourceException
 
 - 
destroypublic void destroy() throws javax.resource.ResourceException- Specified by:
- destroyin interface- javax.resource.spi.ManagedConnection
- Throws:
- javax.resource.ResourceException
 
 - 
setLogWriterpublic void setLogWriter(PrintWriter logWriter) throws javax.resource.ResourceException - Specified by:
- setLogWriterin interface- javax.resource.spi.ManagedConnection
- Throws:
- javax.resource.ResourceException
 
 - 
getLogWriterpublic PrintWriter getLogWriter() throws javax.resource.ResourceException - Specified by:
- getLogWriterin interface- javax.resource.spi.ManagedConnection
- Throws:
- javax.resource.ResourceException
 
 - 
addConnectionEventListenerpublic void addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener) - Specified by:
- addConnectionEventListenerin interface- javax.resource.spi.ManagedConnection
 
 - 
removeConnectionEventListenerpublic void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener) - Specified by:
- removeConnectionEventListenerin interface- javax.resource.spi.ManagedConnection
 
 - 
getConnectionpublic Object getConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException - Specified by:
- getConnectionin interface- javax.resource.spi.ManagedConnection
- Throws:
- javax.resource.ResourceException
 
 - 
associateConnectionpublic void associateConnection(Object o) throws javax.resource.ResourceException - Specified by:
- associateConnectionin interface- javax.resource.spi.ManagedConnection
- Throws:
- javax.resource.ResourceException
 
 - 
getLocalTransactionpublic javax.resource.spi.LocalTransaction getLocalTransaction() throws javax.resource.ResourceException- Specified by:
- getLocalTransactionin interface- javax.resource.spi.ManagedConnection
- Throws:
- javax.resource.ResourceException
 
 - 
getMetaDatapublic javax.resource.spi.ManagedConnectionMetaData getMetaData() throws javax.resource.ResourceException- Specified by:
- getMetaDatain interface- javax.resource.spi.ManagedConnection
- Throws:
- javax.resource.ResourceException
 
 - 
recoverpublic Xid[] recover(int flags) throws XAException - Specified by:
- recoverin interface- XAResource
- Throws:
- XAException
 
 - 
getTransactionTimeoutpublic int getTransactionTimeout() throws XAException- Specified by:
- getTransactionTimeoutin interface- XAResource
- Throws:
- XAException
 
 - 
setTransactionTimeoutpublic boolean setTransactionTimeout(int timeout) throws XAException- Specified by:
- setTransactionTimeoutin interface- XAResource
- Throws:
- XAException
 
 - 
isSameRMpublic boolean isSameRM(XAResource xares) throws XAException - Specified by:
- isSameRMin interface- XAResource
- Throws:
- XAException
 
 - 
startpublic void start(Xid xid, int flags) throws XAException - Specified by:
- startin interface- XAResource
- Throws:
- XAException
 
 - 
endpublic void end(Xid xid, int flags) throws XAException - Specified by:
- endin interface- XAResource
- Throws:
- XAException
 
 - 
forgetpublic void forget(Xid xid) throws XAException - Specified by:
- forgetin interface- XAResource
- Throws:
- XAException
 
 - 
preparepublic int prepare(Xid xid) throws XAException - Specified by:
- preparein interface- XAResource
- Throws:
- XAException
 
 - 
commitpublic void commit(Xid xid, boolean arg1) throws XAException - Specified by:
- commitin interface- XAResource
- Throws:
- XAException
 
 - 
rollbackpublic void rollback(Xid xid) throws XAException - Specified by:
- rollbackin interface- XAResource
- Throws:
- XAException
 
 
- 
 
-