public interface Transaction
Modifier and Type | Method and Description |
---|---|
void |
commit()
Completes the transaction, making writes and
deletes visible to other database clients.
|
java.util.List<com.marklogic.client.impl.ClientCookie> |
getCookies()
Returns any cookies sent in the response to open
the transaction.
|
java.lang.String |
getHostId()
Returns the host identifier for the transaction
that binds this transaction with the host e-node for the
transaction.
|
java.lang.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.
|
java.lang.String getTransactionId()
java.lang.String getHostId()
java.util.List<com.marklogic.client.impl.ClientCookie> 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 reportForbiddenUserException
FailedRequestException
void commit() throws ForbiddenUserException, FailedRequestException
void rollback() throws ForbiddenUserException, FailedRequestException
Copyright © 2024 MarkLogic Corporation. All Rights Reserved.