/** * 多语言的列,不含编号列 * * @param dmd DictMetadata * @return String */ public static String getUsedMLangColString(DictMetadata dmd) { List list = getUsedColumnStub(dmd); String bhcol = dmd.getString("DCT_BMCOLID", ""); String col = ""; for (int i = 0; i < list.size(); i++) { ColumnMetaData cmd = (ColumnMetaData) list.get(i); if (cmd.isMLang() && !bhcol.equals(cmd.getColid())) { col += cmd.getColid() + ","; } } if (col.length() > 0) { col = col.substring(0, col.length() - 1); } return col; }
public static String getUsedColString(DictMetadata dmd) { List list = getUsedColumnStub(dmd); String col = ""; for (int i = 0; i < list.size(); i++) { ColumnMetaData cmd = (ColumnMetaData) list.get(i); col += cmd.getColid() + ","; } if (col.length() > 0) col = col.substring(0, col.length() - 1); return col; }
/** * 多语言的列,不含编号列 * * @param dmd DictMetadata * @return String */ public static int getUsedMLangColCount(DictMetadata dmd) { List list = getUsedColumnStub(dmd); String bhcol = dmd.getString("DCT_BMCOLID", ""); int count = 0; for (int i = 0; i < list.size(); i++) { ColumnMetaData cmd = (ColumnMetaData) list.get(i); if (cmd.isMLang() && !bhcol.equals(cmd.getColid())) { count++; } } return count; }
/** * 多语言的列,不含编号列 * * @param dmd DictMetadata * @return String */ public static java.util.List getUsedMLangColStub(DictMetadata dmd) { List mlangList = new ArrayList(); List list = getUsedColumnStub(dmd); String bhcol = dmd.getString("DCT_BMCOLID", ""); String col = ""; for (int i = 0; i < list.size(); i++) { ColumnMetaData cmd = (ColumnMetaData) list.get(i); if (cmd.isMLang() && !bhcol.equals(cmd.getColid())) { mlangList.add(cmd); } } return mlangList; }