Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.persistence
Interface IPersistable

All Known Subinterfaces:
IAPI, IBundleReferencePersistable, IDevice, IDeviceClasspath, IDeviceRegistry, ILibrary, IMIDPAPI, IMIDPDevice, IMIDPLibrary, IPreverifier, ISymbol, ISymbolSet, ISymbolSetRegistry

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.

Since:
1.0

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

CLASS_PERSISTABLE_ATTRIBUTE

static final 
String CLASS_PERSISTABLE_ATTRIBUTE
The persistable attribute for storing the class identifier.

See Also:
Constant Field Values

ID_PERSISTABLE_ATTRIBUTE

static final 
String ID_PERSISTABLE_ATTRIBUTE
The persistable attribute for storing the id of persistable elements.

See Also:
Constant Field Values

KEY_PERSISTABLE_ATTRIBUTE

static final 
String KEY_PERSISTABLE_ATTRIBUTE
The persistable attribute for storing the key of persistable elements.

See Also:
Constant Field Values

PROPERTY_PERSISTABLE_ELEMENT

static final 
String PROPERTY_PERSISTABLE_ELEMENT
The persistable element name for storing Properties elements.

See Also:
Constant Field Values

VALUE_PERSISTABLE_ATTRIBUTE

static final 
String VALUE_PERSISTABLE_ATTRIBUTE
The persistable attribute for storing the value of persistable elements.

See Also:
Constant Field Values

REFID_PERSISTABLE_ATTRIBUTE

static final 
String REFID_PERSISTABLE_ATTRIBUTE
The persistable attribute for storing a reference to another persistable element.

See Also:
Constant Field Values
Method Detail

loadUsing

void loadUsing(
IPersistenceProvider persistenceProvider)
               throws 
PersistenceException
Load the state of this object using the specified persistence state information.

Parameters:
persistenceProvider - the IPersistenceProvider implementation that provides the facilities for storing and retrieving persistable objects.
Throws:
PersistenceException - if any error occur while loading the persisted information.

storeUsing

void storeUsing(
IPersistenceProvider persistenceProvider)
                throws 
PersistenceException
Save the state of this object using the specified persistence state information.

Parameters:
persistenceProvider - the IPersistenceProvider implementation that provides the facilities for storing and retrieving persistable objects.
Throws:
PersistenceException - if any error occur while saving the persistable information.

Mobile Tools for Java
Release 1.0


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire