|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.lib.meta.XMLMetaDataSerializer org.apache.openjpa.jdbc.schema.XMLSchemaSerializer
public class XMLSchemaSerializer
Serializes Schema
s to XML matching the document
type definition defined by the XMLSchemaParser
. The serializer
actually works at the fine-grained table level to allow you to split
schemas among multiple files.
Serializers are not thread safe.
Field Summary |
---|
Fields inherited from interface org.apache.openjpa.lib.meta.MetaDataSerializer |
---|
APPEND, COMPACT, PRETTY, VERBOSE |
Constructor Summary | |
---|---|
XMLSchemaSerializer(JDBCConfiguration conf)
Constructor. |
Method Summary | |
---|---|
void |
addAll(Schema schema)
Add the given schema's objects to the set of objects that will be serialized. |
void |
addAll(SchemaGroup group)
Add all the objects in the given group to the set of objects that will be serialized. |
void |
addSequence(Sequence seq)
|
void |
addTable(Table table)
Add the given table to the set of tables that will be serialized. |
void |
clear()
Clear the set of objects to be serialized. |
protected Collection |
getObjects()
Return the current set of objects for serialization. |
Sequence[] |
getSequences()
|
Table[] |
getTables()
Return the set of tables that will be serialized. |
boolean |
removeAll(Schema schema)
Remove the given schema's objects from the set to be serialized. |
boolean |
removeAll(SchemaGroup group)
Remove all schemas in the given group from the set to be serialized. |
boolean |
removeSequence(Sequence seq)
|
boolean |
removeTable(Table table)
Remove the given table from the set to be serialized. |
protected void |
serialize(Collection objs)
Serialize the given set of objects. |
Methods inherited from class org.apache.openjpa.lib.meta.XMLMetaDataSerializer |
---|
addAttribute, addComments, addComments, addText, currentBackupFile, endElement, getAttributes, getFileMap, getLog, getSourceFile, isVerbose, prepareWrite, reset, serialize, serialize, serialize, serialize, serialize, serialize, setLog, startElement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.openjpa.lib.meta.MetaDataSerializer |
---|
serialize, serialize, serialize, serialize |
Constructor Detail |
---|
public XMLSchemaSerializer(JDBCConfiguration conf)
Method Detail |
---|
public Table[] getTables()
SchemaSerializer
getTables
in interface SchemaSerializer
public void addTable(Table table)
SchemaSerializer
addTable
in interface SchemaSerializer
public boolean removeTable(Table table)
SchemaSerializer
removeTable
in interface SchemaSerializer
public Sequence[] getSequences()
public void addSequence(Sequence seq)
public boolean removeSequence(Sequence seq)
public void addAll(Schema schema)
SchemaSerializer
addAll
in interface SchemaSerializer
public void addAll(SchemaGroup group)
SchemaSerializer
addAll
in interface SchemaSerializer
public boolean removeAll(Schema schema)
SchemaSerializer
removeAll
in interface SchemaSerializer
public boolean removeAll(SchemaGroup group)
SchemaSerializer
removeAll
in interface SchemaSerializer
public void clear()
SchemaSerializer
clear
in interface SchemaSerializer
protected Collection getObjects()
XMLMetaDataSerializer
getObjects
in class XMLMetaDataSerializer
protected void serialize(Collection objs) throws SAXException
XMLMetaDataSerializer
serialize
in class XMLMetaDataSerializer
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |