public class XMLSchemaSerializer extends XMLMetaDataSerializer implements SchemaSerializer
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.APPEND, COMPACT, PRETTY, VERBOSE
Constructor and Description |
---|
XMLSchemaSerializer(JDBCConfiguration conf)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addAttribute, addComments, addComments, addText, currentBackupFile, endElement, getAttributes, getFileMap, getLog, getSourceFile, isVerbose, prepareWrite, reset, serialize, serialize, serialize, serialize, serialize, serialize, setLog, startElement
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
serialize, serialize, serialize, serialize
public XMLSchemaSerializer(JDBCConfiguration conf)
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
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.