public static Where and(final SQLTable t, final Map<String, ?> fields) { final List<Where> res = new ArrayList<Where>(fields.size()); for (final Entry<String, ?> e : fields.entrySet()) { res.add(new Where(t.getField(e.getKey()), "=", e.getValue())); } return and(res); }
/** * Constructor. * * @param table the table to which this column belongs * @param colName the column name * @param type the data types * @see java.sql.DatabaseMetaData#getColumns */ public SQLColumn(SQLTable table, String colName, int type) throws SQLException { super(table.getName() + "." + colName, colName, type); this.table = table; }