log.info("正在处理业务对象:" + table);
log.info("正在产生业务属性添加语句。。。。。");
int i = 1;
for (Iterator itCol = this.getCols(table).iterator(); itCol
.hasNext();) {
SqlCol sqlCol = (SqlCol) itCol.next();
if (!isModify(sqlCol.getName(), boUid)) { // ///没有被修改过的字段才可以被覆盖
StringBuffer buffer = new StringBuffer();
buffer
.append(
"insert into DO_BO_Property(objuid,boUid,col_name,prop_name,l10n,dbType,isNull,isModify,order_num,dbSize,readonly) values(")
.append("'").append(
UUIDHex.getInstance().generate()).append(
"',") // //viewUID
.append("'").append(boUid).append("',") // /colname
.append("'").append(sqlCol.getName()).append("',") // /colname
.append("'").append(sqlCol.getName()).append("',") // /propname
.append("'").append(sqlCol.getName()).append("',") // /l10n
.append(sqlCol.getDataType()).append(","); // /datatype
if (sqlCol.isAllowedNull()) {
buffer.append("'1'");
} else {
buffer.append("'0'");
} // /////////////////////////////isNull
buffer.append(",").append("'0'"); // ///isModify,指修改状态,现在是未修改,是由系统生成的
buffer.append(",").append(i * 5); // ///order numbber
buffer.append(",").append(sqlCol.getSize()); // ///readonly
buffer.append(",").append("'0'"); // ///readonly
buffer.append(")");
log.info(buffer);
stmt.addBatch(buffer.toString());
}