public interface DBModelErrorHandler
Modifier and Type | Method and Description |
---|---|
void |
columnNullableMismatch(DBColumn col,
boolean nullable)
This method is called when a NOT NULL constraints of a column in
the Empire-db definition does not match the database.
|
void |
columnSizeMismatch(DBColumn col,
int size,
int scale)
This method is called when the size of a column in the Empire-db
definition does not match the database.
|
void |
columnTypeMismatch(DBColumn col,
DataType type)
This method is called when the type of a column in the Empire-db
definition does not match the database.
|
void |
itemNotFound(DBObject dbo)
This method is called when an object (e. g. table or column) is missing in
the database.
|
void |
primaryKeyColumnMissing(DBIndex primaryKey,
DBColumn column)
This method is called when a column in a primary key of the Empire-db definition
is missing in the database
|
void itemNotFound(DBObject dbo)
dbo
- The missing objectvoid primaryKeyColumnMissing(DBIndex primaryKey, DBColumn column)
primaryKey
- The primary key that misses the columncolumn
- The missing columnvoid columnTypeMismatch(DBColumn col, DataType type)
col
- The affected columntype
- void columnSizeMismatch(DBColumn col, int size, int scale)
col
- The affected columnsize
- Size in the databasescale
- Decimal scale in the database (only for decimal types, 0 otherwise)void columnNullableMismatch(DBColumn col, boolean nullable)
col
- The affected columnnullable
- true if the column is required in the databaseCopyright © 2008–2018 Apache Software Foundation. All rights reserved.