org.datamanager.kernel
Interface Persistable


public interface Persistable

Persistable interface that datamanager persistable objects implement. Provides access to the persist() method and static fields necessary for persistence.

Version:
$Revision: 1.9 $

Field Summary
static DataAccessObjectFactory PERSISTENCE_FACTORY
          Persistence layer factory
static String PERSISTENCE_FOLDER
          Folder in which persisted objects are placed.
static DataAccessObject PERSISTER
          Persistence layer persister object.
 
Method Summary
 void persist(File location)
          Persists this persistable object to the location specified by File.
 void persist(OutputStream outputStream)
          Persists this persistable object to the given OutputStream
 

Field Detail

PERSISTENCE_FOLDER

public static final String PERSISTENCE_FOLDER
Folder in which persisted objects are placed.

See Also:
Constant Field Values

PERSISTENCE_FACTORY

public static final DataAccessObjectFactory PERSISTENCE_FACTORY
Persistence layer factory


PERSISTER

public static final DataAccessObject PERSISTER
Persistence layer persister object. Currently using XML-styled persistence.

Method Detail

persist

public void persist(File location)
Persists this persistable object to the location specified by File.


persist

public void persist(OutputStream outputStream)
Persists this persistable object to the given OutputStream



See the Helium Website