private static String getPkDesc(final henplus.sqlmodel.Column col) {
String pkDesc = "";
if (col.isPartOfPk()) {
final ColumnPkInfo pkInfo = col.getPkInfo();
if (pkInfo.getColumnIndex() == 1) {
pkDesc = pkInfo.getPkName() != null ? pkInfo.getPkName() : "*";
} else { // the pk index is greater than 1
pkDesc = pkInfo.getPkName() != null ? pkInfo.getPkName() : "*";
pkDesc = new StringBuilder(pkDesc).append("{").append(pkInfo.getColumnIndex()).append("}").toString();
}
}
return pkDesc;
}