org.nakedobjects.persistence.file
Class DataManager
java.lang.Object
org.nakedobjects.persistence.file.DataManager
- Direct Known Subclasses:
- InMemoryDataManager, XmlDataManager
- public abstract class DataManager
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataManager
public DataManager()
create
public final void create(Data data)
throws ObjectStoreException
- Throws:
ObjectStoreException
createOid
public final SimpleOid createOid()
throws ObjectStoreException
- Throws:
ObjectStoreException
read
public final Data read(java.lang.Object oid)
throws ObjectNotFoundException,
ObjectStoreException
- Throws:
ObjectNotFoundException
ObjectStoreException
readCollection
public final CollectionData readCollection(java.lang.Object oid)
throws ObjectNotFoundException,
ObjectStoreException
- Throws:
ObjectNotFoundException
ObjectStoreException
readInstances
public final java.util.Vector readInstances(NakedClass type)
throws ObjectStoreException
- Throws:
ObjectStoreException
readObject
public final ObjectData readObject(java.lang.Object oid)
throws ObjectNotFoundException,
ObjectStoreException
- Throws:
ObjectNotFoundException
ObjectStoreException
remove
public final void remove(java.lang.Object oid)
throws ObjectNotFoundException,
ObjectStoreException
- Throws:
ObjectNotFoundException
ObjectStoreException
write
public final void write(Data data)
throws ObjectStoreException
- Throws:
ObjectStoreException
readSerialNumber
public long readSerialNumber(java.lang.String sequence)
writeSerialNumber
public void writeSerialNumber(java.lang.String sequence,
long serialNumber)
deleteFile
protected abstract void deleteFile(long id)
throws ObjectStoreException
- Throws:
ObjectStoreException
nextId
protected abstract long nextId()
throws ObjectStoreException
- Throws:
ObjectStoreException
readDataFile
protected abstract Data readDataFile(long id)
throws ObjectNotFoundException,
ObjectStoreException
- Throws:
ObjectNotFoundException
ObjectStoreException
readInstanceFile
protected abstract java.util.Vector readInstanceFile(java.lang.String type)
throws ObjectStoreException
- Throws:
ObjectStoreException
readSerialNumberFile
protected abstract long readSerialNumberFile(java.lang.String name)
writeDataFile
protected abstract void writeDataFile(long id,
Data data)
throws ObjectStoreException
- Throws:
ObjectStoreException
writeInstanceFile
protected abstract void writeInstanceFile(java.lang.String name,
java.util.Vector instances)
throws ObjectStoreException
- Throws:
ObjectStoreException
writeSerialNumberFile
protected abstract void writeSerialNumberFile(java.lang.String name,
long serialNumber)