예제 #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;
 }
예제 #2
0
 public static MultiSnipe findFirstBy(String key, String value) {
   MultiSnipe rval = (MultiSnipe) ActiveRecord.findFirstBy(MultiSnipe.class, key, value);
   return cacheResult(rval);
 }
예제 #3
0
 public static AuctionInfo findFirstBy(String key, String value) {
   return (AuctionInfo) ActiveRecord.findFirstBy(AuctionInfo.class, key, value);
 }