public class DBModelChecker extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DBModelChecker.InMemoryDatabase |
Constructor and Description |
---|
DBModelChecker() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkAutoIncColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
checkBlobColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
checkBoolColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
checkCharColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
checkClobColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
checkColumnNullable(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
checkColumnSize(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
checkColumnType(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
checkDateColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
checkDecimalColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
checkFloatColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
checkIntegerColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
void |
checkModel(DBDatabase db,
Connection conn,
String dbSchema,
DBModelErrorHandler handler)
This method is used to check the database model
|
protected void |
checkTextColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
checkUniqueIdColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
checkUnknownColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler)
empire-db DataType-specific checker
|
public void checkModel(DBDatabase db, Connection conn, String dbSchema, DBModelErrorHandler handler)
db
- The Empire-db definition to be checkedconn
- A connection to the databasedbSchema
- The database schemahandler
- The DBModelErrorHandler
implementation that is called whenever an error
occursprotected void checkColumnType(DBColumn column, DBColumn remoteColumn, DBModelErrorHandler handler)
protected void checkColumnNullable(DBColumn column, DBColumn remoteColumn, DBModelErrorHandler handler)
protected void checkColumnSize(DBColumn column, DBColumn remoteColumn, DBModelErrorHandler handler)
protected void checkUnknownColumn(DBColumn column, DBColumn remoteColumn, DBModelErrorHandler handler)
protected void checkIntegerColumn(DBColumn column, DBColumn remoteColumn, DBModelErrorHandler handler)
protected void checkAutoIncColumn(DBColumn column, DBColumn remoteColumn, DBModelErrorHandler handler)
protected void checkTextColumn(DBColumn column, DBColumn remoteColumn, DBModelErrorHandler handler)
protected void checkDateColumn(DBColumn column, DBColumn remoteColumn, DBModelErrorHandler handler)
protected void checkCharColumn(DBColumn column, DBColumn remoteColumn, DBModelErrorHandler handler)
protected void checkFloatColumn(DBColumn column, DBColumn remoteColumn, DBModelErrorHandler handler)
protected void checkDecimalColumn(DBColumn column, DBColumn remoteColumn, DBModelErrorHandler handler)
protected void checkBoolColumn(DBColumn column, DBColumn remoteColumn, DBModelErrorHandler handler)
protected void checkBlobColumn(DBColumn column, DBColumn remoteColumn, DBModelErrorHandler handler)
protected void checkClobColumn(DBColumn column, DBColumn remoteColumn, DBModelErrorHandler handler)
protected void checkUniqueIdColumn(DBColumn column, DBColumn remoteColumn, DBModelErrorHandler handler)
Copyright © 2008–2015 Apache Software Foundation. All rights reserved.