Package org.apache.openjpa.jdbc.schema
Interface SchemaParser
-
- All Superinterfaces:
MetaDataParser
- All Known Implementing Classes:
XMLSchemaParser
public interface SchemaParser extends MetaDataParser
Interface class for parers that read schema information. Parsers will place all parsed schemas into the currentSchemaGroup
, set via thesetSchemaGroup(org.apache.openjpa.jdbc.schema.SchemaGroup)
method. This allows parsing of multiple files into a single schema group.- Author:
- Abe White
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
getDelayConstraintResolve()
Delay resolution of foreign key constraints untilresolveConstraints()
is called.SchemaGroup
getSchemaGroup()
Return the current schema group.void
resolveConstraints()
If this parser is in delayed resolve mode, resolve all constraints.void
setDelayConstraintResolve(boolean delay)
Delay resolution of foreign key constraints untilresolveConstraints()
is called.void
setSchemaGroup(SchemaGroup group)
Set the current schema group; this clears all state from the last group.-
Methods inherited from interface org.apache.openjpa.lib.meta.MetaDataParser
clear, getResults, parse, parse, parse, parse, parse, parse, setClassLoader
-
-
-
-
Method Detail
-
getDelayConstraintResolve
boolean getDelayConstraintResolve()
Delay resolution of foreign key constraints untilresolveConstraints()
is called. This allows you to parse multiple resources where a foreign key in one resource might refer to a table in another.
-
setDelayConstraintResolve
void setDelayConstraintResolve(boolean delay)
Delay resolution of foreign key constraints untilresolveConstraints()
is called. This allows you to parse multiple resources where a foreign key in one resource might refer to a table in another.
-
getSchemaGroup
SchemaGroup getSchemaGroup()
Return the current schema group.
-
setSchemaGroup
void setSchemaGroup(SchemaGroup group)
Set the current schema group; this clears all state from the last group.
-
resolveConstraints
void resolveConstraints()
If this parser is in delayed resolve mode, resolve all constraints.
-
-