Package io.tesler.api.service.tx
Interface TransactionService
-
- All Known Implementing Classes:
TransactionServiceImpl
public interface TransactionService
-
-
Field Summary
Fields Modifier and Type Field Description static String
SERVICE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
flush()
<T,E extends RuntimeException>
voidinvokeAfterCompletion(Invoker<T,E> invoker)
<T,E extends Throwable>
TinvokeInNewRollbackOnlyTx(Invoker<T,E> invoker)
<T,E extends Throwable>
TinvokeInNewROTx(Invoker<T,E> invoker)
<T,E extends Throwable>
TinvokeInNewTx(Invoker<T,E> invoker)
<T,E extends Throwable>
TinvokeInTx(Invoker<T,E> invoker)
<T,E extends Throwable>
TinvokeNoTx(Invoker<T,E> invoker)
boolean
isActive()
boolean
isRollbackOnly()
void
setRollbackOnly()
<T> T
woAutoFlush(Invoker<T,RuntimeException> invoker)
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
invokeInTx
@Transactional(propagation=REQUIRED) <T,E extends Throwable> T invokeInTx(Invoker<T,E> invoker) throws E extends Throwable
- Throws:
E extends Throwable
-
invokeInNewTx
@Transactional(propagation=REQUIRES_NEW) <T,E extends Throwable> T invokeInNewTx(Invoker<T,E> invoker) throws E extends Throwable
- Throws:
E extends Throwable
-
invokeNoTx
@Transactional(propagation=NOT_SUPPORTED) <T,E extends Throwable> T invokeNoTx(Invoker<T,E> invoker) throws E extends Throwable
- Throws:
E extends Throwable
-
invokeInNewROTx
@Transactional(propagation=REQUIRES_NEW, readOnly=true) <T,E extends Throwable> T invokeInNewROTx(Invoker<T,E> invoker) throws E extends Throwable
- Throws:
E extends Throwable
-
invokeInNewRollbackOnlyTx
@Transactional(propagation=REQUIRES_NEW) <T,E extends Throwable> T invokeInNewRollbackOnlyTx(Invoker<T,E> invoker) throws E extends Throwable
- Throws:
E extends Throwable
-
setRollbackOnly
void setRollbackOnly()
-
isRollbackOnly
boolean isRollbackOnly()
-
isActive
boolean isActive()
-
invokeAfterCompletion
<T,E extends RuntimeException> void invokeAfterCompletion(Invoker<T,E> invoker) throws E extends RuntimeException
- Throws:
E extends RuntimeException
-
woAutoFlush
<T> T woAutoFlush(Invoker<T,RuntimeException> invoker)
-
flush
void flush()
-
-