Package org.robolectric.shadows
Class ShadowLegacySQLiteConnection
java.lang.Object
org.robolectric.shadows.ShadowSQLiteConnection
org.robolectric.shadows.ShadowLegacySQLiteConnection
@Implements(value=android.database.sqlite.SQLiteConnection.class,
isInAndroidSdk=false)
public class ShadowLegacySQLiteConnection
extends ShadowSQLiteConnection
Shadow for
SQLiteConnection
that is backed by sqlite4java.-
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
nativeRegisterCustomFunction
(long connectionPtr, SQLiteCustomFunction 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) static void
reset()
Methods inherited from class org.robolectric.shadows.ShadowSQLiteConnection
dispose, setDefaultJournalMode, setDefaultSyncMode, setUseInMemoryDatabase, sqliteMode
-
Constructor Details
-
ShadowLegacySQLiteConnection
public ShadowLegacySQLiteConnection()
-
-
Method Details
-
nativeOpen
@Implementation(maxSdk=26) protected static long nativeOpen(String path, int openFlags, String label, boolean enableTrace, boolean enableProfile) -
nativeOpen
@Implementation(minSdk=27) protected static long nativeOpen(String path, int openFlags, String label, boolean enableTrace, boolean enableProfile, int lookasideSlotSize, int lookasideSlotCount) -
nativePrepareStatement
-
reset
-
nativeClose
-
nativeFinalizeStatement
@Implementation protected static void nativeFinalizeStatement(long connectionPtr, long statementPtr) -
nativeGetParameterCount
-
nativeIsReadOnly
-
nativeExecuteForLong
-
nativeExecute
@Implementation(maxSdk=32) protected static void nativeExecute(long connectionPtr, long statementPtr) -
nativeExecute
@Implementation(minSdk=33) protected static void nativeExecute(long connectionPtr, long statementPtr, boolean isPragmaStmt) -
nativeExecuteForString
@Implementation protected static String nativeExecuteForString(long connectionPtr, long statementPtr) -
nativeGetColumnCount
-
nativeGetColumnName
@Implementation protected static String nativeGetColumnName(long connectionPtr, long statementPtr, int index) -
nativeBindNull
@Implementation protected static void nativeBindNull(long connectionPtr, long statementPtr, int index) -
nativeBindLong
@Implementation protected static void nativeBindLong(long connectionPtr, long statementPtr, int index, long value) -
nativeBindDouble
@Implementation protected static void nativeBindDouble(long connectionPtr, long statementPtr, int index, double value) -
nativeBindString
@Implementation protected static void nativeBindString(long connectionPtr, long statementPtr, int index, String value) -
nativeBindBlob
@Implementation protected static void nativeBindBlob(long connectionPtr, long statementPtr, int index, byte[] value) -
nativeRegisterLocalizedCollators
@Implementation protected static void nativeRegisterLocalizedCollators(long connectionPtr, String locale) -
nativeExecuteForChangedRowCount
@Implementation protected static int nativeExecuteForChangedRowCount(long connectionPtr, long statementPtr) -
nativeExecuteForLastInsertedRowId
@Implementation protected static long nativeExecuteForLastInsertedRowId(long connectionPtr, long statementPtr) -
nativeExecuteForCursorWindow
@Implementation protected static long nativeExecuteForCursorWindow(long connectionPtr, long statementPtr, long windowPtr, int startPos, int requiredPos, boolean countAllRows) -
nativeResetStatementAndClearBindings
@Implementation protected static void nativeResetStatementAndClearBindings(long connectionPtr, long statementPtr) -
nativeCancel
-
nativeResetCancel
-
nativeRegisterCustomFunction
@Implementation(maxSdk=29) protected static void nativeRegisterCustomFunction(long connectionPtr, SQLiteCustomFunction function) -
nativeExecuteForBlobFileDescriptor
@Implementation protected static int nativeExecuteForBlobFileDescriptor(long connectionPtr, long statementPtr) -
nativeGetDbLookaside
-