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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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