SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

com.solarmetric.rd.kodo.impl.jdbc.schema
Class LazySchemaFactory

java.lang.Object
  |
  +--com.solarmetric.rd.kodo.impl.jdbc.schema.NameSet
        |
        +--com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaGroup
              |
              +--com.solarmetric.rd.kodo.impl.jdbc.schema.LazySchemaFactory
All Implemented Interfaces:
java.lang.Cloneable, SchemaFactory

public class LazySchemaFactory
extends SchemaGroup
implements SchemaFactory

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.


Constructor Summary
LazySchemaFactory()
           
 
Method Summary
 com.solarmetric.rd.kodo.impl.jdbc.schema.Table findTable(java.lang.String name)
          Find the table with the given name in the group.
 boolean getGenerateForeignKeys()
           
 boolean getGenerateIndexes()
           
 boolean getGeneratePrimaryKeys()
           
 com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaGroup readSchema()
          Return the schema group for the current object model and database.
 void setConfiguration(com.solarmetric.rd.kodo.impl.jdbc.conf.JDBCConfiguration conf)
          Set the configuration for the factory.
 void setGenerateForeignKeys(boolean fks)
           
 void setGenerateIndexes(boolean idx)
           
 void setGeneratePrimaryKeys(boolean pks)
           
 void storeSchema(com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaGroup schema)
          Record the schema group after changes may have been made.
 
Methods inherited from class com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaGroup
addSchema, addSchema, clone, findExportedForeignKeys, getSchema, getSchemas, importSchema, newColumn, newForeignKey, newIndex, newPrimaryKey, newSchema, newTable, removeSchema, removeUnusedComponents
 
Methods inherited from class com.solarmetric.rd.kodo.impl.jdbc.schema.NameSet
addName, isNameTaken, removeName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazySchemaFactory

public LazySchemaFactory()
Method Detail

getGeneratePrimaryKeys

public boolean getGeneratePrimaryKeys()

setGeneratePrimaryKeys

public void setGeneratePrimaryKeys(boolean pks)

getGenerateForeignKeys

public boolean getGenerateForeignKeys()

setGenerateForeignKeys

public void setGenerateForeignKeys(boolean fks)

getGenerateIndexes

public boolean getGenerateIndexes()

setGenerateIndexes

public void setGenerateIndexes(boolean idx)

setConfiguration

public void setConfiguration(com.solarmetric.rd.kodo.impl.jdbc.conf.JDBCConfiguration conf)
Description copied from interface: SchemaFactory
Set the configuration for the factory.

Specified by:
setConfiguration in interface SchemaFactory

readSchema

public com.solarmetric.rd.kodo.impl.jdbc.schema.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(com.solarmetric.rd.kodo.impl.jdbc.schema.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

public com.solarmetric.rd.kodo.impl.jdbc.schema.Table findTable(java.lang.String name)
Description copied from class: SchemaGroup
Find the table with the given name in the group. Returns null if no table found.

Overrides:
findTable in class SchemaGroup

SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.