|
||||||||||
| PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
AttributePersistenceManager interface. Implementations of this interface are created by an MBean service that acts as factory and a manager for the active AttributePersistenceManager implementation The DelegatingPersistenceManager will contact the MBean to get an AttributePersistenceManager implementation. In this way, the Persistence Manager can be controlled externally as an MBean.
| Method Summary | |
void |
create(java.lang.String version,
org.w3c.dom.Element config)
Initializes the AttributePersistenceManager using the supplied configuration element CONFIG_ELEMENT whose content will be probably different for each particular implementation. |
void |
destroy()
Releases resources and destroys the AttributePersistenceManager. |
boolean |
exists(java.lang.String id)
Checks if a persistened AttributeList for this particular id exists |
boolean |
getState()
Returns true if the AttributePersistenceManager is "in-service" state, i.e. |
java.lang.String[] |
listAll()
Returns a String array with all the saved ids under the configured version tag. |
AttributeList (src) |
load(java.lang.String id)
Uses the specified id to retrieve a previously persisted AttributeList. |
void |
remove(java.lang.String id)
Removes the persisted AttributeList, if exists |
void |
removeAll()
Removes all the persisted data stored under the configured version tag. |
void |
store(java.lang.String id,
AttributeList (src) attrs)
Persists an AttributeList (name/value pair list), under a specified id. |
| Method Detail |
public void create(java.lang.String version,
org.w3c.dom.Element config)
throws java.lang.Exception
version - a tag to identify the versionconfig - XML Element to load arbitrary config
java.lang.Exception - when any error occurs during createpublic boolean getState()
public void destroy()
public boolean exists(java.lang.String id)
throws java.lang.Exception
id - the key of the image
java.lang.Exception - on any error
public AttributeList (src) load(java.lang.String id)
throws java.lang.Exception
id - the key for retrieving the data
java.lang.Exception - when an error occurs
public void store(java.lang.String id,
AttributeList (src) attrs)
throws java.lang.Exception
id - the key for retrieving the data later on, not nullattrs - the data to be persisted, not null
java.lang.Exception - when data cannot be persisted
public void remove(java.lang.String id)
throws java.lang.Exception
id - the key of the image
java.lang.Exception - when any error occurs
public void removeAll()
throws java.lang.Exception
java.lang.Exception - when any error occurs
public java.lang.String[] listAll()
throws java.lang.Exception
java.lang.Exception - when any error occurs
|
||||||||||
| PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||