public class DatabaseCountListener extends Object implements IDatabaseListener
| Constructor and Description |
|---|
DatabaseCountListener() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCount(Connection con,
Table table,
int rows)
Check if the given table count match the number of expected items.
|
void |
initialize() |
void |
onRegisterIn(DatabaseRegisterEvent event)
On register input command.
|
void |
onRegisterOut(DatabaseRegisterEvent event)
On register output command.
|
void |
onTableIn(DatabaseTableEvent event)
On table start processing.
|
void |
onTableOut(DatabaseTableEvent event)
On table end processing.
|
public void initialize()
initialize in interface IResetablepublic void onTableIn(DatabaseTableEvent event) throws DatabaseException
IDatabaseListeneronTableIn in interface IDatabaseListenerevent - Event.DatabaseException - On processing errors.public void onRegisterIn(DatabaseRegisterEvent event)
IDatabaseListeneronRegisterIn in interface IDatabaseListenerevent - Event.public void onRegisterOut(DatabaseRegisterEvent event)
IDatabaseListeneronRegisterOut in interface IDatabaseListenerevent - Event.public void onTableOut(DatabaseTableEvent event) throws DatabaseException
IDatabaseListeneronTableOut in interface IDatabaseListenerevent - Event.DatabaseException - On processing errors.protected void checkCount(Connection con, Table table, int rows) throws DatabaseException
con - A connection.table - A table meta-data.rows - Rows to check.DatabaseException - On count errors.Copyright © 2017. All rights reserved.