Uses of Record Class
st.orm.TransactionOptions
Packages that use TransactionOptions
Package
Description
Foundation of the data model: the mapping annotations and the record interfaces.
Java client API: templates, query builders and transactions.
-
Uses of TransactionOptions in st.orm
Methods in st.orm that return TransactionOptionsModifier and TypeMethodDescriptionstatic TransactionOptionsTransactionOptions.defaults()Options with every field inherited from the surrounding defaults.TransactionOptions.withIsolation(TransactionIsolation isolation) TransactionOptions.withPropagation(TransactionPropagation propagation) TransactionOptions.withReadOnly(boolean readOnly) TransactionOptions.withTimeoutSeconds(int timeoutSeconds) -
Uses of TransactionOptions in st.orm.template
Methods in st.orm.template with parameters of type TransactionOptionsModifier and TypeMethodDescriptionstatic voidTransactions.setGlobalTransactionOptions(TransactionOptions options) Sets the global transaction options, affecting new transactions that do not override options locally.static <R,E extends Exception>
RTransactions.transaction(TransactionOptions options, TransactionBlock<R, E> block) Executes the given block within a database transaction with the given options.static <R,E extends Exception>
RTransactions.withTransactionOptions(TransactionOptions options, TransactionSupplier<R, E> block) Executes the given block with the given options as the thread-scoped transaction defaults.