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 void
endConfiguration()
Invoked upon completion of bean property configuration for this object.java.lang.String
getFile()
Return the XML resource defining this schema.SchemaGroup
readSchema()
Return the schema group for the current object model and database.void
setConfiguration(Configuration conf)
Invoked prior to setting bean properties.void
setFile(java.lang.String fileName)
Set the XML resource defining this schema.void
setFileName(java.lang.String name)
Deprecated.void
startConfiguration()
Invoked before bean property configuration is begun on this object.void
storeSchema(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: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
public SchemaGroup readSchema()
Description copied from interface:SchemaFactory
Return the schema group for the current object model and database.- Specified by:
readSchema
in interfaceSchemaFactory
-
storeSchema
public void storeSchema(SchemaGroup schema)
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
-
-