Example #1
0
 public Macro get(int id, boolean create) {
   Map m = db.getMap(NAME);
   Macro c = (Macro) m.get(new Integer(id));
   if (c == null && create) {
     c = create(id);
   }
   return c;
 }