Class FileSchemaFactory

java.lang.Object
org.apache.openjpa.jdbc.schema.FileSchemaFactory
All Implemented Interfaces:
SchemaFactory, Configurable

public class FileSchemaFactory extends Object implements SchemaFactory, Configurable
Factory that uses an XML schema file to construct the system schema.
Author:
Abe White
  • Constructor Details

    • FileSchemaFactory

      public FileSchemaFactory()
  • Method Details

    • getFile

      public String getFile()
      Return the XML resource defining this schema. Defaults to package.schema.
    • setFile

      public void setFile(String fileName)
      Set the XML resource defining this schema. Defaults to package.schema.
    • setFileName

      @Deprecated public void setFileName(String name)
      Deprecated.
      Use setFile(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 interface Configurable
    • startConfiguration

      public void startConfiguration()
      Description copied from interface: Configurable
      Invoked before bean property configuration is begun on this object.
      Specified by:
      startConfiguration in interface Configurable
    • endConfiguration

      public void endConfiguration()
      Description copied from interface: Configurable
      Invoked upon completion of bean property configuration for this object.
      Specified by:
      endConfiguration in interface Configurable
    • readSchema

      public SchemaGroup readSchema()
      Description copied from interface: SchemaFactory
      Return the schema group for the current object model and database.
      Specified by:
      readSchema in interface SchemaFactory
    • 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 interface SchemaFactory
      Parameters:
      schema - the schema definition for the entire system