* cfgloop.c (flow_loop_entry_edges_find): Fix typo.
[official-gcc.git] / libjava / javax / transaction / xa / XAResource.java
blob226850ce35e87dbb77231a43717db0b75b8f88e2
1 /* Copyright (C) 2001 Free Software Foundation
3 This file is part of libgcj.
5 This software is copyrighted work licensed under the terms of the
6 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
7 details. */
9 package javax.transaction.xa;
11 /**
12 * @author Warren Levy <warrenl@redhat.com>
13 * @date May 25, 2001
16 public abstract interface XAResource
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;
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;