Package org.apache.openjpa.xmlstore
Class XMLStore
- java.lang.Object
-
- org.apache.openjpa.xmlstore.XMLStore
-
public class XMLStore extends java.lang.ObjectRepresents a store of object data encoded in XML. This store only allows one datastore transaction to proceed at a time. File I/O errors can put this store into an invalid state.
-
-
Constructor Summary
Constructors Constructor Description XMLStore(XMLConfiguration conf)Constructor; supply configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginTransaction()Begin a datastore transaction.voidendTransaction(java.util.Collection<ObjectData> updates, java.util.Collection<ObjectData> deletes)End the datastore transaction.ObjectData[]getData(ClassMetaData meta)Return all datas for the base class of the given type.ObjectDatagetData(ClassMetaData meta, java.lang.Object oid)Return the data for the given oid, or null if it does not exist.
-
-
-
Constructor Detail
-
XMLStore
public XMLStore(XMLConfiguration conf)
Constructor; supply configuration.
-
-
Method Detail
-
getData
public ObjectData getData(ClassMetaData meta, java.lang.Object oid)
Return the data for the given oid, or null if it does not exist.
-
getData
public ObjectData[] getData(ClassMetaData meta)
Return all datas for the base class of the given type.
-
beginTransaction
public void beginTransaction()
Begin a datastore transaction. Obtains an exclusive write lock on the store.
-
endTransaction
public void endTransaction(java.util.Collection<ObjectData> updates, java.util.Collection<ObjectData> deletes)
End the datastore transaction.- Parameters:
updates-ObjectDatainstances to insert or updatedeletes-ObjectDatainstances to delete
-
-