public class XMLSchemaSerializer extends XMLMetaDataSerializer implements SchemaSerializer
Schemas 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, startElementclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitserialize, serialize, serialize, serializepublic XMLSchemaSerializer(JDBCConfiguration conf)
public Table[] getTables()
SchemaSerializergetTables in interface SchemaSerializerpublic void addTable(Table table)
SchemaSerializeraddTable in interface SchemaSerializerpublic boolean removeTable(Table table)
SchemaSerializerremoveTable in interface SchemaSerializerpublic Sequence[] getSequences()
public void addSequence(Sequence seq)
public boolean removeSequence(Sequence seq)
public void addAll(Schema schema)
SchemaSerializeraddAll in interface SchemaSerializerpublic void addAll(SchemaGroup group)
SchemaSerializeraddAll in interface SchemaSerializerpublic boolean removeAll(Schema schema)
SchemaSerializerremoveAll in interface SchemaSerializerpublic boolean removeAll(SchemaGroup group)
SchemaSerializerremoveAll in interface SchemaSerializerpublic void clear()
SchemaSerializerclear in interface SchemaSerializerprotected Collection getObjects()
XMLMetaDataSerializergetObjects in class XMLMetaDataSerializerprotected void serialize(Collection objs) throws SAXException
XMLMetaDataSerializerserialize in class XMLMetaDataSerializerSAXExceptionCopyright © 2006–2017 Apache Software Foundation. All rights reserved.