|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface WorkManager
Created with IntelliJ IDEA. User: dhanji Date: Oct 7, 2007 Time: 8:48:33 PM
This interface is used to gain manual control over the unit of work. This
is mostly to do work in non-request, non-transactional threads. Or where more
fine-grained control over the unit of work is required. Starting and ending a
unit of work directly corresponds to opening and closing a Session,
EntityManager or ObjectContainer respectively.
The Unit of Work referred to by WorkManager will always be local to the calling thread. Be careful to endWork() in a finally block. Neither JPA, nor Hibernate supports threadsafe sessions (reasoning behind thread-locality of Unit of Work semantics).
| Method Summary | |
|---|---|
void |
beginWork()
Starts a Unit Of Work. |
void |
endWork()
Declares an end to the current Unit of Work. |
| Method Detail |
|---|
void beginWork()
void endWork()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||