| 1 | /* Copyright (C) 2001 Free Software Foundation
|
|---|
| 2 |
|
|---|
| 3 | This file is part of libgcj.
|
|---|
| 4 |
|
|---|
| 5 | This software is copyrighted work licensed under the terms of the
|
|---|
| 6 | Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|---|
| 7 | details. */
|
|---|
| 8 |
|
|---|
| 9 | package javax.transaction.xa;
|
|---|
| 10 |
|
|---|
| 11 | /**
|
|---|
| 12 | * @author Warren Levy <[email protected]>
|
|---|
| 13 | * @date May 25, 2001
|
|---|
| 14 | */
|
|---|
| 15 |
|
|---|
| 16 | public abstract interface XAResource
|
|---|
| 17 | {
|
|---|
| 18 | public static final int TMENDRSCAN = 8388608;
|
|---|
| 19 | public static final int TMFAIL = 536870912;
|
|---|
| 20 | public static final int TMJOIN = 2097152;
|
|---|
| 21 | public static final int TMNOFLAGS = 0;
|
|---|
| 22 | public static final int TMONEPHASE = 1073741824;
|
|---|
| 23 | public static final int TMRESUME = 134217728;
|
|---|
| 24 | public static final int TMSTARTRSCAN = 16777216;
|
|---|
| 25 | public static final int TMSUCCESS = 67108864;
|
|---|
| 26 | public static final int TMSUSPEND = 33554432;
|
|---|
| 27 | public static final int XA_RDONLY = 3;
|
|---|
| 28 | public static final int XA_OK = 0;
|
|---|
| 29 |
|
|---|
| 30 | public void commit(Xid xid, boolean onePhase) throws XAException;
|
|---|
| 31 | public void end(Xid xid, int flags) throws XAException;
|
|---|
| 32 | public void forget(Xid xid) throws XAException;
|
|---|
| 33 | public int getTransactionTimeout() throws XAException;
|
|---|
| 34 | public boolean isSameRM(XAResource xares) throws XAException;
|
|---|
| 35 | public int prepare(Xid xid) throws XAException;
|
|---|
| 36 | public Xid[] recover(int flag) throws XAException;
|
|---|
| 37 | public void rollback(Xid xid) throws XAException;
|
|---|
| 38 | public boolean setTransactionTimeout(int seconds) throws XAException;
|
|---|
| 39 | public void start(Xid xid, int flags) throws XAException;
|
|---|
| 40 | }
|
|---|