summaryrefslogtreecommitdiff
path: root/libjava/javax/transaction/xa/XAResource.h
blob: 2a5442dd94518a09159f0071d352bfd89a0b24dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __javax_transaction_xa_XAResource__
#define __javax_transaction_xa_XAResource__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace javax
  {
    namespace transaction
    {
      namespace xa
      {
          class XAResource;
          class Xid;
      }
    }
  }
}

class javax::transaction::xa::XAResource : public ::java::lang::Object
{

public:
  virtual void commit(::javax::transaction::xa::Xid *, jboolean) = 0;
  virtual void end(::javax::transaction::xa::Xid *, jint) = 0;
  virtual void forget(::javax::transaction::xa::Xid *) = 0;
  virtual jint getTransactionTimeout() = 0;
  virtual jboolean isSameRM(::javax::transaction::xa::XAResource *) = 0;
  virtual jint prepare(::javax::transaction::xa::Xid *) = 0;
  virtual JArray< ::javax::transaction::xa::Xid * > * recover(jint) = 0;
  virtual void rollback(::javax::transaction::xa::Xid *) = 0;
  virtual jboolean setTransactionTimeout(jint) = 0;
  virtual void start(::javax::transaction::xa::Xid *, jint) = 0;
  static const jint TMENDRSCAN = 8388608;
  static const jint TMFAIL = 536870912;
  static const jint TMJOIN = 2097152;
  static const jint TMNOFLAGS = 0;
  static const jint TMONEPHASE = 1073741824;
  static const jint TMRESUME = 134217728;
  static const jint TMSTARTRSCAN = 16777216;
  static const jint TMSUCCESS = 67108864;
  static const jint TMSUSPEND = 33554432;
  static const jint XA_RDONLY = 3;
  static const jint XA_OK = 0;
  static ::java::lang::Class class$;
} __attribute__ ((java_interface));

#endif // __javax_transaction_xa_XAResource__