public interface Transaction
Modifier and Type | Method and Description |
---|---|
void |
commit()
Completes the transaction, making writes and deletes visible to other database clients.
|
String |
getTransactionId()
Returns the identifier for the transaction.
|
<T extends StructureReadHandle> |
readStatus(T handle)
Reads the status for the transaction including whether the transaction
has timed out.
|
void |
rollback()
Cancels the transaction, reverting the database to its state prior to the writes and deletes
made in the transaction.
|
String getTransactionId()
<T extends StructureReadHandle> T readStatus(T handle) throws ForbiddenUserException, FailedRequestException
handle
- a JSON or XML handle on the content of the status reportForbiddenUserException
FailedRequestException
void commit() throws ForbiddenUserException, FailedRequestException
void rollback() throws ForbiddenUserException, FailedRequestException
Copyright © 2013-2015 MarkLogic Corporation.