public interface JtxResourceManager<E>
transaction
.
Resource manager has to be registered in the transaction manager
.Modifier and Type | Method and Description |
---|---|
E |
beginTransaction(JtxTransactionMode jtxMode,
boolean active)
Creates new resource and begins new transaction if specified so by
active flag, usually determined by propagation behavior.
|
void |
close()
Closes manager and free its resources.
|
void |
commitTransaction(E resource)
Commits resource and closes it if committing was successful.
|
java.lang.Class<E> |
getResourceType()
Returns associated resource type.
|
void |
rollbackTransaction(E resource)
Rollback resource and closes it.
|
java.lang.Class<E> getResourceType()
E beginTransaction(JtxTransactionMode jtxMode, boolean active)
void commitTransaction(E resource)
void rollbackTransaction(E resource)
void close()
Copyright © 2003-present Jodd Team