public TblColRef findColumn(String table, String column) throws IllegalArgumentException { TableRef tableRef = findTable(table); TblColRef result = tableRef.getColumn(column.toUpperCase(Locale.ROOT)); if (result == null) throw new IllegalArgumentException("Column not found by " + table + "." + column); return result; }
public TblColRef findColumn(String column) throws IllegalArgumentException { TblColRef result = null; String input = column; column = column.toUpperCase(Locale.ROOT); int cut = column.lastIndexOf('.'); if (cut > 0) { // table specified result = findColumn(column.substring(0, cut), column.substring(cut + 1)); } else { // table not specified, try each table for (TableRef tableRef : allTableRefs) { result = tableRef.getColumn(column); if (result != null) break; } } if (result == null) throw new IllegalArgumentException("Column not found by " + input); return result; }
TblColRef[] pkCols = new TblColRef[pks.length]; for (int i = 0; i < pks.length; i++) { TblColRef col = dimTable.getColumn(pks[i]); if (col == null) { col = findColumn(pks[i]);
public TblColRef findColumn(String table, String column) throws IllegalArgumentException { TableRef tableRef = findTable(table); TblColRef result = tableRef.getColumn(column.toUpperCase(Locale.ROOT)); if (result == null) throw new IllegalArgumentException("Column not found by " + table + "." + column); return result; }
public TblColRef findColumn(String column) throws IllegalArgumentException { TblColRef result = null; String input = column; column = column.toUpperCase(Locale.ROOT); int cut = column.lastIndexOf('.'); if (cut > 0) { // table specified result = findColumn(column.substring(0, cut), column.substring(cut + 1)); } else { // table not specified, try each table for (TableRef tableRef : allTableRefs) { result = tableRef.getColumn(column); if (result != null) break; } } if (result == null) throw new IllegalArgumentException("Column not found by " + input); return result; }
TblColRef[] pkCols = new TblColRef[pks.length]; for (int i = 0; i < pks.length; i++) { TblColRef col = dimTable.getColumn(pks[i]); if (col == null) { col = findColumn(pks[i]);