Package org.robolectric.shadows
Class ShadowNativeSQLiteConnection
java.lang.Object
org.robolectric.shadows.ShadowSQLiteConnection
org.robolectric.shadows.ShadowNativeSQLiteConnection
@Implements(className="android.database.sqlite.SQLiteConnection",
isInAndroidSdk=false,
callNativeMethodsByDefault=true)
public class ShadowNativeSQLiteConnection
extends ShadowSQLiteConnection
Shadow for
SQLiteConnection
that is backed by native code-
Nested Class Summary
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowSQLiteConnection
ShadowSQLiteConnection.Picker
-
Field Summary
Fields inherited from class org.robolectric.shadows.ShadowSQLiteConnection
useInMemoryDatabase
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
nativeBindBlob
(long connectionPtr, long statementPtr, int index, byte[] value) protected static void
nativeBindDouble
(long connectionPtr, long statementPtr, int index, double value) protected static void
nativeBindLong
(long connectionPtr, long statementPtr, int index, long value) protected static void
nativeBindNull
(long connectionPtr, long statementPtr, int index) protected static void
nativeBindString
(long connectionPtr, long statementPtr, int index, String value) protected static void
nativeCancel
(long connectionPtr) protected static void
nativeClose
(long connectionPtr) protected static void
nativeExecute
(long connectionPtr, long statementPtr) protected static void
nativeExecute
(long connectionPtr, long statementPtr, boolean isPragmaStmt) protected static int
nativeExecuteForBlobFileDescriptor
(long connectionPtr, long statementPtr) protected static int
nativeExecuteForChangedRowCount
(long connectionPtr, long statementPtr) protected static long
nativeExecuteForCursorWindow
(long connectionPtr, long statementPtr, long windowPtr, int startPos, int requiredPos, boolean countAllRows) protected static long
nativeExecuteForLastInsertedRowId
(long connectionPtr, long statementPtr) protected static long
nativeExecuteForLong
(long connectionPtr, long statementPtr) protected static String
nativeExecuteForString
(long connectionPtr, long statementPtr) protected static void
nativeFinalizeStatement
(long connectionPtr, long statementPtr) protected static int
nativeGetColumnCount
(long connectionPtr, long statementPtr) protected static String
nativeGetColumnName
(long connectionPtr, long statementPtr, int index) protected static int
nativeGetDbLookaside
(long connectionPtr) protected static int
nativeGetParameterCount
(long connectionPtr, long statementPtr) protected static boolean
nativeIsReadOnly
(long connectionPtr, long statementPtr) protected static long
nativeOpen
(String path, int openFlags, String label, boolean enableTrace, boolean enableProfile) protected static long
nativeOpen
(String path, int openFlags, String label, boolean enableTrace, boolean enableProfile, int lookasideSlotSize, int lookasideSlotCount) protected static long
nativePrepareStatement
(long connectionPtr, String sql) protected static void
nativeRegisterCustomAggregateFunction
(long connectionPtr, String name, BinaryOperator<String> function) protected static void
nativeRegisterCustomScalarFunction
(long connectionPtr, String name, UnaryOperator<String> function) protected static void
nativeRegisterLocalizedCollators
(long connectionPtr, String locale) protected static void
nativeResetCancel
(long connectionPtr, boolean cancelable) protected static void
nativeResetStatementAndClearBindings
(long connectionPtr, long statementPtr) Methods inherited from class org.robolectric.shadows.ShadowSQLiteConnection
dispose, reset, setDefaultJournalMode, setDefaultSyncMode, setUseInMemoryDatabase, sqliteMode
-
Constructor Details
-
ShadowNativeSQLiteConnection
public ShadowNativeSQLiteConnection()
-
-
Method Details
-
nativeOpen
@Implementation(maxSdk=26) protected static long nativeOpen(String path, int openFlags, String label, boolean enableTrace, boolean enableProfile) -
nativeOpen
@Implementation(minSdk=27, maxSdk=34) protected static long nativeOpen(String path, int openFlags, String label, boolean enableTrace, boolean enableProfile, int lookasideSlotSize, int lookasideSlotCount) -
nativeClose
-
nativePrepareStatement
@Implementation(maxSdk=34) protected static long nativePrepareStatement(long connectionPtr, String sql) -
nativeFinalizeStatement
@Implementation(maxSdk=34) protected static void nativeFinalizeStatement(long connectionPtr, long statementPtr) -
nativeGetParameterCount
@Implementation(maxSdk=34) protected static int nativeGetParameterCount(long connectionPtr, long statementPtr) -
nativeIsReadOnly
@Implementation(maxSdk=34) protected static boolean nativeIsReadOnly(long connectionPtr, long statementPtr) -
nativeExecuteForString
@Implementation(maxSdk=34) protected static String nativeExecuteForString(long connectionPtr, long statementPtr) -
nativeRegisterLocalizedCollators
@Implementation(maxSdk=34) protected static void nativeRegisterLocalizedCollators(long connectionPtr, String locale) -
nativeExecuteForLong
@Implementation(maxSdk=34) protected static long nativeExecuteForLong(long connectionPtr, long statementPtr) -
nativeExecute
@Implementation(maxSdk=32) protected static void nativeExecute(long connectionPtr, long statementPtr) -
nativeExecute
@Implementation(minSdk=33, maxSdk=34) protected static void nativeExecute(long connectionPtr, long statementPtr, boolean isPragmaStmt) -
nativeExecuteForChangedRowCount
@Implementation(maxSdk=34) protected static int nativeExecuteForChangedRowCount(long connectionPtr, long statementPtr) -
nativeGetColumnCount
@Implementation(maxSdk=34) protected static int nativeGetColumnCount(long connectionPtr, long statementPtr) -
nativeGetColumnName
@Implementation(maxSdk=34) protected static String nativeGetColumnName(long connectionPtr, long statementPtr, int index) -
nativeBindNull
@Implementation(maxSdk=34) protected static void nativeBindNull(long connectionPtr, long statementPtr, int index) -
nativeBindLong
@Implementation(maxSdk=34) protected static void nativeBindLong(long connectionPtr, long statementPtr, int index, long value) -
nativeBindDouble
@Implementation(maxSdk=34) protected static void nativeBindDouble(long connectionPtr, long statementPtr, int index, double value) -
nativeBindString
@Implementation(maxSdk=34) protected static void nativeBindString(long connectionPtr, long statementPtr, int index, String value) -
nativeBindBlob
@Implementation(maxSdk=34) protected static void nativeBindBlob(long connectionPtr, long statementPtr, int index, byte[] value) -
nativeResetStatementAndClearBindings
@Implementation(maxSdk=34) protected static void nativeResetStatementAndClearBindings(long connectionPtr, long statementPtr) -
nativeExecuteForLastInsertedRowId
@Implementation(maxSdk=34) protected static long nativeExecuteForLastInsertedRowId(long connectionPtr, long statementPtr) -
nativeExecuteForCursorWindow
@Implementation(maxSdk=34) protected static long nativeExecuteForCursorWindow(long connectionPtr, long statementPtr, long windowPtr, int startPos, int requiredPos, boolean countAllRows) -
nativeExecuteForBlobFileDescriptor
@Implementation(maxSdk=34) protected static int nativeExecuteForBlobFileDescriptor(long connectionPtr, long statementPtr) -
nativeCancel
-
nativeResetCancel
@Implementation(maxSdk=34) protected static void nativeResetCancel(long connectionPtr, boolean cancelable) -
nativeRegisterCustomScalarFunction
@Implementation(minSdk=30, maxSdk=34) protected static void nativeRegisterCustomScalarFunction(long connectionPtr, String name, UnaryOperator<String> function) -
nativeRegisterCustomAggregateFunction
@Implementation(minSdk=30, maxSdk=34) protected static void nativeRegisterCustomAggregateFunction(long connectionPtr, String name, BinaryOperator<String> function) -
nativeGetDbLookaside
-