Пример #1
0
 public void save(PFCObject obj) {
   try {
     open();
     mDB.put(obj.getKey(), obj);
     close();
   } catch (SnappydbException e) {
     e.printStackTrace();
   }
 }
Пример #2
0
  public boolean isExist(PFCObject obj) {
    try {
      open();
      boolean isExist = mDB.exists(obj.getKey());
      close();
      return isExist;
    } catch (SnappydbException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }

    return false;
  }