Package org.apache.openjpa.jdbc.schema
Interface SchemaSerializer
- All Superinterfaces:
MetaDataSerializer
- All Known Implementing Classes:
XMLSchemaSerializer
Interface for schema serializers. Serializers work at the fine-grained
fine-grained table level to allow you to split schemas among multiple files.
- Author:
- Abe White
-
Field Summary
Fields inherited from interface org.apache.openjpa.lib.meta.MetaDataSerializer
APPEND, COMPACT, PRETTY, VERBOSE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Add the given table to the set of tables that will be serialized.void
clear()
Clear the set of objects to be serialized.Table[]
Return the set of tables that will be serialized.boolean
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
removeTable
(Table table) Remove the given table from the set to be serialized.Methods inherited from interface org.apache.openjpa.lib.meta.MetaDataSerializer
serialize, serialize, serialize, serialize
-
Method Details
-
getTables
Table[] getTables()Return the set of tables that will be serialized. -
addTable
Add the given table to the set of tables that will be serialized. -
removeTable
Remove the given table from the set to be serialized.- Returns:
- true if table was removed, false if not in set
-
addAll
Add the given schema's objects to the set of objects that will be serialized. -
addAll
Add all the objects in the given group to the set of objects that will be serialized. -
removeAll
Remove the given schema's objects from the set to be serialized.- Returns:
- true if any objects in schema removed, false if none in set
-
removeAll
Remove all schemas in the given group from the set to be serialized.- Returns:
- true if any objects in the group were removed, false if none in set
-
clear
void clear()Clear the set of objects to be serialized.
-