Package org.apache.openjpa.xmlstore
Class XMLStore
java.lang.Object
org.apache.openjpa.xmlstore.XMLStore
Represents 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Begin a datastore transaction.void
endTransaction
(Collection<ObjectData> updates, Collection<ObjectData> deletes) End the datastore transaction.getData
(ClassMetaData meta) Return all datas for the base class of the given type.getData
(ClassMetaData meta, Object oid) Return the data for the given oid, or null if it does not exist.
-
Constructor Details
-
XMLStore
Constructor; supply configuration.
-
-
Method Details
-
getData
Return the data for the given oid, or null if it does not exist. -
getData
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
End the datastore transaction.- Parameters:
updates
-ObjectData
instances to insert or updatedeletes
-ObjectData
instances to delete
-