| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.openjpa.xmlstore.XMLFileHandler
public class XMLFileHandler
Stores ObjectData objects by serializing a collection
 of them into and out of an XML file.
| Constructor Summary | |
|---|---|
| XMLFileHandler(XMLConfiguration conf)Constructor; supply configuration. | |
| Method Summary | |
|---|---|
|  java.util.Collection | load(ClassMetaData meta)Loads all instances of metainto a list of objects. | 
|  void | store(ClassMetaData meta,
      java.util.Collection datas)Stores all instances in datasinto the appropriate file,
 as dictated bymeta. | 
|  void | writeDataValue(java.io.Writer out,
               int type,
               java.lang.Object val)Write out the data value. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public XMLFileHandler(XMLConfiguration conf)
| Method Detail | 
|---|
public java.util.Collection load(ClassMetaData meta)
meta into a list of objects.
 The given meta must represent a least-derived
 persistence-capable type.
public void store(ClassMetaData meta,
                  java.util.Collection datas)
datas into the appropriate file,
 as dictated by meta.
meta - the least-derived type of the instances being storeddatas - a collection of ObjectData instances, each
 of which represents an object of type meta
public void writeDataValue(java.io.Writer out,
                           int type,
                           java.lang.Object val)
                    throws java.io.IOException
java.io.IOException| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||