|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.plugins.xml.objectstore.internal.data.xml.XmlDataManager
public class XmlDataManager
| Constructor Summary | |
|---|---|
XmlDataManager(XmlFile xmlFile)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDebugData()
|
ObjectDataVector |
getInstances(ObjectData pattern)
Return data for all instances that match the pattern. |
void |
insertObject(ObjectData data)
Save the data for an object and adds the reference to a list of instances |
boolean |
isFixturesInstalled()
|
Data |
loadData(SerialOid oid)
|
protected boolean |
matchesPattern(ObjectData patternData,
ObjectData candidateData)
A helper that determines if two sets of data match. |
protected long |
nextId()
Read in the next unique number for the object identifier. |
int |
numberOfInstances(ObjectData pattern)
Return the number of instances that match the specified data |
void |
remove(SerialOid oid)
|
void |
save(Data data)
Save the data for latter retrieval. |
void |
shutdown()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlDataManager(XmlFile xmlFile)
| Method Detail |
|---|
public void shutdown()
shutdown in interface DataManagerpublic boolean isFixturesInstalled()
isFixturesInstalled in interface DataManagerpublic Data loadData(SerialOid oid)
loadData in interface DataManagerpublic ObjectDataVector getInstances(ObjectData pattern)
DataManager
getInstances in interface DataManagerpublic int numberOfInstances(ObjectData pattern)
DataManager
numberOfInstances in interface DataManager
protected boolean matchesPattern(ObjectData patternData,
ObjectData candidateData)
protected long nextId()
throws PersistorException
PersistorExceptionpublic final void insertObject(ObjectData data)
insertObject in interface DataManager
public final void remove(SerialOid oid)
throws ObjectNotFoundException,
ObjectPersistenceException
remove in interface DataManagerObjectNotFoundException
ObjectPersistenceExceptionpublic final void save(Data data)
save in interface DataManagerpublic java.lang.String getDebugData()
getDebugData in interface DataManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||