String command = (this.tableExists) ? "UPDATE" : "CREATE";
this.tableExists = true;
if (this.queryMeatStatement != null) { // delegate processing of message meat ...
ChangeEvent changeEvent = new ChangeEvent(this.groupColName, null, null, command, null);
String stmt = this.queryMeatStatement;
count = changeListener.publishMessagesFromStmt(stmt, false, changeEvent, conn);
}
else { // send message without meat ...
if (dataConverter != null) {
if (bout == null) {
bout = new ByteArrayOutputStream();
out = new BufferedOutputStream(bout);
dataConverter.setOutputStream(out, command, this.groupColName, null);
dataConverter.addInfo(conn, rs, I_DataConverter.META_ONLY); // Add the meta info for a CREATE
}
dataConverter.done();
resultXml = bout.toString();
}
changeListener.hasChanged(
new ChangeEvent(this.groupColName, this.groupColName, resultXml, command, null));
count++;
}
}
md5Map.put(this.groupColName, newMD5);