diff --git a/bindings/java/src/main/java/org/github/tursodatabase/core/AbstractDB.java b/bindings/java/src/main/java/org/github/tursodatabase/core/AbstractDB.java index b98fdc2a0..f655e6dcf 100644 --- a/bindings/java/src/main/java/org/github/tursodatabase/core/AbstractDB.java +++ b/bindings/java/src/main/java/org/github/tursodatabase/core/AbstractDB.java @@ -29,18 +29,6 @@ public abstract class AbstractDB { */ public abstract void interrupt() throws SQLException; - /** - * Executes an SQL statement. - * - * @param sql SQL statement to be executed. - * @param autoCommit Whether to auto-commit the transaction. - * @throws SQLException if a database access error occurs. - */ - public final synchronized void exec(String sql, boolean autoCommit) throws SQLException { - // TODO: add implementation - throw new SQLFeatureNotSupportedException(); - } - /** * Creates an SQLite interface to a database for the given connection. * @@ -87,22 +75,4 @@ public abstract class AbstractDB { * @throws SQLException if a database access error occurs. */ protected abstract void close0() throws SQLException; - - /** - * Compiles, evaluates, executes and commits an SQL statement. - * - * @param sql An SQL statement. - * @return Result code. - * @throws SQLException if a database access error occurs. - */ - public abstract int exec(String sql) throws SQLException; - - /** - * Destroys a prepared statement. - * - * @param stmt Pointer to the statement pointer. - * @return Result code. - * @throws SQLException if a database access error occurs. - */ - protected abstract int finalize(long stmt) throws SQLException; } diff --git a/bindings/java/src/main/java/org/github/tursodatabase/core/LimboDB.java b/bindings/java/src/main/java/org/github/tursodatabase/core/LimboDB.java index 69f478db9..6229156ea 100644 --- a/bindings/java/src/main/java/org/github/tursodatabase/core/LimboDB.java +++ b/bindings/java/src/main/java/org/github/tursodatabase/core/LimboDB.java @@ -71,12 +71,6 @@ public final class LimboDB extends AbstractDB { @Override protected native void close0() throws SQLException; - @Override - public int exec(String sql) throws SQLException { - // TODO: add implementation - throw new SQLFeatureNotSupportedException(); - } - // TODO: add support for JNI native int execUtf8(byte[] sqlUtf8) throws SQLException; @@ -110,10 +104,6 @@ public final class LimboDB extends AbstractDB { private native long connect0(byte[] path, long databasePtr) throws SQLException; - // TODO: add support for JNI - @Override - protected native int finalize(long stmt); - @VisibleForTesting native void throwJavaException(int errorCode) throws SQLException;