static void checkStatus(long s) throws DBException { NativeStatus status = new NativeStatus(s); try { if( !status.isOk() ) { throw new DBException(status.toString(), status.isNotFound()); } } finally { status.delete(); } }
public void delete() { assertAllocated(); StatusJNI.delete(self); self = 0; }
static void checkStatus(long s) throws DBException { NativeStatus status = new NativeStatus(s); try { if( !status.isOk() ) { throw new DBException(status.toString(), status.isNotFound()); } } finally { status.delete(); } }
public void delete() { assertAllocated(); StatusJNI.delete(self); self = 0; }
static void checkStatus(long s) throws DBException { NativeStatus status = new NativeStatus(s); try { if( !status.isOk() ) { throw new DBException(status.toString(), status.isNotFound()); } } finally { status.delete(); } }
public void delete() { assertAllocated(); StatusJNI.delete(self); self = 0; }
private byte[] get(NativeReadOptions options, NativeSlice keySlice) throws DBException { assertAllocated(); NativeStdString result = new NativeStdString(); try { long s = DBJNI.Get(self, options, keySlice, result.pointer()); NativeStatus status = new NativeStatus(s); try { if(status.isOk()) { return result.toByteArray(); } if(status.isNotFound()) { return null; } throw new DBException(status.toString(), status.isNotFound()); } finally { status.delete(); } } finally { result.delete(); } }
public boolean isOk() { assertAllocated(); return StatusJNI.ok(self); }
private byte[] get(NativeReadOptions options, NativeSlice keySlice) throws DBException { assertAllocated(); NativeStdString result = new NativeStdString(); try { long s = DBJNI.Get(self, options, keySlice, result.pointer()); NativeStatus status = new NativeStatus(s); try { if(status.isOk()) { return result.toByteArray(); } if(status.isNotFound()) { return null; } throw new DBException(status.toString(), status.isNotFound()); } finally { status.delete(); } } finally { result.delete(); } }
public boolean isNotFound() { assertAllocated(); return StatusJNI.IsNotFound(self); }
private byte[] get(NativeReadOptions options, NativeSlice keySlice) throws DBException { assertAllocated(); NativeStdString result = new NativeStdString(); try { long s = DBJNI.Get(self, options, keySlice, result.pointer()); NativeStatus status = new NativeStatus(s); try { if(status.isOk()) { return result.toByteArray(); } if(status.isNotFound()) { return null; } throw new DBException(status.toString(), status.isNotFound()); } finally { status.delete(); } } finally { result.delete(); } }
public boolean isOk() { assertAllocated(); return StatusJNI.ok(self); }
public boolean isOk() { assertAllocated(); return StatusJNI.ok(self); }
public boolean isNotFound() { assertAllocated(); return StatusJNI.IsNotFound(self); }
public boolean isNotFound() { assertAllocated(); return StatusJNI.IsNotFound(self); }
public String toString() { assertAllocated(); long strptr = StatusJNI.ToString(self); if( strptr==0 ) { return null; } else { NativeStdString rc = new NativeStdString(strptr); try { return rc.toString(); } finally { rc.delete(); } } }
public String toString() { assertAllocated(); long strptr = StatusJNI.ToString(self); if( strptr==0 ) { return null; } else { NativeStdString rc = new NativeStdString(strptr); try { return rc.toString(); } finally { rc.delete(); } } }
public String toString() { assertAllocated(); long strptr = StatusJNI.ToString(self); if( strptr==0 ) { return null; } else { NativeStdString rc = new NativeStdString(strptr); try { return rc.toString(); } finally { rc.delete(); } } }