| 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;
|
|---|
| 10 |
|
|---|
| 11 | /**
|
|---|
| 12 | * @author Warren Levy <[email protected]>
|
|---|
| 13 | * @date May 25, 2001
|
|---|
| 14 | */
|
|---|
| 15 |
|
|---|
| 16 | public abstract interface TransactionManager
|
|---|
| 17 | {
|
|---|
| 18 | public void begin() throws NotSupportedException, SystemException;
|
|---|
| 19 | public void commit()
|
|---|
| 20 | throws RollbackException, HeuristicMixedException,
|
|---|
| 21 | HeuristicRollbackException, java.lang.SecurityException,
|
|---|
| 22 | java.lang.IllegalStateException, SystemException;
|
|---|
| 23 | public int getStatus() throws SystemException;
|
|---|
| 24 | public Transaction getTransaction() throws SystemException;
|
|---|
| 25 | public void resume(Transaction tobj)
|
|---|
| 26 | throws InvalidTransactionException, java.lang.IllegalStateException,
|
|---|
| 27 | SystemException;
|
|---|
| 28 | public void rollback()
|
|---|
| 29 | throws java.lang.IllegalStateException, java.lang.SecurityException,
|
|---|
| 30 | SystemException;
|
|---|
| 31 | public void setRollbackOnly()
|
|---|
| 32 | throws java.lang.IllegalStateException, SystemException;
|
|---|
| 33 | public void setTransactionTimeout(int seconds) throws SystemException;
|
|---|
| 34 | public Transaction suspend() throws SystemException;
|
|---|
| 35 | }
|
|---|