|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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()
|
Sequence |
findSequence(DBIdentifier name)
|
Sequence |
findSequence(QualifiedDBIdentifier name)
|
Sequence |
findSequence(String name)
Deprecated. |
Table |
findTable(DBIdentifier name)
|
Table |
findTable(QualifiedDBIdentifier path)
|
Table |
findTable(String name)
Deprecated. |
boolean |
getForeignKeys()
|
boolean |
getIndexes()
|
boolean |
getPrimaryKeys()
|
SchemaGroup |
readSchema()
Return the schema group for the current object model and database. |
void |
setConfiguration(org.apache.openjpa.lib.conf.Configuration conf)
|
void |
setForeignKeys(boolean fks)
|
void |
setIndexes(boolean idx)
|
void |
setPrimaryKeys(boolean pks)
|
void |
startConfiguration()
|
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, addSchema, clone, copy, findExportedForeignKeys, findSequence, findSequence, findSequence, findTable, findTable, findTable, findTable, findTable, getSchema, getSchema, getSchemas, importSchema, isKnownSequence, isKnownSequence, isKnownSequence, isKnownSequence, isKnownTable, isKnownTable, isKnownTable, newColumn, newColumn, newForeignKey, newForeignKey, newIndex, newIndex, newInstance, newPrimaryKey, newPrimaryKey, newSchema, newSchema, newSequence, newSequence, newTable, newTable, newUnique, newUnique, removeSchema, removeUnusedComponents |
| Methods inherited from class org.apache.openjpa.jdbc.schema.NameSet |
|---|
addName, addName, isNameTaken, isNameTaken, removeName, 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 SchemaFactorypublic void storeSchema(SchemaGroup schema)
SchemaFactory
storeSchema in interface SchemaFactoryschema - the schema definition for the entire systempublic Table findTable(String name)
SchemaGroup
findTable in class SchemaGrouppublic Table findTable(DBIdentifier name)
public Table findTable(QualifiedDBIdentifier path)
findTable in class SchemaGrouppublic Sequence findSequence(String name)
SchemaGroup
findSequence in class SchemaGrouppublic Sequence findSequence(DBIdentifier name)
findSequence in class SchemaGrouppublic Sequence findSequence(QualifiedDBIdentifier name)
findSequence in class SchemaGrouppublic void setConfiguration(org.apache.openjpa.lib.conf.Configuration conf)
setConfiguration in interface org.apache.openjpa.lib.conf.Configurablepublic void startConfiguration()
startConfiguration in interface org.apache.openjpa.lib.conf.Configurablepublic void endConfiguration()
endConfiguration in interface org.apache.openjpa.lib.conf.Configurable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||