|
||||||||||
| 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(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(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 Exception
assertObjectsValid in class DatabaseSchemaCheckerExceptionprotected DDLScriptSqlMetaFactory getDDLScriptSqlMetaFactory()
getDDLScriptSqlMetaFactory in class DatabaseSchemaChecker
protected CatalogDescription readDatabaseCatalog(String[] tableNames)
throws SQLException,
IOException
readDatabaseCatalog in class DatabaseSchemaCheckerSQLException
IOException
public void assertViewsValid()
throws Exception
Exception
public void assertIndexValid()
throws Exception
Exception
public void assertTriggersValid()
throws Exception
Exception
protected void assertObjectsValid(String objectType)
throws Exception
objectType - - oracle object type e.g. "TRIGGER", "VIEW"
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||