Example #1
0
 private EventColumn buildColumn(
     String name, int type, String value, boolean isKey, boolean isNull) {
   EventColumn column = new EventColumn();
   column.setColumnName(name);
   column.setColumnType(type);
   column.setColumnValue(value);
   column.setKey(isKey);
   column.setNull(isNull);
   return column;
 }
Example #2
0
 private EventColumn buildColumn(BatchProto.Column columnProto) {
   EventColumn column = new EventColumn();
   column.setColumnName(columnProto.getName());
   column.setNull(columnProto.getIsNull());
   column.setColumnType(columnProto.getType());
   column.setColumnValue(columnProto.getValue());
   column.setKey(columnProto.getIsPrimaryKey());
   column.setIndex(columnProto.getIndex());
   column.setUpdate(columnProto.getIsUpdate()); // add by ljh 2012-08-30,标记变更字段
   return column;
 }