Class ShadowSQLiteConnection


  • @Implements(value=android.database.sqlite.SQLiteConnection.class,
                isInAndroidSdk=false)
    public class ShadowSQLiteConnection
    extends java.lang.Object
    • Constructor Detail

      • ShadowSQLiteConnection

        public ShadowSQLiteConnection()
    • Method Detail

      • setUseInMemoryDatabase

        public static void setUseInMemoryDatabase​(boolean value)
      • nativeOpen

        @Implementation(maxSdk=26)
        public static java.lang.Number nativeOpen​(java.lang.String path,
                                                  int openFlags,
                                                  java.lang.String label,
                                                  boolean enableTrace,
                                                  boolean enableProfile)
      • nativeOpen

        @Implementation(minSdk=27)
        public static long nativeOpen​(java.lang.String path,
                                      int openFlags,
                                      java.lang.String label,
                                      boolean enableTrace,
                                      boolean enableProfile,
                                      int lookasideSlotSize,
                                      int lookasideSlotCount)
      • nativePrepareStatement

        @Implementation(maxSdk=20)
        public static int nativePrepareStatement​(int connectionPtr,
                                                 java.lang.String sql)
      • nativePrepareStatement

        @Implementation(minSdk=21)
        public static long nativePrepareStatement​(long connectionPtr,
                                                  java.lang.String sql)
      • reset

        @Resetter
        public static void reset()
      • nativeClose

        @Implementation(maxSdk=20)
        public static void nativeClose​(int connectionPtr)
      • nativeClose

        @Implementation(minSdk=21)
        public static void nativeClose​(long connectionPtr)
      • nativeFinalizeStatement

        @Implementation(maxSdk=20)
        public static void nativeFinalizeStatement​(int connectionPtr,
                                                   int statementPtr)
      • nativeFinalizeStatement

        @Implementation(minSdk=21)
        public static void nativeFinalizeStatement​(long connectionPtr,
                                                   long statementPtr)
      • nativeGetParameterCount

        @Implementation(maxSdk=20)
        public static int nativeGetParameterCount​(int connectionPtr,
                                                  int statementPtr)
      • nativeGetParameterCount

        @Implementation(minSdk=21)
        public static int nativeGetParameterCount​(long connectionPtr,
                                                  long statementPtr)
      • nativeIsReadOnly

        @Implementation(maxSdk=20)
        public static boolean nativeIsReadOnly​(int connectionPtr,
                                               int statementPtr)
      • nativeIsReadOnly

        @Implementation(minSdk=21)
        public static boolean nativeIsReadOnly​(long connectionPtr,
                                               long statementPtr)
      • nativeExecuteForLong

        @Implementation(maxSdk=20)
        public static long nativeExecuteForLong​(int connectionPtr,
                                                int statementPtr)
      • nativeExecuteForLong

        @Implementation(minSdk=21)
        public static long nativeExecuteForLong​(long connectionPtr,
                                                long statementPtr)
      • nativeExecute

        @Implementation(maxSdk=20)
        public static void nativeExecute​(int connectionPtr,
                                         int statementPtr)
      • nativeExecute

        @Implementation(minSdk=21)
        public static void nativeExecute​(long connectionPtr,
                                         long statementPtr)
      • nativeExecuteForString

        @Implementation(maxSdk=20)
        public static java.lang.String nativeExecuteForString​(int connectionPtr,
                                                              int statementPtr)
      • nativeExecuteForString

        @Implementation(minSdk=21)
        public static java.lang.String nativeExecuteForString​(long connectionPtr,
                                                              long statementPtr)
      • nativeGetColumnCount

        @Implementation(maxSdk=20)
        public static int nativeGetColumnCount​(int connectionPtr,
                                               int statementPtr)
      • nativeGetColumnCount

        @Implementation(minSdk=21)
        public static int nativeGetColumnCount​(long connectionPtr,
                                               long statementPtr)
      • nativeGetColumnName

        @Implementation(maxSdk=20)
        public static java.lang.String nativeGetColumnName​(int connectionPtr,
                                                           int statementPtr,
                                                           int index)
      • nativeGetColumnName

        @Implementation(minSdk=21)
        public static java.lang.String nativeGetColumnName​(long connectionPtr,
                                                           long statementPtr,
                                                           int index)
      • nativeBindNull

        @Implementation(maxSdk=20)
        public static void nativeBindNull​(int connectionPtr,
                                          int statementPtr,
                                          int index)
      • nativeBindNull

        @Implementation(minSdk=21)
        public static void nativeBindNull​(long connectionPtr,
                                          long statementPtr,
                                          int index)
      • nativeBindLong

        @Implementation(maxSdk=20)
        public static void nativeBindLong​(int connectionPtr,
                                          int statementPtr,
                                          int index,
                                          long value)
      • nativeBindLong

        @Implementation(minSdk=21)
        public static void nativeBindLong​(long connectionPtr,
                                          long statementPtr,
                                          int index,
                                          long value)
      • nativeBindDouble

        @Implementation(maxSdk=20)
        public static void nativeBindDouble​(int connectionPtr,
                                            int statementPtr,
                                            int index,
                                            double value)
      • nativeBindDouble

        @Implementation(minSdk=21)
        public static void nativeBindDouble​(long connectionPtr,
                                            long statementPtr,
                                            int index,
                                            double value)
      • nativeBindString

        @Implementation(maxSdk=20)
        public static void nativeBindString​(int connectionPtr,
                                            int statementPtr,
                                            int index,
                                            java.lang.String value)
      • nativeBindString

        @Implementation(minSdk=21)
        public static void nativeBindString​(long connectionPtr,
                                            long statementPtr,
                                            int index,
                                            java.lang.String value)
      • nativeBindBlob

        @Implementation(maxSdk=20)
        public static void nativeBindBlob​(int connectionPtr,
                                          int statementPtr,
                                          int index,
                                          byte[] value)
      • nativeBindBlob

        @Implementation(minSdk=21)
        public static void nativeBindBlob​(long connectionPtr,
                                          long statementPtr,
                                          int index,
                                          byte[] value)
      • nativeRegisterLocalizedCollators

        @Implementation(maxSdk=20)
        public static void nativeRegisterLocalizedCollators​(int connectionPtr,
                                                            java.lang.String locale)
      • nativeRegisterLocalizedCollators

        @Implementation(minSdk=21)
        public static void nativeRegisterLocalizedCollators​(long connectionPtr,
                                                            java.lang.String locale)
      • nativeExecuteForChangedRowCount

        @Implementation(maxSdk=20)
        public static int nativeExecuteForChangedRowCount​(int connectionPtr,
                                                          int statementPtr)
      • nativeExecuteForChangedRowCount

        @Implementation(minSdk=21)
        public static int nativeExecuteForChangedRowCount​(long connectionPtr,
                                                          long statementPtr)
      • nativeExecuteForLastInsertedRowId

        @Implementation(maxSdk=20)
        public static long nativeExecuteForLastInsertedRowId​(int connectionPtr,
                                                             int statementPtr)
      • nativeExecuteForLastInsertedRowId

        @Implementation(minSdk=21)
        public static long nativeExecuteForLastInsertedRowId​(long connectionPtr,
                                                             long statementPtr)
      • nativeExecuteForCursorWindow

        @Implementation(maxSdk=20)
        public static long nativeExecuteForCursorWindow​(int connectionPtr,
                                                        int statementPtr,
                                                        int windowPtr,
                                                        int startPos,
                                                        int requiredPos,
                                                        boolean countAllRows)
      • nativeExecuteForCursorWindow

        @Implementation(minSdk=21)
        public static long nativeExecuteForCursorWindow​(long connectionPtr,
                                                        long statementPtr,
                                                        long windowPtr,
                                                        int startPos,
                                                        int requiredPos,
                                                        boolean countAllRows)
      • nativeResetStatementAndClearBindings

        @Implementation(maxSdk=20)
        public static void nativeResetStatementAndClearBindings​(int connectionPtr,
                                                                int statementPtr)
      • nativeResetStatementAndClearBindings

        @Implementation(minSdk=21)
        public static void nativeResetStatementAndClearBindings​(long connectionPtr,
                                                                long statementPtr)
      • nativeCancel

        @Implementation(maxSdk=20)
        public static void nativeCancel​(int connectionPtr)
      • nativeCancel

        @Implementation(minSdk=21)
        public static void nativeCancel​(long connectionPtr)
      • nativeResetCancel

        @Implementation(maxSdk=20)
        public static void nativeResetCancel​(int connectionPtr,
                                             boolean cancelable)
      • nativeResetCancel

        @Implementation(minSdk=21)
        public static void nativeResetCancel​(long connectionPtr,
                                             boolean cancelable)
      • nativeRegisterCustomFunction

        @Implementation(maxSdk=20)
        public static void nativeRegisterCustomFunction​(int connectionPtr,
                                                        android.database.sqlite.SQLiteCustomFunction function)
      • nativeRegisterCustomFunction

        @Implementation(minSdk=21)
        public static void nativeRegisterCustomFunction​(long connectionPtr,
                                                        android.database.sqlite.SQLiteCustomFunction function)
      • nativeExecuteForBlobFileDescriptor

        @Implementation(maxSdk=20)
        public static int nativeExecuteForBlobFileDescriptor​(int connectionPtr,
                                                             int statementPtr)
      • nativeExecuteForBlobFileDescriptor

        @Implementation(minSdk=21)
        public static int nativeExecuteForBlobFileDescriptor​(long connectionPtr,
                                                             long statementPtr)
      • nativeGetDbLookaside

        @Implementation(maxSdk=20)
        public static int nativeGetDbLookaside​(int connectionPtr)
      • nativeGetDbLookaside

        @Implementation(minSdk=21)
        public static int nativeGetDbLookaside​(long connectionPtr)