1 23 24 package javax.transaction.xa; 25 26 57 58 public interface XAResource 59 { 60 76 77 void commit(Xid xid, boolean onePhase) throws XAException ; 78 79 80 105 106 void end(Xid xid, int flags) throws XAException ; 107 108 109 118 119 void forget(Xid xid) throws XAException ; 120 121 133 int getTransactionTimeout() throws XAException ; 134 135 150 boolean isSameRM(XAResource xares) throws XAException ; 151 152 167 168 int prepare(Xid xid) throws XAException ; 169 170 171 189 190 Xid [] recover(int flag) throws XAException ; 191 192 193 207 208 void rollback(Xid xid) throws XAException ; 209 210 211 230 boolean setTransactionTimeout(int seconds) throws XAException ; 231 232 233 256 void start(Xid xid, int flags) throws XAException ; 257 258 259 262 public final static int TMENDRSCAN = 0x00800000; 263 264 268 public final static int TMFAIL = 0x20000000; 269 270 273 public final static int TMJOIN = 0x00200000; 274 275 278 public final static int TMNOFLAGS = 0x00000000; 279 280 283 public final static int TMONEPHASE = 0x40000000; 284 285 289 public final static int TMRESUME = 0x08000000; 290 291 294 public final static int TMSTARTRSCAN = 0x01000000; 295 296 297 300 public final static int TMSUCCESS = 0x04000000; 301 302 303 307 public final static int TMSUSPEND = 0x02000000; 308 309 312 public final static int XA_RDONLY = 0x00000003; 313 314 317 public final static int XA_OK = 0; 318 319 } 320 | Popular Tags |