public class OracleSchemaChecker extends DatabaseSchemaChecker
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.stummDatabaseSchemaChecker.Optionsdatabase, logger, myFoundErrors, unknownColumns| Constructor and Description |
|---|
OracleSchemaChecker() |
| Modifier and Type | Method and Description |
|---|---|
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) |
addUnmappedColumn, assertCatalogsComplete, assertTrue, checkDatabaseSchema, checkDatabaseSchema, compareForeignKeyDescription, compareIndexDescription, compareSingleIndexDescription, forDbms, getDatabase, getUnmappedColumns, getUnmappedColumns, isPrecisionCompatible, isScaleCompatible, isTypeCompatible, log, print, setDatabase, throwAssertionspublic void assertObjectsValid()
throws Exception
assertObjectsValid in class DatabaseSchemaCheckerExceptionprotected DDLScriptSqlMetaFactory getDDLScriptSqlMetaFactory()
getDDLScriptSqlMetaFactory in class DatabaseSchemaCheckerprotected CatalogDescription readDatabaseCatalog(String[] tableNames) throws SQLException, IOException
readDatabaseCatalog in class DatabaseSchemaCheckerSQLExceptionIOExceptionpublic void assertViewsValid()
throws Exception
Exceptionpublic void assertTriggersValid()
throws Exception
ExceptionCopyright © 2008-2016. All Rights Reserved.