|
xmlBlaster 2.2.0 contributions API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface I_ChangeListener
Interface which reports back changes to the observed data. The change can be a pure, empty event or it can contain all details already depending on the implementing notifier.
Method Summary | |
---|---|
void |
hasChanged(ChangeEvent changeEvent)
Is called for every data source changed. |
int |
publishMessagesFromStmt(java.lang.String stmt,
boolean useGroupCol,
ChangeEvent changeEvent,
java.sql.Connection conn)
Does a SQL query with stmt and sends all ResultSets to I_ChangePublisher . |
void |
shutdown()
Cleanup resources. |
Method Detail |
---|
void hasChanged(ChangeEvent changeEvent)
changeEvent
- Transports all needed information about the changeint publishMessagesFromStmt(java.lang.String stmt, boolean useGroupCol, ChangeEvent changeEvent, java.sql.Connection conn) throws java.lang.Exception
I_ChangePublisher
.
The messages are formatted by the configured I_DataConverter
plugin.
Note: This is a common convenienve function, in a future refactoring we should have this method in a separate interface.
stmt
- The SQL query string (with/without grouping)useGroupCol
- If true we send a message for each
ChangeEvent.getGroupColName()
changechangeEvent
- The reason to sendconn
- The JDBC connection, if null we get one ourself in auto commit mode
java.lang.Exception
- of any typevoid shutdown() throws java.lang.Exception
java.lang.Exception
- Can be of any type as implemented by plugin
|
xmlBlaster 2.2.0 contributions API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |