@Override
 protected Criteria In_filter(Object[] part_ary) {
   int len = part_ary.length;
   Criteria[] crt_ary = new Criteria[len];
   String fld_ns = tbl.Fld_page_ns();
   String fld_ttl = tbl.Fld_page_title();
   for (int i = 0; i < len; i++)
     crt_ary[i] = Criteria_.And(Db_crt_.New_eq(fld_ns, 0), Db_crt_.New_eq(fld_ttl, Bry_.Empty));
   return Criteria_.Or_many(crt_ary);
 }
Beispiel #2
0
 public static Db_qry_delete new_(String tbl, String... where) {
   return new Db_qry_delete(tbl, Db_crt_.eq_many_(where));
 }
Beispiel #3
0
 public static Db_stmt new_select_in_(
     Db_conn conn, String tbl, String in_fld, Object[] in_vals, String... flds) {
   Db_qry__select_cmd qry =
       Db_qry_.select_cols_(tbl, Db_crt_.New_in(in_fld, in_vals), flds).Order_asc_(in_fld);
   return conn.Stmt_new(qry);
 }
Beispiel #4
0
 public static Db_stmt new_select_(Db_conn conn, String tbl, String[] where, String... flds) {
   Db_qry__select_cmd qry = Db_qry_.select_cols_(tbl, Db_crt_.eq_many_(where), flds);
   return conn.Stmt_new(qry);
 }
Beispiel #5
0
 public static Db_stmt new_delete_(Db_conn conn, String tbl, String... where) {
   Db_qry_delete qry = Db_qry_.delete_(tbl, Db_crt_.eq_many_(where));
   return conn.Stmt_new(qry);
 }