|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.jdbc.schema.NameSet org.apache.openjpa.jdbc.schema.SchemaGroup org.apache.openjpa.jdbc.schema.LazySchemaFactory
public class LazySchemaFactory
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 | |
---|---|
void |
endConfiguration()
Invoked upon completion of bean property configuration for this object. |
Sequence |
findSequence(String name)
Find the sequence with the given name in the group, using '.' as the catalog separator. |
Table |
findTable(String name)
Find the table with the given name in the group, using '.' as the catalog separator. |
boolean |
getForeignKeys()
|
boolean |
getIndexes()
|
boolean |
getPrimaryKeys()
|
SchemaGroup |
readSchema()
Return the schema group for the current object model and database. |
void |
setConfiguration(Configuration conf)
Invoked prior to setting bean properties. |
void |
setForeignKeys(boolean fks)
|
void |
setIndexes(boolean idx)
|
void |
setPrimaryKeys(boolean pks)
|
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. |
Methods inherited from class org.apache.openjpa.jdbc.schema.SchemaGroup |
---|
addSchema, addSchema, clone, copy, findExportedForeignKeys, findSequence, findTable, getSchema, getSchemas, importSchema, isKnownSequence, isKnownSequence, isKnownTable, isKnownTable, newColumn, newForeignKey, newIndex, newInstance, newPrimaryKey, newSchema, newSequence, newTable, newUnique, removeSchema, removeUnusedComponents |
Methods inherited from class org.apache.openjpa.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 |
---|
public LazySchemaFactory()
Method Detail |
---|
public boolean getPrimaryKeys()
public void setPrimaryKeys(boolean pks)
public boolean getForeignKeys()
public void setForeignKeys(boolean fks)
public boolean getIndexes()
public void setIndexes(boolean idx)
public SchemaGroup readSchema()
SchemaFactory
readSchema
in interface SchemaFactory
public void storeSchema(SchemaGroup schema)
SchemaFactory
storeSchema
in interface SchemaFactory
schema
- the schema definition for the entire systempublic Table findTable(String name)
SchemaGroup
findTable
in class SchemaGroup
public Sequence findSequence(String name)
SchemaGroup
findSequence
in class SchemaGroup
public void setConfiguration(Configuration conf)
Configurable
setConfiguration
in interface Configurable
public void startConfiguration()
Configurable
startConfiguration
in interface Configurable
public void endConfiguration()
Configurable
endConfiguration
in interface Configurable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |