bea.jolt.pool
Class Transaction
java.lang.Object
|
+--bea.jolt.pool.Transaction
- public class Transaction
- extends java.lang.Object
This class is used to associate one or more BEA TUXEDO services into a single
transaction. This class is not instantiated directly, it is created
by calling the startTransaction() method on the
SessionPool class.
Methods on this class are used to complete a transaction
(commit or rollback).
- Author:
- Copyright (c) 1999 by BEA Systems, Inc. All Rights Reserved.
Copyright © 2000 BEA Systems, Inc. All Rights Reserved.
Method Summary
|
int |
commit()
Commits the transaction. |
int |
rollback()
Rolls back the transaction. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
commit
public int commit()
throws TransactionException
- Commits the transaction.
If the transaction cannot be committed
for any reason, this method throws a TransactionException.
- Returns:
- Zero if the commit is successful
- See Also:
SessionPool.startTransaction(int)
rollback
public int rollback()
throws TransactionException
- Rolls back the transaction.
If the transaction cannot be rolled
back for any reason, this method throws a TransactionException.
- Returns:
- 0 If the rollback is successful
- See Also:
SessionPool.startTransaction(int)