Package org.apache.openjpa.jdbc.schema
Class FileSchemaFactory
- java.lang.Object
-
- org.apache.openjpa.jdbc.schema.FileSchemaFactory
-
- All Implemented Interfaces:
SchemaFactory,Configurable
public class FileSchemaFactory extends java.lang.Object implements SchemaFactory, Configurable
Factory that uses an XML schema file to construct the system schema.- Author:
- Abe White
-
-
Constructor Summary
Constructors Constructor Description FileSchemaFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidendConfiguration()Invoked upon completion of bean property configuration for this object.java.lang.StringgetFile()Return the XML resource defining this schema.SchemaGroupreadSchema()Return the schema group for the current object model and database.voidsetConfiguration(Configuration conf)Invoked prior to setting bean properties.voidsetFile(java.lang.String fileName)Set the XML resource defining this schema.voidsetFileName(java.lang.String name)Deprecated.voidstartConfiguration()Invoked before bean property configuration is begun on this object.voidstoreSchema(SchemaGroup schema)Record the schema group after changes may have been made.
-
-
-
Method Detail
-
getFile
public java.lang.String getFile()
Return the XML resource defining this schema. Defaults topackage.schema.
-
setFile
public void setFile(java.lang.String fileName)
Set the XML resource defining this schema. Defaults topackage.schema.
-
setFileName
@Deprecated public void setFileName(java.lang.String name)
Deprecated.UsesetFile(java.lang.String). Retained for backwards-compatible auto-configuration.
-
setConfiguration
public void setConfiguration(Configuration conf)
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
public SchemaGroup readSchema()
Description copied from interface:SchemaFactoryReturn the schema group for the current object model and database.- Specified by:
readSchemain interfaceSchemaFactory
-
storeSchema
public void storeSchema(SchemaGroup schema)
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
-
-