|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.agimatec.sql.meta.checking.DatabaseSchemaChecker
com.agimatec.sql.meta.oracle.OracleSchemaChecker
public class OracleSchemaChecker
Description: Utility class to check if a given database schema is compatible with a physical database schema: - all tables + columns that are mapped are in the database - no unknown columns are in the database - etc.
User: roman.stumm
| Field Summary |
|---|
| Fields inherited from class com.agimatec.sql.meta.checking.DatabaseSchemaChecker |
|---|
database, logger, myFoundErrors, unknownColumns |
| Constructor Summary | |
|---|---|
OracleSchemaChecker()
|
|
| Method Summary | |
|---|---|
void |
assertIndexValid()
|
void |
assertObjectsValid()
API - |
protected void |
assertObjectsValid(java.lang.String objectType)
Caution: Runs in own transaction, commits afterwards! |
void |
assertTriggersValid()
API - check if the triggers in the database are valid. |
void |
assertViewsValid()
check if the views in the database are valid. |
protected DDLScriptSqlMetaFactory |
getDDLScriptSqlMetaFactory()
|
protected CatalogDescription |
readDatabaseCatalog(java.lang.String[] tableNames)
|
| Methods inherited from class com.agimatec.sql.meta.checking.DatabaseSchemaChecker |
|---|
addUnmappedColumn, assertCatalogsComplete, assertTrue, checkDatabaseSchema, compareForeignKeyDescription, compareIndexDescription, compareSingleIndexDescription, forDbms, getDatabase, getUnmappedColumns, getUnmappedColumns, log, print, setDatabase, throwAssertions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OracleSchemaChecker()
| Method Detail |
|---|
public void assertObjectsValid()
throws java.lang.Exception
assertObjectsValid in class DatabaseSchemaCheckerjava.lang.Exceptionprotected DDLScriptSqlMetaFactory getDDLScriptSqlMetaFactory()
getDDLScriptSqlMetaFactory in class DatabaseSchemaChecker
protected CatalogDescription readDatabaseCatalog(java.lang.String[] tableNames)
throws java.sql.SQLException,
java.io.IOException
readDatabaseCatalog in class DatabaseSchemaCheckerjava.sql.SQLException
java.io.IOException
public void assertViewsValid()
throws java.lang.Exception
java.lang.Exception
public void assertIndexValid()
throws java.lang.Exception
java.lang.Exception
public void assertTriggersValid()
throws java.lang.Exception
java.lang.Exception
protected void assertObjectsValid(java.lang.String objectType)
throws java.lang.Exception
objectType - - oracle object type e.g. "TRIGGER", "VIEW"
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||