Example #1
0
  /**
   * Load all.
   *
   * @return the list
   */
  public static List<UrlMapping> loadAll() {
    if (cache == null) {
      cache = Bean.load(null, null, null, "order by seq", 0, Integer.MAX_VALUE, UrlMapping.class);
    }

    return cache;
  }
Example #2
0
 /**
  * Load.
  *
  * @param url the url
  * @return the url mapping
  */
 public static UrlMapping load(String url) {
   return Bean.load("tblurlmapping", "url=?", new Object[] {url}, UrlMapping.class);
 }
Example #3
0
 /**
  * Load.
  *
  * @param offset the offset
  * @param limit the limit
  * @return the beans
  */
 public static Beans<UrlMapping> load(int offset, int limit) {
   return Bean.load(null, null, "order by url", offset, limit, UrlMapping.class);
 }