本文整理了Java中com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.restore_state()
方法的一些代码示例,展示了XAResourceRecord.restore_state()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XAResourceRecord.restore_state()
方法的具体详情如下:
包路径:com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord
类名称:XAResourceRecord
方法名:restore_state
暂无
代码示例来源:origin: jbosstm/narayana
public boolean restore_state(InputObjectState os, int t) {
InputObjectState copy = new InputObjectState(os);
try {
heuristic = copy.unpackInt();
} catch (IOException e) {
}
return super.restore_state(os, t);
}
代码示例来源:origin: org.jboss.narayana.jta/jta
public boolean restore_state(InputObjectState os, int t) {
InputObjectState copy = new InputObjectState(os);
try {
heuristic = copy.unpackInt();
} catch (IOException e) {
}
return super.restore_state(os, t);
}
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj
public boolean restore_state(InputObjectState os, int t) {
InputObjectState copy = new InputObjectState(os);
try {
heuristic = copy.unpackInt();
} catch (IOException e) {
}
return super.restore_state(os, t);
}
代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta
public boolean restore_state(InputObjectState os, int t) {
InputObjectState copy = new InputObjectState(os);
try {
heuristic = copy.unpackInt();
} catch (IOException e) {
}
return super.restore_state(os, t);
}
}
代码示例来源:origin: jbosstm/narayana
public boolean restore_state(InputObjectState os, int t) {
InputObjectState copy = new InputObjectState(os);
try {
heuristic = copy.unpackInt();
} catch (IOException e) {
}
return super.restore_state(os, t);
}
代码示例来源:origin: jbosstm/narayana
@Test
public void testPackUnpack () throws Exception
{
XAResourceRecord xares;
DummyRecoverableXAConnection rc = new DummyRecoverableXAConnection();
Object[] params = new Object[1];
params[XAResourceRecord.XACONNECTION] = rc;
xares = new XAResourceRecord(new TransactionImple(0), new DummyXA(false), new XidImple(new Uid()), params);
OutputObjectState os = new OutputObjectState();
assertTrue(xares.save_state(os, ObjectType.ANDPERSISTENT));
InputObjectState is = new InputObjectState(os);
assertTrue(xares.restore_state(is, ObjectType.ANDPERSISTENT));
xares = new XAResourceRecord(new TransactionImple(0), new DummyXA(false), new XidImple(new Uid()), null);
os = new OutputObjectState();
assertTrue(xares.save_state(os, ObjectType.ANDPERSISTENT));
is = new InputObjectState(os);
assertTrue(xares.restore_state(is, ObjectType.ANDPERSISTENT));
}
内容来源于网络,如有侵权,请联系作者删除!