Interface UpdateListener
- All Known Implementing Classes:
JsonLoggerUpdateListener
public interface UpdateListener
The listener interface for receiving SQL update events.
Concrete implementations are defined in the
A built in and ready to use class that doesn't require any coding is included:
When
Concrete implementations are defined in the
aceql-server.properties
file. A built in and ready to use class that doesn't require any coding is included:
JsonLoggerUpdateListener
: a listener that insert in logs using JSON format theSqlEvent
.
UpdateListener
may be defined and chained in property
value by separating class names by a comma. When
UpdateListener
classes are chained, all of them are
successively executed in the declared order.- Since:
- 9.0
- Author:
- Nicolas de Pomereu
-
Method Summary
Modifier and Type Method Description void
updateActionPerformed(SqlEvent sqlEvent, Connection connection)
Invoked when a SQL update event is successfully executed.
-
Method Details
-
updateActionPerformed
void updateActionPerformed(SqlEvent sqlEvent, Connection connection) throws IOException, SQLExceptionInvoked when a SQL update event is successfully executed.- Parameters:
sqlEvent
- the SQL update event that is successfully processedconnection
- the Connection in use for the SQL update event- Throws:
IOException
- if an IOException occursSQLException
- if a SQLException occurs
-