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(); } } }
private byte[] getProperty(NativeSlice nameSlice) { assertAllocated(); NativeStdString result = new NativeStdString(); try { if( DBJNI.GetProperty(self, nameSlice, result.pointer()) ) { return result.toByteArray(); } else { return null; } } finally { result.delete(); } }
private byte[] getProperty(NativeSlice nameSlice) { assertAllocated(); NativeStdString result = new NativeStdString(); try { if( DBJNI.GetProperty(self, nameSlice, result.pointer()) ) { return result.toByteArray(); } else { return null; } } finally { result.delete(); } }
private byte[] getProperty(NativeSlice nameSlice) { assertAllocated(); NativeStdString result = new NativeStdString(); try { if( DBJNI.GetProperty(self, nameSlice, result.pointer()) ) { return result.toByteArray(); } else { return null; } } finally { result.delete(); } }
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(); } }
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(); } }
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(); } }