public class DataSourceXAResourceRecoveryHelper extends Object implements com.arjuna.ats.jta.recovery.XAResourceRecoveryHelper, XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
Constructor and Description |
---|
DataSourceXAResourceRecoveryHelper(XADataSource xaDataSource)
Create a new
DataSourceXAResourceRecoveryHelper instance. |
DataSourceXAResourceRecoveryHelper(XADataSource xaDataSource,
String user,
String password)
Create a new
DataSourceXAResourceRecoveryHelper instance. |
Modifier and Type | Method and Description |
---|---|
void |
commit(Xid xid,
boolean onePhase) |
void |
end(Xid xid,
int flags) |
void |
forget(Xid xid) |
int |
getTransactionTimeout() |
XAResource[] |
getXAResources() |
boolean |
initialise(String properties) |
boolean |
isSameRM(XAResource xaResource) |
int |
prepare(Xid xid) |
Xid[] |
recover(int flag) |
void |
rollback(Xid xid) |
boolean |
setTransactionTimeout(int seconds) |
void |
start(Xid xid,
int flags) |
public DataSourceXAResourceRecoveryHelper(XADataSource xaDataSource)
DataSourceXAResourceRecoveryHelper
instance.xaDataSource
- the XA data sourcepublic DataSourceXAResourceRecoveryHelper(XADataSource xaDataSource, String user, String password)
DataSourceXAResourceRecoveryHelper
instance.xaDataSource
- the XA data sourceuser
- the database user or null
password
- the database password or null
public boolean initialise(String properties)
initialise
in interface com.arjuna.ats.jta.recovery.XAResourceRecoveryHelper
public XAResource[] getXAResources()
getXAResources
in interface com.arjuna.ats.jta.recovery.XAResourceRecoveryHelper
public Xid[] recover(int flag) throws XAException
recover
in interface XAResource
XAException
public void start(Xid xid, int flags) throws XAException
start
in interface XAResource
XAException
public void end(Xid xid, int flags) throws XAException
end
in interface XAResource
XAException
public int prepare(Xid xid) throws XAException
prepare
in interface XAResource
XAException
public void commit(Xid xid, boolean onePhase) throws XAException
commit
in interface XAResource
XAException
public void rollback(Xid xid) throws XAException
rollback
in interface XAResource
XAException
public boolean isSameRM(XAResource xaResource) throws XAException
isSameRM
in interface XAResource
XAException
public void forget(Xid xid) throws XAException
forget
in interface XAResource
XAException
public int getTransactionTimeout() throws XAException
getTransactionTimeout
in interface XAResource
XAException
public boolean setTransactionTimeout(int seconds) throws XAException
setTransactionTimeout
in interface XAResource
XAException
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.