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
9 package javax
.transaction
;
10 import javax
.transaction
.xa
.XAResource
;
13 * @author Warren Levy <warrenl@redhat.com>
17 public abstract interface Transaction
20 throws RollbackException
, HeuristicMixedException
,
21 HeuristicRollbackException
, java
.lang
.SecurityException
, SystemException
;
22 public boolean delistResource(XAResource xaRes
, int flag
)
23 throws java
.lang
.IllegalStateException
, SystemException
;
24 public boolean enlistResource(XAResource xaRes
)
25 throws RollbackException
, java
.lang
.IllegalStateException
, SystemException
;
26 public int getStatus() throws SystemException
;
27 public void registerSynchronization(Synchronization sync
)
28 throws RollbackException
, java
.lang
.IllegalStateException
, SystemException
;
29 public void rollback()
30 throws java
.lang
.IllegalStateException
, SystemException
;
31 public void setRollbackOnly()
32 throws java
.lang
.IllegalStateException
, SystemException
;