Package org.apache.openjpa.xmlstore
Class XMLFileHandler
- java.lang.Object
 - 
- org.apache.openjpa.xmlstore.XMLFileHandler
 
 
- 
public class XMLFileHandler extends java.lang.ObjectStoresObjectDataobjects by serializing a collection of them into and out of an XML file. 
- 
- 
Constructor Summary
Constructors Constructor Description XMLFileHandler(XMLConfiguration conf)Constructor; supply configuration. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collectionload(ClassMetaData meta)Loads all instances ofmetainto a list of objects.voidstore(ClassMetaData meta, java.util.Collection datas)Stores all instances indatasinto the appropriate file, as dictated bymeta.voidwriteDataValue(java.io.Writer out, int type, java.lang.Object val)Write out the data value. 
 - 
 
- 
- 
Constructor Detail
- 
XMLFileHandler
public XMLFileHandler(XMLConfiguration conf)
Constructor; supply configuration. 
 - 
 
- 
Method Detail
- 
load
public java.util.Collection load(ClassMetaData meta)
Loads all instances ofmetainto a list of objects. The givenmetamust represent a least-derived persistence-capable type. 
- 
store
public void store(ClassMetaData meta, java.util.Collection datas)
Stores all instances indatasinto the appropriate file, as dictated bymeta.- Parameters:
 meta- the least-derived type of the instances being storeddatas- a collection ofObjectDatainstances, each of which represents an object of typemeta
 
- 
writeDataValue
public void writeDataValue(java.io.Writer out, int type, java.lang.Object val) throws java.io.IOExceptionWrite out the data value. This method writes nulls as "null", serializes (using Java serialization and base16 encoding) out non- primitives/boxed primitives and non-persistent types, and writes primitives/boxed primitives and oids using their toString.- Throws:
 java.io.IOException
 
 - 
 
 -