Example #1
0
 public static MultiSnipe find(Integer id) {
   MultiSnipe rval = singleSource.get(id);
   if (rval == null) {
     rval = (MultiSnipe) ActiveRecord.findFirstBy(MultiSnipe.class, "id", Integer.toString(id));
     singleSource.put(id, rval);
   }
   return rval;
 }
Example #2
0
 public static MultiSnipe findFirstBy(String key, String value) {
   MultiSnipe rval = (MultiSnipe) ActiveRecord.findFirstBy(MultiSnipe.class, key, value);
   return cacheResult(rval);
 }
 public static AuctionInfo findFirstBy(String key, String value) {
   return (AuctionInfo) ActiveRecord.findFirstBy(AuctionInfo.class, key, value);
 }