public class JoltTransaction
extends java.lang.Object
JoltRemoteService,
JoltSession| Constructor and Description |
|---|
JoltTransaction(int timeout,
Session session)
The constructor (or the method that is invoked automatically when
a new instance of a class is created) implies the beginning of the
transaction.
|
JoltTransaction(int timeout,
Session session,
java.lang.String principal,
java.lang.String realm) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commit the transaction.
|
Session |
getSession()
Get the session associated with this transaction.
|
void |
rollback()
Roll back or abort the transaction.
|
public JoltTransaction(int timeout,
Session session)
throws TransactionException
timeout - A suggested transaction timeout value in secondssession - The session which the transaction belongs toTransactionException - Another transaction is already in
progress, or invalid session objectJoltSession,
JoltRemoteService.call(bea.jolt.Transaction)public JoltTransaction(int timeout,
Session session,
java.lang.String principal,
java.lang.String realm)
throws TransactionException
TransactionExceptionpublic Session getSession()
JoltSessionpublic void commit()
throws TransactionException
TransactionException - A transaction error has occurred.public void rollback()
throws TransactionException
TransactionException - A transaction error has occurred.Copyright © 1996, 2024, Oracle and/or its affiliates.