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 |
objectTypeMismatch(DBObject object,
String name,
Class<?> expectedType)
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 |
primaryKeyMismatch(DBIndex primaryKey,
DBColumn[] tableKey)
This method is called when the primary key of the Empire-db definition
does not match the primary key of the existing table
|
void itemNotFound(DBObject dbo)
dbo
- The missing objectvoid objectTypeMismatch(DBObject object, String name, Class<?> expectedType)
object
- the missing objectname
- the name of the objectexpectedType
- the expected typevoid primaryKeyColumnMissing(DBIndex primaryKey, DBColumn column)
primaryKey
- The primary key that misses the columncolumn
- The missing columnvoid primaryKeyMismatch(DBIndex primaryKey, DBColumn[] tableKey)
primaryKey
- The index keytableKey
- The referenced table keyvoid 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–2023 Apache Software Foundation. All rights reserved.