Exemple #1
0
 public Xowd_page_itm page_(int id, String modified_on, boolean type_redirect, int text_len) {
   return new Xowd_page_itm()
       .Id_(id)
       .Modified_on_(DateAdp_.parse_gplx(modified_on))
       .Redirected_(type_redirect)
       .Text_len_(text_len);
 }
Exemple #2
0
 public String To_str(Object o) {
   if (o == null) return "<<NULL>>";
   Class<?> type = Type_adp_.ClassOf_obj(o);
   String rv = null;
   if (type == String.class) rv = String_.cast(o);
   else if (Int_.TypeMatch(type)) return Int_.To_str(Int_.cast(o));
   else if (Type_adp_.Eq(type, Bool_.Cls_ref_type)) return Yn.To_str(Bool_.cast(o));
   else if (type == DateAdp.class) return DateAdp_.cast(o).XtoStr_gplx();
   else rv = Object_.Xto_str_strict_or_empty(o);
   return String_.Replace(rv, "'", "''");
 }
Exemple #3
0
 public DateAdp ReadDateOr(String k, DateAdp or) {
   Object rv = ReadOr(k, or);
   if (rv == Nil) return or;
   return parse ? DateAdp_.parse_gplx((String) rv) : DateAdp_.cast(rv);
 }
Exemple #4
0
 public DateAdp ReadDate(String k) {
   Object rv = ReadOr(k, null);
   if (rv == Nil) ThrowNotFound(k);
   return parse ? DateAdp_.parse_gplx((String) rv) : DateAdp_.cast(rv);
 }