org.objectweb.jotm.jtests.conform
Class XAInteger

java.lang.Object
  |
  +--org.objectweb.jotm.jtests.conform.XAObject
        |
        +--org.objectweb.jotm.jtests.conform.XAInteger
All Implemented Interfaces:
javax.transaction.xa.XAResource

public class XAInteger
extends XAObject

An integer that supports the 2-PC XA protocol Created on Oct 15, 2001

Author:
Christophe Ney

Field Summary
 
Fields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
 
Constructor Summary
XAInteger(int value)
           
XAInteger(int value, boolean failOnCommit)
           
 
Method Summary
 int getCurrentInteger()
           
 int getPersistentInteger()
           
 void setCurrentInteger(int value)
           
 
Methods inherited from class org.objectweb.jotm.jtests.conform.XAObject
commit, end, forget, getCurrentValue, getPersistentValue, getTransactionTimeout, isDirty, isSameRM, prepare, recover, rollback, setCurrentValue, setLogWriter, setTransactionTimeout, start, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XAInteger

public XAInteger(int value,
                 boolean failOnCommit)

XAInteger

public XAInteger(int value)
Method Detail

setCurrentInteger

public void setCurrentInteger(int value)
                       throws javax.transaction.xa.XAException
javax.transaction.xa.XAException

getPersistentInteger

public int getPersistentInteger()

getCurrentInteger

public int getCurrentInteger()
                      throws javax.transaction.xa.XAException
javax.transaction.xa.XAException