public interface Transaction
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Completes the transaction, making writes and deletes visible to other database clients.
|
List<javax.ws.rs.core.NewCookie> |
getCookies()
Returns any cookies sent in the response to open the transaction.
|
String |
getHostId()
Returns the host identifier for the transaction that binds this
transaction with the host e-node for the transaction.
|
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()
String getHostId()
List<javax.ws.rs.core.NewCookie> getCookies()
<T extends StructureReadHandle> T readStatus(T handle) throws ForbiddenUserException, FailedRequestException
T - the type of StructureReadHandle handle to returnhandle - a JSON or XML handle on the content of the status reportForbiddenUserExceptionFailedRequestExceptionvoid commit()
throws ForbiddenUserException,
FailedRequestException
void rollback()
throws ForbiddenUserException,
FailedRequestException
Copyright © 2013-2016 MarkLogic Corporation.