|
|||||||||||
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(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(Xid xid,
int i)
Unbind this instance to the PersistenceManager. |
void |
forget(Xid xid)
|
java.lang.Object |
getConnection(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()
|
XAResource |
getXAResource()
Retrieves an XA resource. |
boolean |
isSameRM(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(Xid xid)
Prepares the underlying JdoTxContext (prepare phase of the 2PC). |
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(Xid xid)
Unbind the PersistenceManager to the xid. |
void |
setLogWriter(java.io.PrintWriter writer)
Not supported yet. |
boolean |
setTransactionTimeout(int i)
|
void |
start(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
getEISProductName
in interface ManagedConnectionMetaData
ResourceException
public java.lang.String getEISProductVersion() throws ResourceException
getEISProductVersion
in interface ManagedConnectionMetaData
ResourceException
public int getMaxConnections() throws ResourceException
getMaxConnections
in interface ManagedConnectionMetaData
ResourceException
public java.lang.String getUserName() throws ResourceException
getUserName
in interface ManagedConnectionMetaData
ResourceException
public java.lang.Object getConnection(Subject subject, ConnectionRequestInfo info) throws ResourceException
getConnection
in interface ManagedConnection
ResourceException
public void cleanup() throws ResourceException
cleanup
in interface ManagedConnection
ResourceException
public void destroy() throws ResourceException
destroy
in interface ManagedConnection
ResourceException
public void associateConnection(java.lang.Object o) throws ResourceException
associateConnection
in interface ManagedConnection
ResourceException
public void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener
in interface ManagedConnection
public void removeConnectionEventListener(ConnectionEventListener listener)
removeConnectionEventListener
in interface ManagedConnection
public XAResource getXAResource() throws ResourceException
getXAResource
in interface ManagedConnection
ResourceException
public LocalTransaction getLocalTransaction() throws ResourceException
getLocalTransaction
in interface ManagedConnection
ResourceException
public ManagedConnectionMetaData getMetaData() throws ResourceException
getMetaData
in interface ManagedConnection
ResourceException
public void setLogWriter(java.io.PrintWriter writer) throws ResourceException
setLogWriter
in interface ManagedConnection
ResourceException
public java.io.PrintWriter getLogWriter() throws ResourceException
getLogWriter
in interface ManagedConnection
ResourceException
public void begin() throws ResourceException
begin
in interface LocalTransaction
ResourceException
public void commit() throws ResourceException
commit
in interface LocalTransaction
ResourceException
public void rollback() throws ResourceException
rollback
in interface LocalTransaction
ResourceException
public void start(Xid xid, int i) throws XAException
start
in interface XAResource
XAException
public void end(Xid xid, int i) throws XAException
end
in interface XAResource
XAException
public boolean isSameRM(XAResource resource) throws XAException
isSameRM
in interface XAResource
resource
- The resource to be compared against this one wrt RM.
XAException
public int prepare(Xid xid) throws XAException
prepare
in interface XAResource
XAException
public void commit(Xid xid, boolean b) throws XAException
commit
in interface XAResource
XAException
public void rollback(Xid xid) throws XAException
rollback
in interface XAResource
XAException
public void forget(Xid xid) throws XAException
forget
in interface XAResource
XAException
public Xid[] recover(int i) throws XAException
recover
in interface XAResource
XAException
public int getTransactionTimeout() throws XAException
getTransactionTimeout
in interface XAResource
XAException
public boolean setTransactionTimeout(int i) throws XAException
setTransactionTimeout
in interface XAResource
XAException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |