Example #1
0
 E get() {
   if (value != null) return value;
   try {
     value = db.fetch(recid, serializer);
   } catch (IOException e) {
     throw new IOError(e);
   }
   return value;
 }
Example #2
0
 void delete() {
   try {
     db.delete(recid);
   } catch (IOException e) {
     throw new IOError(e);
   }
   value = null;
   serializer = null;
   db = null;
 }