45 |
|
|
46 |
public interface TransactionManager |
public interface TransactionManager |
47 |
{ |
{ |
48 |
public void begin() throws NotSupportedException, SystemException; |
void begin() throws NotSupportedException, SystemException; |
49 |
|
|
50 |
public void commit() |
void commit() |
51 |
throws RollbackException, HeuristicMixedException, |
throws RollbackException, HeuristicMixedException, |
52 |
HeuristicRollbackException, SecurityException, |
HeuristicRollbackException, SecurityException, |
53 |
IllegalStateException, SystemException; |
IllegalStateException, SystemException; |
54 |
|
|
55 |
public int getStatus() throws SystemException; |
int getStatus() throws SystemException; |
56 |
|
|
57 |
public Transaction getTransaction() throws SystemException; |
Transaction getTransaction() throws SystemException; |
58 |
|
|
59 |
public void resume(Transaction tobj) |
void resume(Transaction tobj) |
60 |
throws InvalidTransactionException, IllegalStateException, |
throws InvalidTransactionException, IllegalStateException, |
61 |
SystemException; |
SystemException; |
62 |
|
|
63 |
public void rollback() |
void rollback() |
64 |
throws IllegalStateException, SecurityException, SystemException; |
throws IllegalStateException, SecurityException, SystemException; |
65 |
|
|
66 |
public void setRollbackOnly() |
void setRollbackOnly() |
67 |
throws IllegalStateException, SystemException; |
throws IllegalStateException, SystemException; |
68 |
|
|
69 |
public void setTransactionTimeout(int seconds) throws SystemException; |
void setTransactionTimeout(int seconds) throws SystemException; |
70 |
|
|
71 |
public Transaction suspend() throws SystemException; |
Transaction suspend() throws SystemException; |
72 |
} |
} |