Package org.apache.openjpa.jdbc.schema
Class FileSchemaFactory
java.lang.Object
org.apache.openjpa.jdbc.schema.FileSchemaFactory
- All Implemented Interfaces:
SchemaFactory
,Configurable
Factory that uses an XML schema file to construct the system schema.
- Author:
- Abe White
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Invoked upon completion of bean property configuration for this object.getFile()
Return the XML resource defining this schema.Return the schema group for the current object model and database.void
Invoked prior to setting bean properties.void
Set the XML resource defining this schema.void
setFileName
(String name) Deprecated.void
Invoked before bean property configuration is begun on this object.void
storeSchema
(SchemaGroup schema) Record the schema group after changes may have been made.
-
Constructor Details
-
FileSchemaFactory
public FileSchemaFactory()
-
-
Method Details
-
getFile
Return the XML resource defining this schema. Defaults topackage.schema
. -
setFile
Set the XML resource defining this schema. Defaults topackage.schema
. -
setFileName
Deprecated.UsesetFile(java.lang.String)
. Retained for backwards-compatible auto-configuration. -
setConfiguration
Description copied from interface:Configurable
Invoked prior to setting bean properties.- Specified by:
setConfiguration
in interfaceConfigurable
-
startConfiguration
public void startConfiguration()Description copied from interface:Configurable
Invoked before bean property configuration is begun on this object.- Specified by:
startConfiguration
in interfaceConfigurable
-
endConfiguration
public void endConfiguration()Description copied from interface:Configurable
Invoked upon completion of bean property configuration for this object.- Specified by:
endConfiguration
in interfaceConfigurable
-
readSchema
Description copied from interface:SchemaFactory
Return the schema group for the current object model and database.- Specified by:
readSchema
in interfaceSchemaFactory
-
storeSchema
Description copied from interface:SchemaFactory
Record the schema group after changes may have been made.- Specified by:
storeSchema
in interfaceSchemaFactory
- Parameters:
schema
- the schema definition for the entire system
-
setFile(java.lang.String)
.