Package org.robolectric.nativeruntime
Class SQLiteConnectionNatives
java.lang.Object
org.robolectric.nativeruntime.SQLiteConnectionNatives
Native methods for SQLiteConnection JNI registration.
Native method signatures are derived from https://cs.android.com/android/platform/superproject/+/android-11.0.0_r1:frameworks/base/core/java/android/database/sqlite/SQLiteConnection.java
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
nativeBindBlob
(long connectionPtr, long statementPtr, int index, byte[] value) static void
nativeBindDouble
(long connectionPtr, long statementPtr, int index, double value) static void
nativeBindLong
(long connectionPtr, long statementPtr, int index, long value) static void
nativeBindNull
(long connectionPtr, long statementPtr, int index) static void
nativeBindString
(long connectionPtr, long statementPtr, int index, String value) static void
nativeCancel
(long connectionPtr) static void
nativeClose
(long connectionPtr) static void
nativeExecute
(long connectionPtr, long statementPtr, boolean isPragmaStmt) static int
nativeExecuteForBlobFileDescriptor
(long connectionPtr, long statementPtr) static int
nativeExecuteForChangedRowCount
(long connectionPtr, long statementPtr) static long
nativeExecuteForCursorWindow
(long connectionPtr, long statementPtr, long windowPtr, int startPos, int requiredPos, boolean countAllRows) static long
nativeExecuteForLastInsertedRowId
(long connectionPtr, long statementPtr) static long
nativeExecuteForLong
(long connectionPtr, long statementPtr) static String
nativeExecuteForString
(long connectionPtr, long statementPtr) static void
nativeFinalizeStatement
(long connectionPtr, long statementPtr) static int
nativeGetColumnCount
(long connectionPtr, long statementPtr) static String
nativeGetColumnName
(long connectionPtr, long statementPtr, int index) static int
nativeGetDbLookaside
(long connectionPtr) static int
nativeGetParameterCount
(long connectionPtr, long statementPtr) static boolean
nativeIsReadOnly
(long connectionPtr, long statementPtr) static long
nativeOpen
(String path, int openFlags, String label, boolean enableTrace, boolean enableProfile, int lookasideSlotSize, int lookasideSlotCount) static long
nativePrepareStatement
(long connectionPtr, String sql) static void
nativeRegisterCustomAggregateFunction
(long connectionPtr, String name, BinaryOperator<String> function) static void
nativeRegisterCustomScalarFunction
(long connectionPtr, String name, UnaryOperator<String> function) static void
nativeRegisterLocalizedCollators
(long connectionPtr, String locale) static void
nativeResetCancel
(long connectionPtr, boolean cancelable) static void
nativeResetStatementAndClearBindings
(long connectionPtr, long statementPtr)
-
Method Details
-
nativeOpen
-
nativeClose
public static void nativeClose(long connectionPtr) -
nativeRegisterCustomScalarFunction
public static void nativeRegisterCustomScalarFunction(long connectionPtr, String name, UnaryOperator<String> function) -
nativeRegisterCustomAggregateFunction
public static void nativeRegisterCustomAggregateFunction(long connectionPtr, String name, BinaryOperator<String> function) -
nativeRegisterLocalizedCollators
-
nativePrepareStatement
-
nativeFinalizeStatement
public static void nativeFinalizeStatement(long connectionPtr, long statementPtr) -
nativeGetParameterCount
public static int nativeGetParameterCount(long connectionPtr, long statementPtr) -
nativeIsReadOnly
public static boolean nativeIsReadOnly(long connectionPtr, long statementPtr) -
nativeGetColumnCount
public static int nativeGetColumnCount(long connectionPtr, long statementPtr) -
nativeGetColumnName
-
nativeBindNull
public static void nativeBindNull(long connectionPtr, long statementPtr, int index) -
nativeBindLong
public static void nativeBindLong(long connectionPtr, long statementPtr, int index, long value) -
nativeBindDouble
public static void nativeBindDouble(long connectionPtr, long statementPtr, int index, double value) -
nativeBindString
-
nativeBindBlob
public static void nativeBindBlob(long connectionPtr, long statementPtr, int index, byte[] value) -
nativeResetStatementAndClearBindings
public static void nativeResetStatementAndClearBindings(long connectionPtr, long statementPtr) -
nativeExecute
public static void nativeExecute(long connectionPtr, long statementPtr, boolean isPragmaStmt) -
nativeExecuteForLong
public static long nativeExecuteForLong(long connectionPtr, long statementPtr) -
nativeExecuteForString
-
nativeExecuteForBlobFileDescriptor
public static int nativeExecuteForBlobFileDescriptor(long connectionPtr, long statementPtr) -
nativeExecuteForChangedRowCount
public static int nativeExecuteForChangedRowCount(long connectionPtr, long statementPtr) -
nativeExecuteForLastInsertedRowId
public static long nativeExecuteForLastInsertedRowId(long connectionPtr, long statementPtr) -
nativeExecuteForCursorWindow
public static long nativeExecuteForCursorWindow(long connectionPtr, long statementPtr, long windowPtr, int startPos, int requiredPos, boolean countAllRows) -
nativeGetDbLookaside
public static int nativeGetDbLookaside(long connectionPtr) -
nativeCancel
public static void nativeCancel(long connectionPtr) -
nativeResetCancel
public static void nativeResetCancel(long connectionPtr, boolean cancelable)
-