|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.jca.JdoManagedConnection
Field Summary | |
protected JDOConnectionSpec |
cri
|
static java.lang.String |
EIS_PRODUCT_NAME
|
static java.lang.String |
EIS_PRODUCT_VERSION
|
static java.lang.String |
USER_NAME
|
XAContext |
xac
It is the current XAContext. |
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(ConnectionEventListener listener)
Adds a listener to the listeners list if it has not already been done. |
void |
associateConnection(java.lang.Object o)
Associates a new Connection to this ManagedConnection. |
void |
begin()
Begins the LocalTransaction if it has not already been started. |
void |
cleanup()
Cleans up the connection. |
void |
commit()
Commits the LocalTransaction if it is active. |
void |
commit(javax.transaction.xa.Xid xid,
boolean b)
Unbind the PersistenceManager to the xid. |
void |
destroy()
Called when ManagedConnection is removed. |
protected void |
dissociateConnection(java.lang.Object conn)
Dissociates a Connection from the ones that are associated to this ManagedConnection. |
void |
end(javax.transaction.xa.Xid xid,
int i)
Unbind this instance to the PersistenceManager. |
void |
forget(javax.transaction.xa.Xid xid)
|
java.lang.Object |
getConnection(javax.security.auth.Subject subject,
ConnectionRequestInfo info)
Delegates the creation of a Connection to the ConnectionFactory. |
java.lang.String |
getEISProductName()
|
java.lang.String |
getEISProductVersion()
|
LocalTransaction |
getLocalTransaction()
|
java.io.PrintWriter |
getLogWriter()
Not supported yet. |
int |
getMaxConnections()
|
ManagedConnectionMetaData |
getMetaData()
|
protected ProxyManager |
getProxyManager()
Retrieves the right ProxyManager in according the managed connection state (in a local transaction, in a XA transaction or out of transaction) |
int |
getTransactionTimeout()
|
java.lang.String |
getUserName()
|
javax.transaction.xa.XAResource |
getXAResource()
Retrieves an XA resource. |
boolean |
isSameRM(javax.transaction.xa.XAResource resource)
Used by JTA in order to verify that it has not already registered a XAResource to manage this transaction context from this RM. |
protected boolean |
localTransactionTerminated()
Specifies if this ManagedConnection still has an active LocalTransaction. |
int |
prepare(javax.transaction.xa.Xid xid)
Prepares the underlying JdoTxContext (prepare phase of the 2PC). |
javax.transaction.xa.Xid[] |
recover(int i)
Gets the Xid of distributed transactions to be recovered from the JDO manager. |
void |
removeConnectionEventListener(ConnectionEventListener listener)
Removes a listener from the listeners list. |
void |
rollback()
Rollbacks the LocalTransaction if it is active. |
void |
rollback(javax.transaction.xa.Xid xid)
Unbind the PersistenceManager to the xid. |
void |
setLogWriter(java.io.PrintWriter writer)
Not supported yet. |
boolean |
setTransactionTimeout(int i)
|
void |
start(javax.transaction.xa.Xid xid,
int i)
Assigns an actual JDO transaction context to the XAResource within the give DTP context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String EIS_PRODUCT_NAME
public static final java.lang.String EIS_PRODUCT_VERSION
public static final java.lang.String USER_NAME
public XAContext xac
protected JDOConnectionSpec cri
Method Detail |
protected ProxyManager getProxyManager()
protected boolean localTransactionTerminated()
protected void dissociateConnection(java.lang.Object conn) throws ResourceException
conn
- The Connection to be dissociated.
ResourceException
public java.lang.String getEISProductName() throws ResourceException
ResourceException
public java.lang.String getEISProductVersion() throws ResourceException
ResourceException
public int getMaxConnections() throws ResourceException
ResourceException
public java.lang.String getUserName() throws ResourceException
ResourceException
public java.lang.Object getConnection(javax.security.auth.Subject subject, ConnectionRequestInfo info) throws ResourceException
ResourceException
public void cleanup() throws ResourceException
ResourceException
public void destroy() throws ResourceException
ResourceException
public void associateConnection(java.lang.Object o) throws ResourceException
ResourceException
public void addConnectionEventListener(ConnectionEventListener listener)
public void removeConnectionEventListener(ConnectionEventListener listener)
public javax.transaction.xa.XAResource getXAResource() throws ResourceException
ResourceException
public LocalTransaction getLocalTransaction() throws ResourceException
ResourceException
public ManagedConnectionMetaData getMetaData() throws ResourceException
ResourceException
public void setLogWriter(java.io.PrintWriter writer) throws ResourceException
ResourceException
public java.io.PrintWriter getLogWriter() throws ResourceException
ResourceException
public void begin() throws ResourceException
ResourceException
public void commit() throws ResourceException
ResourceException
public void rollback() throws ResourceException
ResourceException
public void start(javax.transaction.xa.Xid xid, int i) throws javax.transaction.xa.XAException
start
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
public void end(javax.transaction.xa.Xid xid, int i) throws javax.transaction.xa.XAException
end
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
public boolean isSameRM(javax.transaction.xa.XAResource resource) throws javax.transaction.xa.XAException
isSameRM
in interface javax.transaction.xa.XAResource
resource
- The resource to be compared against this one wrt RM.
javax.transaction.xa.XAException
public int prepare(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
prepare
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
public void commit(javax.transaction.xa.Xid xid, boolean b) throws javax.transaction.xa.XAException
commit
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
public void rollback(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
rollback
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
public void forget(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
forget
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
public javax.transaction.xa.Xid[] recover(int i) throws javax.transaction.xa.XAException
recover
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
public int getTransactionTimeout() throws javax.transaction.xa.XAException
getTransactionTimeout
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
public boolean setTransactionTimeout(int i) throws javax.transaction.xa.XAException
setTransactionTimeout
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |