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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidnativeBindBlob(long connectionPtr, long statementPtr, int index, byte[] value) protected static voidnativeBindDouble(long connectionPtr, long statementPtr, int index, double value) protected static voidnativeBindLong(long connectionPtr, long statementPtr, int index, long value) protected static voidnativeBindNull(long connectionPtr, long statementPtr, int index) protected static voidnativeBindString(long connectionPtr, long statementPtr, int index, String value) protected static voidnativeCancel(long connectionPtr) protected static voidnativeClose(long connectionPtr) protected static voidnativeExecute(long connectionPtr, long statementPtr) protected static voidnativeExecute(long connectionPtr, long statementPtr, boolean isPragmaStmt) protected static intnativeExecuteForBlobFileDescriptor(long connectionPtr, long statementPtr) protected static intnativeExecuteForChangedRowCount(long connectionPtr, long statementPtr) protected static longnativeExecuteForCursorWindow(long connectionPtr, long statementPtr, long windowPtr, int startPos, int requiredPos, boolean countAllRows) protected static longnativeExecuteForLastInsertedRowId(long connectionPtr, long statementPtr) protected static longnativeExecuteForLong(long connectionPtr, long statementPtr) protected static StringnativeExecuteForString(long connectionPtr, long statementPtr) protected static voidnativeFinalizeStatement(long connectionPtr, long statementPtr) protected static intnativeGetColumnCount(long connectionPtr, long statementPtr) protected static StringnativeGetColumnName(long connectionPtr, long statementPtr, int index) protected static intnativeGetDbLookaside(long connectionPtr) protected static intnativeGetParameterCount(long connectionPtr, long statementPtr) protected static booleannativeIsReadOnly(long connectionPtr, long statementPtr) protected static longnativeOpen(String path, int openFlags, String label, boolean enableTrace, boolean enableProfile) protected static longnativeOpen(String path, int openFlags, String label, boolean enableTrace, boolean enableProfile, int lookasideSlotSize, int lookasideSlotCount) protected static longnativePrepareStatement(long connectionPtr, String sql) protected static voidnativeRegisterCustomFunction(long connectionPtr, SQLiteCustomFunction function) protected static voidnativeRegisterLocalizedCollators(long connectionPtr, String locale) protected static voidnativeResetCancel(long connectionPtr, boolean cancelable) protected static voidnativeResetStatementAndClearBindings(long connectionPtr, long statementPtr) static voidreset()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
-