public class DBModelErrorLogger extends Object implements DBModelErrorHandler
DBModelErrorHandler
interface that logs all errorsConstructor and Description |
---|
DBModelErrorLogger() |
Modifier and Type | Method and Description |
---|---|
void |
columnNullableMismatch(DBColumn col,
boolean nullable)
handle columnNullableMismatch errors
|
void |
columnSizeMismatch(DBColumn col,
int size,
int scale)
handle columnSizeMismatch errors
|
void |
columnTypeMismatch(DBColumn col,
DataType type)
handle columnTypeMismatch errors
|
void |
itemNotFound(DBObject dbo)
handle itemNotFound errors
|
void |
primaryKeyColumnMissing(DBIndex primaryKey,
DBColumn column)
handle primaryKeyColumnMissing errors
|
public void itemNotFound(DBObject dbo)
itemNotFound
in interface DBModelErrorHandler
dbo
- The missing objectpublic void columnTypeMismatch(DBColumn col, DataType type)
columnTypeMismatch
in interface DBModelErrorHandler
col
- The affected columnpublic void columnSizeMismatch(DBColumn col, int size, int scale)
columnSizeMismatch
in interface DBModelErrorHandler
col
- The affected columnsize
- Size in the databasescale
- Decimal scale in the database (only for decimal types, 0 otherwise)public void columnNullableMismatch(DBColumn col, boolean nullable)
columnNullableMismatch
in interface DBModelErrorHandler
col
- The affected columnnullable
- true if the column is required in the databasepublic void primaryKeyColumnMissing(DBIndex primaryKey, DBColumn column)
primaryKeyColumnMissing
in interface DBModelErrorHandler
primaryKey
- The primary key that misses the columncolumn
- The missing columnCopyright © 2008–2022 Apache Software Foundation. All rights reserved.