Class LazySchemaFactory

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, SchemaFactory, Configurable

    public class LazySchemaFactory
    extends SchemaGroup
    implements SchemaFactory, Configurable
    Factory that uses database metadata to construct the system schema. The lazy schema factory only loads table data as it is requested. It does not properly support operations that require knowledge of the entire schema.
    Author:
    Abe White
    See Also:
    Serialized Form
    • Constructor Detail

      • LazySchemaFactory

        public LazySchemaFactory()
    • Method Detail

      • getPrimaryKeys

        public boolean getPrimaryKeys()
      • setPrimaryKeys

        public void setPrimaryKeys​(boolean pks)
      • getForeignKeys

        public boolean getForeignKeys()
      • setForeignKeys

        public void setForeignKeys​(boolean fks)
      • getIndexes

        public boolean getIndexes()
      • setIndexes

        public void setIndexes​(boolean idx)
      • 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
      • findTable

        @Deprecated
        public Table findTable​(java.lang.String name)
        Deprecated.
        Description copied from class: SchemaGroup
        Find the table with the given name in the group, using '.' as the catalog separator. Returns null if no table found.
        Overrides:
        findTable in class SchemaGroup
      • findSequence

        @Deprecated
        public Sequence findSequence​(java.lang.String name)
        Deprecated.
        Description copied from class: SchemaGroup
        Find the sequence with the given name in the group, using '.' as the catalog separator. Returns null if no sequence found.
        Overrides:
        findSequence in class SchemaGroup
      • 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