what-the-bank/sources/com/kofax/android/abc/sqlite/SQLiteWrapper.java

46 lines
911 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.android.abc.sqlite;
/* loaded from: classes3.dex */
public class SQLiteWrapper {
private long m_ptr;
public native void nativeClose(long j);
public native long nativeCreate();
public native void nativeDispose(long j);
public native void nativeExecute(long j, String str);
public native boolean nativeOpen(long j, String str);
public SQLiteWrapper() {
this.m_ptr = nativeCreate();
}
public SQLiteWrapper(long j) {
this.m_ptr = j;
}
public void dispose() {
nativeDispose(this.m_ptr);
this.m_ptr = 0L;
}
public boolean open(String str) {
return nativeOpen(this.m_ptr, str);
}
public void close() {
nativeClose(this.m_ptr);
}
public void execute(String str) {
nativeExecute(this.m_ptr, str);
}
public long getPtr() {
return this.m_ptr;
}
}