source: trunk/src/gcc/libjava/javax/transaction/xa/XAResource.java@ 2

Last change on this file since 2 was 2, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.4 KB
Line 
1/* Copyright (C) 2001 Free Software Foundation
2
3 This file is part of libgcj.
4
5This software is copyrighted work licensed under the terms of the
6Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
7details. */
8
9package javax.transaction.xa;
10
11/**
12 * @author Warren Levy <[email protected]>
13 * @date May 25, 2001
14 */
15
16public 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}
Note: See TracBrowser for help on using the repository browser.