while (true) {
String selectSQL = "select * from " + tableName;
String selectCountSQL = "select count(*) from " + tableName;
//
JdbcTemplate jdbc = new JdbcTemplate(conn);
List<Map<String, Object>> dataList = jdbc.queryForList(selectSQL);
int rowCount = jdbc.queryForInt(selectCountSQL);
String logData = HasorUnit.printMapList(dataList, false);
String localHashValue = CommonCodeUtils.MD5.getMD5(logData);
if (!StringUtils.equals(hashValue, localHashValue)) {
System.out.println(String.format("watch : -->Table ‘%s’ rowCount = %s.", tableName, rowCount));