com.agimatec.sql.meta.mysql
Class MySqlSchemaChecker

java.lang.Object
  extended by com.agimatec.sql.meta.checking.DatabaseSchemaChecker
      extended by com.agimatec.sql.meta.mysql.MySqlSchemaChecker

public class MySqlSchemaChecker
extends DatabaseSchemaChecker

check a mysql catalog for validity

User: roman.stumm@viaboxx.de
Date: 26.03.13


Field Summary
 
Fields inherited from class com.agimatec.sql.meta.checking.DatabaseSchemaChecker
database, logger, myFoundErrors, unknownColumns
 
Constructor Summary
MySqlSchemaChecker()
           
 
Method Summary
 void assertObjectsValid()
          API - check for invalid objects in the database
protected  DDLScriptSqlMetaFactory getDDLScriptSqlMetaFactory()
           
protected  boolean isPrecisionCompatible(ColumnDescription expected, ColumnDescription actual)
           
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, isScaleCompatible, isTypeCompatible, log, print, setDatabase, throwAssertions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySqlSchemaChecker

public MySqlSchemaChecker()
Method Detail

assertObjectsValid

public void assertObjectsValid()
                        throws Exception
Description copied from class: DatabaseSchemaChecker
API - check for invalid objects in the database

Specified by:
assertObjectsValid in class DatabaseSchemaChecker
Throws:
Exception

getDDLScriptSqlMetaFactory

protected DDLScriptSqlMetaFactory getDDLScriptSqlMetaFactory()
Specified by:
getDDLScriptSqlMetaFactory in class DatabaseSchemaChecker

readDatabaseCatalog

protected CatalogDescription readDatabaseCatalog(String[] tableNames)
                                          throws SQLException,
                                                 IOException
Specified by:
readDatabaseCatalog in class DatabaseSchemaChecker
Throws:
SQLException
IOException

isPrecisionCompatible

protected boolean isPrecisionCompatible(ColumnDescription expected,
                                        ColumnDescription actual)
Overrides:
isPrecisionCompatible in class DatabaseSchemaChecker


Copyright © 2008-2013. All Rights Reserved.