public void close() { try { mDB.close(); } catch (SnappydbException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
public void save(PFCObject obj) { try { open(); mDB.put(obj.getKey(), obj); close(); } catch (SnappydbException e) { e.printStackTrace(); } }
public boolean isOpen() { try { return mDB.isOpen(); } catch (SnappydbException e) { // TODO Auto-generated catch block e.printStackTrace(); } return true; }
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; }