|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JtxResourceManager<E>
Resource manager
is responsible for managing transactions of the
resources of the same type under the control of the transaction
.
Resource manager has to be registered in the transaction manager
.
Method Summary | |
---|---|
E |
beginTransaction(JtxTransactionMode mode)
Creates new resource and begins new transaction if specified so 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. |
Method Detail |
---|
java.lang.Class<E> getResourceType()
E beginTransaction(JtxTransactionMode mode)
propagation behavior
.
void commitTransaction(E resource)
void rollbackTransaction(E resource)
void close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |