|
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 IPersistenceProvider
Instances of this interface provide facilities for storing and retrieving persistable objects.
EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. Please do not use this API without consulting with the MTJ team.
| Method Summary | |
|---|---|
boolean |
loadBoolean(String name)
Load the named boolean value. |
int |
loadInteger(String name)
Load the named integer value. |
IPersistable |
loadPersistable(String name)
Load the named persistable object value. |
Properties |
loadProperties(String name)
Load the named properties object value. |
Object |
loadReference(String name)
Load the referenced object value or null if the object
cannot be resolved. |
String |
loadString(String name)
Load the named string value. |
void |
storeBoolean(String name,
boolean debugServer)
Store the boolean value using the specified name. |
void |
storeInteger(String name,
int value)
Store the integer value using the specified name. |
void |
storePersistable(String name,
IPersistable value)
Store the persistable object value using the specified name. |
void |
storeProperties(String name,
Properties deviceProperties)
Store the properties object value using the specified name. |
void |
storeReference(String name,
Object referenceObject)
Store a reference to the specified object using the specified name. |
void |
storeString(String name,
String string)
Store the string value using the specified name. |
| Method Detail |
|---|
boolean loadBoolean(String name)
throws PersistenceException
name -
PersistenceException
int loadInteger(String name)
throws PersistenceException
name -
PersistenceException
IPersistable loadPersistable(String name)
throws PersistenceException
name -
PersistenceException
Properties loadProperties(String name)
throws PersistenceException
name -
PersistenceException
Object loadReference(String name)
throws PersistenceException
null if the object
cannot be resolved.
name -
PersistenceException
String loadString(String name)
throws PersistenceException
name -
PersistenceException
void storeBoolean(String name,
boolean debugServer)
throws PersistenceException
name - debugServer -
PersistenceException
void storeInteger(String name,
int value)
throws PersistenceException
name - value -
PersistenceException
void storePersistable(String name,
IPersistable value)
throws PersistenceException
name - value -
PersistenceException
void storeProperties(String name,
Properties deviceProperties)
throws PersistenceException
name - deviceProperties -
PersistenceException
void storeReference(String name,
Object referenceObject)
throws PersistenceException
name - referenceObject -
PersistenceException
void storeString(String name,
String string)
throws PersistenceException
name - string -
PersistenceException
|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||