com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.restore_state()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(95)

本文整理了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

XAResourceRecord.restore_state介绍

暂无

代码示例

代码示例来源:origin: jbosstm/narayana

  1. public boolean restore_state(InputObjectState os, int t) {
  2. InputObjectState copy = new InputObjectState(os);
  3. try {
  4. heuristic = copy.unpackInt();
  5. } catch (IOException e) {
  6. }
  7. return super.restore_state(os, t);
  8. }

代码示例来源:origin: org.jboss.narayana.jta/jta

  1. public boolean restore_state(InputObjectState os, int t) {
  2. InputObjectState copy = new InputObjectState(os);
  3. try {
  4. heuristic = copy.unpackInt();
  5. } catch (IOException e) {
  6. }
  7. return super.restore_state(os, t);
  8. }

代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj

  1. public boolean restore_state(InputObjectState os, int t) {
  2. InputObjectState copy = new InputObjectState(os);
  3. try {
  4. heuristic = copy.unpackInt();
  5. } catch (IOException e) {
  6. }
  7. return super.restore_state(os, t);
  8. }

代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta

  1. public boolean restore_state(InputObjectState os, int t) {
  2. InputObjectState copy = new InputObjectState(os);
  3. try {
  4. heuristic = copy.unpackInt();
  5. } catch (IOException e) {
  6. }
  7. return super.restore_state(os, t);
  8. }
  9. }

代码示例来源:origin: jbosstm/narayana

  1. public boolean restore_state(InputObjectState os, int t) {
  2. InputObjectState copy = new InputObjectState(os);
  3. try {
  4. heuristic = copy.unpackInt();
  5. } catch (IOException e) {
  6. }
  7. return super.restore_state(os, t);
  8. }

代码示例来源:origin: jbosstm/narayana

  1. @Test
  2. public void testPackUnpack () throws Exception
  3. {
  4. XAResourceRecord xares;
  5. DummyRecoverableXAConnection rc = new DummyRecoverableXAConnection();
  6. Object[] params = new Object[1];
  7. params[XAResourceRecord.XACONNECTION] = rc;
  8. xares = new XAResourceRecord(new TransactionImple(0), new DummyXA(false), new XidImple(new Uid()), params);
  9. OutputObjectState os = new OutputObjectState();
  10. assertTrue(xares.save_state(os, ObjectType.ANDPERSISTENT));
  11. InputObjectState is = new InputObjectState(os);
  12. assertTrue(xares.restore_state(is, ObjectType.ANDPERSISTENT));
  13. xares = new XAResourceRecord(new TransactionImple(0), new DummyXA(false), new XidImple(new Uid()), null);
  14. os = new OutputObjectState();
  15. assertTrue(xares.save_state(os, ObjectType.ANDPERSISTENT));
  16. is = new InputObjectState(os);
  17. assertTrue(xares.restore_state(is, ObjectType.ANDPERSISTENT));
  18. }

相关文章