Exemple #1
0
 /**
  * Creates the.
  *
  * @param url the url
  * @param dest the dest
  * @param seq the seq
  * @return the int
  */
 public static int create(String url, String dest, int seq) {
   cache = null;
   return Bean.insert(V.create("url", url).set("dest", dest), UrlMapping.class);
 }
Exemple #2
0
 /**
  * Update.
  *
  * @param url the url
  * @param dest the dest
  * @param seq the seq
  * @return the int
  */
 public static int update(String url, String dest, int seq) {
   cache = null;
   return Bean.update(
       "url=?", new Object[] {url}, V.create("dest", dest).set("seq", seq), UrlMapping.class);
 }