Class SQLiteConnectionNatives


  • public class SQLiteConnectionNatives
    extends Object
    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 Detail

      • nativeOpen

        public static long nativeOpen​(String path,
                                      int openFlags,
                                      String label,
                                      boolean enableTrace,
                                      boolean enableProfile,
                                      int lookasideSlotSize,
                                      int lookasideSlotCount)
      • 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

        public static void nativeRegisterLocalizedCollators​(long connectionPtr,
                                                            String locale)
      • nativePrepareStatement

        public static long nativePrepareStatement​(long connectionPtr,
                                                  String sql)
      • 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

        public static String nativeGetColumnName​(long connectionPtr,
                                                 long statementPtr,
                                                 int index)
      • 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

        public static void nativeBindString​(long connectionPtr,
                                            long statementPtr,
                                            int index,
                                            String value)
      • 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

        public static String nativeExecuteForString​(long connectionPtr,
                                                    long statementPtr)
      • 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)