org.nakedobjects.persistence.file
Class XmlDataManager
java.lang.Object
org.nakedobjects.persistence.file.DataManager
org.nakedobjects.persistence.file.XmlDataManager
- public class XmlDataManager
- extends DataManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_ENCODING
public static final java.lang.String DEFAULT_ENCODING
- See Also:
- Constant Field Values
XmlDataManager
public XmlDataManager()
XmlDataManager
public XmlDataManager(java.lang.String directory)
clearTestDirectory
protected static void clearTestDirectory()
deleteFile
protected void deleteFile(long id)
- Specified by:
deleteFile
in class DataManager
nextId
protected long nextId()
throws ObjectStoreException
- Specified by:
nextId
in class DataManager
- Throws:
ObjectStoreException
readDataFile
protected Data readDataFile(long id)
throws ObjectNotFoundException,
ObjectStoreException
- Specified by:
readDataFile
in class DataManager
- Throws:
ObjectNotFoundException
ObjectStoreException
readInstanceFile
protected java.util.Vector readInstanceFile(java.lang.String type)
throws ObjectStoreException
- Specified by:
readInstanceFile
in class DataManager
- Throws:
ObjectStoreException
readSerialNumberFile
protected long readSerialNumberFile(java.lang.String name)
- Specified by:
readSerialNumberFile
in class DataManager
writeDataFile
protected void writeDataFile(long id,
Data data)
throws ObjectStoreException
- Specified by:
writeDataFile
in class DataManager
- Throws:
ObjectStoreException
getValueWithSpecialsEscaped
public static java.lang.String getValueWithSpecialsEscaped(java.lang.String s)
writeInstanceFile
protected void writeInstanceFile(java.lang.String name,
java.util.Vector instances)
throws ObjectStoreException
- Specified by:
writeInstanceFile
in class DataManager
- Throws:
ObjectStoreException
writeSerialNumberFile
protected void writeSerialNumberFile(java.lang.String name,
long serialNumber)
- Specified by:
writeSerialNumberFile
in class DataManager