Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 /**
  * 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;
 }