Loading TOC...

xdmp.getTransactionMode

xdmp.getTransactionMode() as String

Summary

Retrieve the transaction mode for the current session. Returns one of "auto", "update", "update-auto-commit", or "query".

Usage Notes

The transaction mode for the session may not be the same as the transaction mode for the current transaction. The mode of a transaction is fixed when the transaction is created.

Example

declareUpdate();
xdmp.getTransactionMode();

=> "update-auto-commit"

Example

declareUpdate();
xdmp.setTransactionMode("query");
xdmp.getTransactionMode();

=> "query". Changing the transaction mode during
   execution does not affect the current transaction,
   but still changes the transaction mode of the
   current session.

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy