java.lang.Object
io.ebeaninternal.api.ScopeTrans
Used internally to handle the scoping of transactions for methods.
-
Constructor Summary
ConstructorsConstructorDescriptionScopeTrans(boolean rollbackOnChecked, boolean created, SpiTransaction transaction, TxScope txScope) -
Method Summary
Modifier and TypeMethodDescriptioncaughtError(Error e) An Error was caught and this ALWAYS causes a rollback to occur.<T extends Throwable>
TcaughtThrowable(T e) An Exception was caught and may or may not cause a rollback to occur.voidcomplete()Complete the transaction programmatically.voidend()getUserObject(String name) voidputUserObject(String name, Object value) voidMark the underlying transaction as rollback only.toString()
-
Constructor Details
-
ScopeTrans
public ScopeTrans(boolean rollbackOnChecked, boolean created, SpiTransaction transaction, TxScope txScope)
-
-
Method Details
-
toString
-
complete
public void complete()Complete the transaction programmatically. Try to commit. -
end
public void end() -
caughtError
An Error was caught and this ALWAYS causes a rollback to occur. Returns the error and this should be thrown by the calling code. -
setRollbackOnly
public void setRollbackOnly()Mark the underlying transaction as rollback only. -
caughtThrowable
An Exception was caught and may or may not cause a rollback to occur. Returns the exception and this should be thrown by the calling code. -
putUserObject
-
getUserObject
-