|
Mobile Tools for Java Release 1.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPersistable
Implementors of this interface must be capable of saving and restoring their own state.
Clients should always implement this interface for elements in which their state should always be persisted by MTJ persistence solution.
Field Summary | |
---|---|
static String |
CLASS_PERSISTABLE_ATTRIBUTE
The persistable attribute for storing the class identifier. |
static String |
ID_PERSISTABLE_ATTRIBUTE
The persistable attribute for storing the id of persistable elements. |
static String |
KEY_PERSISTABLE_ATTRIBUTE
The persistable attribute for storing the key of persistable elements. |
static String |
PROPERTY_PERSISTABLE_ELEMENT
The persistable element name for storing Properties elements. |
static String |
REFID_PERSISTABLE_ATTRIBUTE
The persistable attribute for storing a reference to another persistable element. |
static String |
VALUE_PERSISTABLE_ATTRIBUTE
The persistable attribute for storing the value of persistable elements. |
Method Summary | |
---|---|
void |
loadUsing(IPersistenceProvider persistenceProvider)
Load the state of this object using the specified persistence state information. |
void |
storeUsing(IPersistenceProvider persistenceProvider)
Save the state of this object using the specified persistence state information. |
Field Detail |
---|
static final String CLASS_PERSISTABLE_ATTRIBUTE
static final String ID_PERSISTABLE_ATTRIBUTE
static final String KEY_PERSISTABLE_ATTRIBUTE
static final String PROPERTY_PERSISTABLE_ELEMENT
Properties
elements.
static final String VALUE_PERSISTABLE_ATTRIBUTE
static final String REFID_PERSISTABLE_ATTRIBUTE
Method Detail |
---|
void loadUsing(IPersistenceProvider persistenceProvider) throws PersistenceException
persistenceProvider
- the IPersistenceProvider
implementation that provides the facilities for storing and
retrieving persistable objects.
PersistenceException
- if any error occur while loading the
persisted information.void storeUsing(IPersistenceProvider persistenceProvider) throws PersistenceException
persistenceProvider
- the IPersistenceProvider
implementation that provides the facilities for storing and
retrieving persistable objects.
PersistenceException
- if any error occur while saving the
persistable information.
|
Mobile Tools for Java Release 1.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |