org.datamanager.persistence
Class DataAccessObjectFactory

java.lang.Object
  |
  +--org.datamanager.persistence.DataAccessObjectFactory

public class DataAccessObjectFactory
extends Object

A Factory for creating DataAccessObjects.

Author:
xi rao & Jason Lynn Baumgartner

Field Summary
static int JISP_INDEX_PERSISTENCE
           
static int SERIALIZABLE_PERSISTENCE
           
static int XML_PERSISTENCE
           
 
Method Summary
 DataAccessObject getDataAccessObject(int persistenceType)
          return XMLDataAccessObject for client to use for save and restore the object follow xml format
static DataAccessObjectFactory newInstance()
          return an instance of DataAccessObjectFactory follow the singleton pattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_PERSISTENCE

public static final int XML_PERSISTENCE
See Also:
Constant Field Values

SERIALIZABLE_PERSISTENCE

public static final int SERIALIZABLE_PERSISTENCE
See Also:
Constant Field Values

JISP_INDEX_PERSISTENCE

public static final int JISP_INDEX_PERSISTENCE
See Also:
Constant Field Values
Method Detail

newInstance

public static DataAccessObjectFactory newInstance()
return an instance of DataAccessObjectFactory follow the singleton pattern

Returns:
DataAccessObjectFactory instance of DataAccessObjectFactory

getDataAccessObject

public DataAccessObject getDataAccessObject(int persistenceType)
return XMLDataAccessObject for client to use for save and restore the object follow xml format

Parameters:
persistenceType - int type of the DataAccessObject
Returns:
XMLDataAccessObject an instace of XMLDataAccessObject for save/retore the object as xml format


See the Helium Website