|
||||||||||
| PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.system.pm.XMLAttributePersistenceManager
FileAttributePersistenceManager
| Field Summary | |
static java.lang.String |
AL_ATTRIBUTE_ELEMENT
|
static java.lang.String |
AL_DATE_ATTRIBUTE
|
static java.lang.String |
AL_FALSE_VALUE
|
static java.lang.String |
AL_ID_ATTRIBUTE
|
static java.lang.String |
AL_NAME_ATTRIBUTE
|
static java.lang.String |
AL_NULL_ATTRIBUTE
|
static java.lang.String |
AL_ROOT_ELEMENT
The XML attribute-list elements and attributes |
static java.lang.String |
AL_SERIALIZED_ATTRIBUTE
|
static java.lang.String |
AL_TRUE_VALUE
|
static java.lang.String |
AL_TYPE_ATTRIBUTE
|
static java.lang.String |
DATA_DIR_ELEMENT
The XML configuration element |
static java.lang.String |
DEFAULT_BASE_DIR
Default base directory if one not specified |
| Constructor Summary | |
XMLAttributePersistenceManager()
Constructs a FileAttributePersistenceManager. |
|
| 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)
Persists an AttributeList (name/value pair list), under a specified id. |
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)
Uses the specified id to retrieve a previously persisted AttributeList. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String DATA_DIR_ELEMENT
public static final java.lang.String DEFAULT_BASE_DIR
public static final java.lang.String AL_ROOT_ELEMENT
public static final java.lang.String AL_ID_ATTRIBUTE
public static final java.lang.String AL_DATE_ATTRIBUTE
public static final java.lang.String AL_ATTRIBUTE_ELEMENT
public static final java.lang.String AL_NAME_ATTRIBUTE
public static final java.lang.String AL_TYPE_ATTRIBUTE
public static final java.lang.String AL_NULL_ATTRIBUTE
public static final java.lang.String AL_SERIALIZED_ATTRIBUTE
public static final java.lang.String AL_TRUE_VALUE
public static final java.lang.String AL_FALSE_VALUE
| Constructor Detail |
public XMLAttributePersistenceManager()
| Method Detail |
public void create(java.lang.String version,
org.w3c.dom.Element config)
throws java.lang.Exception
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()
getState in interface AttributePersistenceManager (src) public void destroy()
destroy in interface AttributePersistenceManager (src)
public void store(java.lang.String id,
AttributeList (src) attrs)
throws java.lang.Exception
store in interface AttributePersistenceManager (src) id - the key for retrieving the dataattrs - the data to be persisted, not null
java.lang.Exception - when an error occurs
public AttributeList (src) load(java.lang.String id)
throws java.lang.Exception
load in interface AttributePersistenceManager (src) id - the key for retrieving the data later on, not null
java.lang.Exception - when data cannot be persisted
public boolean exists(java.lang.String id)
throws java.lang.Exception
exists in interface AttributePersistenceManager (src) id - the key of the image
java.lang.Exception - on any error
public void remove(java.lang.String id)
throws java.lang.Exception
remove in interface AttributePersistenceManager (src) id - the key of the image
java.lang.Exception - when any error occurs
public void removeAll()
throws java.lang.Exception
removeAll in interface AttributePersistenceManager (src) java.lang.Exception - when any error occurs
public java.lang.String[] listAll()
throws java.lang.Exception
listAll in interface AttributePersistenceManager (src) java.lang.Exception - when any error occurs
|
||||||||||
| PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||