|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PersistenceCallback
Defines callback operations for persistence operations. These operations
will be invoked when used with
ResourceHomeImpl.
Currently, the ResourceHomeImpl will only invoke the
load() function automatically.
The resource implementation itself is responsible for calling
store() function to synchronize its state on disk.
| Method Summary | |
|---|---|
void |
load(ResourceKey key)
Loads the resource state. |
void |
store()
Saves the resource state. |
| Method Detail |
|---|
void load(ResourceKey key)
throws ResourceException,
NoSuchResourceException,
InvalidResourceKeyException
NoSuchResourceException - if no resource state exists for the
specified key.
InvalidResourceKeyException - if the resource key is invalid.
ResourceException - if the load operation fails for any other
reason.
void store()
throws ResourceException
ResourceException - if the store operation fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||