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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked 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.voidInvoked prior to setting bean properties.voidSet the XML resource defining this schema.voidsetFileName(String name) Deprecated.voidInvoked before bean property configuration is begun on this object.voidstoreSchema(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:ConfigurableInvoked prior to setting bean properties.- Specified by:
setConfigurationin interfaceConfigurable
-
startConfiguration
public void startConfiguration()Description copied from interface:ConfigurableInvoked before bean property configuration is begun on this object.- Specified by:
startConfigurationin interfaceConfigurable
-
endConfiguration
public void endConfiguration()Description copied from interface:ConfigurableInvoked upon completion of bean property configuration for this object.- Specified by:
endConfigurationin interfaceConfigurable
-
readSchema
Description copied from interface:SchemaFactoryReturn the schema group for the current object model and database.- Specified by:
readSchemain interfaceSchemaFactory
-
storeSchema
Description copied from interface:SchemaFactoryRecord the schema group after changes may have been made.- Specified by:
storeSchemain interfaceSchemaFactory- Parameters:
schema- the schema definition for the entire system
-
setFile(java.lang.String).