|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ca.idms.io.TraceObject ca.idms.xa.IdmsXAResource
public class IdmsXAResource
Represents an IDMS connection to an XA Transaction Manager.
IdmsXAConnection
Field Summary | |
---|---|
static java.lang.String |
COUNT
Property name to set internal recover count. |
Fields inherited from class ca.idms.io.TraceObject |
---|
exclude, EXCLUDE, FALSE, include, INCLUDE, logWriter, PREFIX, PROPERTIES_FILE, PROPERTIES_KEY, snap, SNAP, SNAP_BYTES, SNAP_NATIVE, SNAP_OBJECT, SNAP_SQL, snapBytes, snapNative, snapObject, snapSql, stub, trace, TRACE, TRACE_FILE, TRACE_LIFE, TRACE_NATIVE, TRACE_PRODUCT, traceLife, traceNative, traceStream, TRUE |
Fields inherited from interface javax.transaction.xa.XAResource |
---|
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY |
Constructor Summary | |
---|---|
IdmsXAResource(ca.idms.dsi.Node node,
ca.idms.xa.IdmsXAListener listener)
Creates an XA object for an IDMS resource manager. |
Method Summary | |
---|---|
void |
close()
Marks this XAResource as physically disconnected. |
void |
commit(javax.transaction.xa.Xid xid,
boolean onePhase)
Commits the transaction branch. |
void |
end(javax.transaction.xa.Xid xid,
int flags)
Delists the connection from the global transaction. |
void |
forget(javax.transaction.xa.Xid xid)
Forgets about the transaction branch. |
protected java.lang.Object |
get(java.lang.reflect.Field f)
Overrides the default get method to allow the default snap method access to the value of a non-public variable. |
int |
getTransactionTimeout()
Gets the transaction timeout. |
boolean |
isSameRM(javax.transaction.xa.XAResource xar)
|
int |
prepare(javax.transaction.xa.Xid xid)
Prepares the connection to COMMIT. |
javax.transaction.xa.Xid[] |
recover(int flags)
Gets a list of in doubt transactions from IDMS. |
void |
rollback(javax.transaction.xa.Xid xid)
Rolls the transaction branch back. |
boolean |
setTransactionTimeout(int t)
Sets the transaction timeout. |
void |
start(javax.transaction.xa.Xid xid,
int flags)
Enlists the connection in the global transaction. |
Methods inherited from class ca.idms.io.TraceObject |
---|
finalize, getBoolean, getClasses, getInteger, getProperty, listProperties, message, parseList, print, print, print, println, println, snap, snap, snap, snap, snap, snap, snap, toHex, toHex, toHex, toHex, toHex, toString, trace, trace, trace, trace, trace, trace, traceEntry, unloadProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COUNT
Constructor Detail |
---|
public IdmsXAResource(ca.idms.dsi.Node node, ca.idms.xa.IdmsXAListener listener)
node
- The DSI physical connection objectlistener
- The DSI resource manager connection objectMethod Detail |
---|
protected java.lang.Object get(java.lang.reflect.Field f) throws java.lang.IllegalAccessException
get
in class TraceObject
f
- a Field returned by Class.getDeclaredFields
java.lang.IllegalAccessException
- should not
really happen, but Field.get requires itTraceObject.snap
,
TraceObject.snap()
public void close()
SQLException
- does not happen.public int getTransactionTimeout() throws javax.transaction.xa.XAException
getTransactionTimeout
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
- (not really).public boolean setTransactionTimeout(int t) throws javax.transaction.xa.XAException
setTransactionTimeout
in interface javax.transaction.xa.XAResource
t
- timeout value
javax.transaction.xa.XAException
- (not really).public boolean isSameRM(javax.transaction.xa.XAResource xar) throws javax.transaction.xa.XAException
isSameRM
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
public void start(javax.transaction.xa.Xid xid, int flags) throws javax.transaction.xa.XAException
start
in interface javax.transaction.xa.XAResource
xid
- The XID from the transaction manager.flags
- Options or 0.
javax.transaction.xa.XAException
- if an error occurs.public void end(javax.transaction.xa.Xid xid, int flags) throws javax.transaction.xa.XAException
end
in interface javax.transaction.xa.XAResource
xid
- The XID from the transaction manager.flags
- Options or 0.
javax.transaction.xa.XAException
- if an error occurs.public int prepare(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
prepare
in interface javax.transaction.xa.XAResource
xid
- The XID from the transaction manager.
javax.transaction.xa.XAException
- if an error occurs.public void commit(javax.transaction.xa.Xid xid, boolean onePhase) throws javax.transaction.xa.XAException
commit
in interface javax.transaction.xa.XAResource
xid
- The XID from the transaction manager.onePhase
- true to request one phase COMMIT optimization.
javax.transaction.xa.XAException
- if an error occurs.public void rollback(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
rollback
in interface javax.transaction.xa.XAResource
xid
- The XID from the transaction manager.
javax.transaction.xa.XAException
- if an error occurs.public void forget(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
forget
in interface javax.transaction.xa.XAResource
xid
- The XID from the transaction manager.
javax.transaction.xa.XAException
- if an error occurs.public javax.transaction.xa.Xid[] recover(int flags) throws javax.transaction.xa.XAException
recover
in interface javax.transaction.xa.XAResource
flags
- Recover options.
javax.transaction.xa.XAException
- if an error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |