|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.system.pm.NullAttributePersistenceManager
NullAttributePersistenceManager.
Constructor Summary | |
NullAttributePersistenceManager()
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NullAttributePersistenceManager()
Method Detail |
public void create(java.lang.String version, org.w3c.dom.Element config) throws java.lang.Exception
AttributePersistenceManager (src)
create
in interface AttributePersistenceManager (src)
version
- a tag to identify the versionconfig
- XML Element to load arbitrary config
java.lang.Exception
- when any error occurs during createpublic boolean getState()
AttributePersistenceManager (src)
getState
in interface AttributePersistenceManager (src)
public void destroy()
AttributePersistenceManager (src)
destroy
in interface AttributePersistenceManager (src)
public boolean exists(java.lang.String id) throws java.lang.Exception
AttributePersistenceManager (src)
exists
in interface AttributePersistenceManager (src)
id
- the key of the image
java.lang.Exception
- on any errorpublic AttributeList (src) load(java.lang.String id) throws java.lang.Exception
AttributePersistenceManager (src)
load
in interface AttributePersistenceManager (src)
id
- the key for retrieving the data
java.lang.Exception
- when an error occurspublic void store(java.lang.String id, AttributeList (src) attrs) throws java.lang.Exception
AttributePersistenceManager (src)
store
in interface AttributePersistenceManager (src)
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 persistedpublic void remove(java.lang.String id) throws java.lang.Exception
AttributePersistenceManager (src)
remove
in interface AttributePersistenceManager (src)
id
- the key of the image
java.lang.Exception
- when any error occurspublic void removeAll() throws java.lang.Exception
AttributePersistenceManager (src)
removeAll
in interface AttributePersistenceManager (src)
java.lang.Exception
- when any error occurspublic java.lang.String[] listAll() throws java.lang.Exception
AttributePersistenceManager (src)
listAll
in interface AttributePersistenceManager (src)
java.lang.Exception
- when any error occurs
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |