To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
A transaction manager intended specifically for use with custom apps This is available as the transactionManager variable. So in custom apps you use this: <pre> transactionManager.commit(); </pre>
Methods
| Signature | Returns | Notes |
|---|---|---|
begin() | void | |
commit() | void | |
rollback() | void | |
runInTransaction(Object som) | void | |
lockEntityLocally(Object entity, Object som) | void | Executes the given function with a local lock on the given entity.This will prevent these operations being run concurrently on the given profile on this server only. |
executeInTransaction(Supplier<T> r) | T | |
setRollbackOnly() | void | Call this from inside a transaction to ensure it gets rolled back The rollback occurs when the transaction scope ends, not immediately |