|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PersistenceHelper
| Method Summary | |
|---|---|
java.util.List |
list()
|
java.lang.Object |
load(java.lang.Class clazz,
java.lang.Object key)
Loads and returns the object of the given key from the persistent storage. |
void |
load(java.lang.Object key,
ReflectionResource resource)
Loads and initialize the resource. |
void |
remove(ReflectionResource resource)
Removes the resource from persistent storage. |
void |
removeAll()
|
void |
store(ReflectionResource resource)
Store the resource into an XML document (current implementation). |
| Method Detail |
|---|
java.util.List list()
throws java.lang.Exception
java.lang.Exception
void load(java.lang.Object key,
ReflectionResource resource)
throws org.globus.wsrf.ResourceException
key - the key of the potentially new resourceresource - the new resource to load.
Its key and implementation bean are null.
They will be set by a call from this method to
resource.initialize().
org.globus.wsrf.ResourceExceptionPersistentResource
java.lang.Object load(java.lang.Class clazz,
java.lang.Object key)
throws org.globus.wsrf.ResourceException
key - key of object to load.
org.globus.wsrf.ResourceException - If the object cannot be loaded from file.
void store(ReflectionResource resource)
throws org.globus.wsrf.ResourceException
getKeyAsFile().
This stores the state of the implementation JavaBean. If some resource
properties have been implemented with something else (for instance
getters and setters from another object) they will not be
persisted with the current state. This is not a problem if their state
is immutable after initial creation, as their values will be set by
initialize,
ReflectionResource.initialize()} which is called by
this method.
(TODO: persist based on each RP?)
resource - the resource to store the state of.
org.globus.wsrf.ResourceException - if the resource could not be storedgetKeyAsFile(),
PersistentResource
void remove(ReflectionResource resource)
throws org.globus.wsrf.ResourceException
resource - the resource to remove from storage.
org.globus.wsrf.ResourceException - if the resource could not be removed.RemoveCallback
void removeAll()
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||