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) 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
-
Constructor Summary
Constructors Constructor Description ShadowNativeSQLiteConnection() -
Method Summary
Modifier and Type Method Description protected static voidnativeBindBlob(int connectionPtr, int statementPtr, int index, byte[] value)protected static voidnativeBindBlob(long connectionPtr, long statementPtr, int index, byte[] value)protected static voidnativeBindDouble(int connectionPtr, int statementPtr, int index, double value)protected static voidnativeBindDouble(long connectionPtr, long statementPtr, int index, double value)protected static voidnativeBindLong(int connectionPtr, int statementPtr, int index, long value)protected static voidnativeBindLong(long connectionPtr, long statementPtr, int index, long value)protected static voidnativeBindNull(int connectionPtr, int statementPtr, int index)protected static voidnativeBindNull(long connectionPtr, long statementPtr, int index)protected static voidnativeBindString(int connectionPtr, int statementPtr, int index, String value)protected static voidnativeBindString(long connectionPtr, long statementPtr, int index, String value)protected static voidnativeCancel(int connectionPtr)protected static voidnativeCancel(long connectionPtr)protected static voidnativeClose(int connectionPtr)protected static voidnativeClose(long connectionPtr)protected static voidnativeExecute(int connectionPtr, int statementPtr)protected static voidnativeExecute(long connectionPtr, long statementPtr)protected static voidnativeExecute(long connectionPtr, long statementPtr, boolean isPragmaStmt)protected static intnativeExecuteForBlobFileDescriptor(int connectionPtr, int statementPtr)protected static intnativeExecuteForBlobFileDescriptor(long connectionPtr, long statementPtr)protected static intnativeExecuteForChangedRowCount(int connectionPtr, int statementPtr)protected static intnativeExecuteForChangedRowCount(long connectionPtr, long statementPtr)protected static longnativeExecuteForCursorWindow(int connectionPtr, int statementPtr, int windowPtr, int startPos, int requiredPos, boolean countAllRows)protected static longnativeExecuteForCursorWindow(long connectionPtr, long statementPtr, long windowPtr, int startPos, int requiredPos, boolean countAllRows)protected static longnativeExecuteForLastInsertedRowId(int connectionPtr, int statementPtr)protected static longnativeExecuteForLastInsertedRowId(long connectionPtr, long statementPtr)protected static longnativeExecuteForLong(int connectionPtr, int statementPtr)protected static longnativeExecuteForLong(long connectionPtr, long statementPtr)protected static StringnativeExecuteForString(int connectionPtr, int statementPtr)protected static StringnativeExecuteForString(long connectionPtr, long statementPtr)protected static voidnativeFinalizeStatement(int connectionPtr, int statementPtr)protected static voidnativeFinalizeStatement(long connectionPtr, long statementPtr)protected static intnativeGetColumnCount(int connectionPtr, int statementPtr)protected static intnativeGetColumnCount(long connectionPtr, long statementPtr)protected static StringnativeGetColumnName(int connectionPtr, int statementPtr, int index)protected static StringnativeGetColumnName(long connectionPtr, long statementPtr, int index)protected static intnativeGetDbLookaside(int connectionPtr)protected static intnativeGetDbLookaside(long connectionPtr)protected static intnativeGetParameterCount(int connectionPtr, int statementPtr)protected static intnativeGetParameterCount(long connectionPtr, long statementPtr)protected static booleannativeIsReadOnly(int connectionPtr, int statementPtr)protected static booleannativeIsReadOnly(long connectionPtr, long statementPtr)protected static NumbernativeOpen(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 intnativePrepareStatement(int connectionPtr, String sql)protected static longnativePrepareStatement(long connectionPtr, String sql)protected static voidnativeRegisterCustomAggregateFunction(long connectionPtr, String name, BinaryOperator<String> function)protected static voidnativeRegisterCustomScalarFunction(long connectionPtr, String name, UnaryOperator<String> function)protected static voidnativeRegisterLocalizedCollators(int connectionPtr, String locale)protected static voidnativeRegisterLocalizedCollators(long connectionPtr, String locale)protected static voidnativeResetCancel(int connectionPtr, boolean cancelable)protected static voidnativeResetCancel(long connectionPtr, boolean cancelable)protected static voidnativeResetStatementAndClearBindings(int connectionPtr, int statementPtr)protected static voidnativeResetStatementAndClearBindings(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 Number 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) -
nativeClose
-
nativeClose
-
nativePrepareStatement
@Implementation(maxSdk=20) protected static int nativePrepareStatement(int connectionPtr, String sql) -
nativePrepareStatement
@Implementation(minSdk=21) protected static long nativePrepareStatement(long connectionPtr, String sql) -
nativeFinalizeStatement
@Implementation(maxSdk=20) protected static void nativeFinalizeStatement(int connectionPtr, int statementPtr) -
nativeFinalizeStatement
@Implementation(minSdk=21) protected static void nativeFinalizeStatement(long connectionPtr, long statementPtr) -
nativeGetParameterCount
@Implementation(maxSdk=20) protected static int nativeGetParameterCount(int connectionPtr, int statementPtr) -
nativeGetParameterCount
@Implementation(minSdk=21) protected static int nativeGetParameterCount(long connectionPtr, long statementPtr) -
nativeIsReadOnly
@Implementation(maxSdk=20) protected static boolean nativeIsReadOnly(int connectionPtr, int statementPtr) -
nativeIsReadOnly
@Implementation(minSdk=21) protected static boolean nativeIsReadOnly(long connectionPtr, long statementPtr) -
nativeExecuteForString
@Implementation(maxSdk=20) protected static String nativeExecuteForString(int connectionPtr, int statementPtr) -
nativeExecuteForString
@Implementation(minSdk=21) protected static String nativeExecuteForString(long connectionPtr, long statementPtr) -
nativeRegisterLocalizedCollators
@Implementation(maxSdk=20) protected static void nativeRegisterLocalizedCollators(int connectionPtr, String locale) -
nativeRegisterLocalizedCollators
@Implementation(minSdk=21) protected static void nativeRegisterLocalizedCollators(long connectionPtr, String locale) -
nativeExecuteForLong
@Implementation(maxSdk=20) protected static long nativeExecuteForLong(int connectionPtr, int statementPtr) -
nativeExecuteForLong
@Implementation(minSdk=21) protected static long nativeExecuteForLong(long connectionPtr, long statementPtr) -
nativeExecute
@Implementation(maxSdk=20) protected static void nativeExecute(int connectionPtr, int statementPtr) -
nativeExecute
@Implementation(minSdk=21, maxSdk=32) protected static void nativeExecute(long connectionPtr, long statementPtr) -
nativeExecute
@Implementation(minSdk=33) protected static void nativeExecute(long connectionPtr, long statementPtr, boolean isPragmaStmt) -
nativeExecuteForChangedRowCount
@Implementation(maxSdk=20) protected static int nativeExecuteForChangedRowCount(int connectionPtr, int statementPtr) -
nativeExecuteForChangedRowCount
@Implementation(minSdk=21) protected static int nativeExecuteForChangedRowCount(long connectionPtr, long statementPtr) -
nativeGetColumnCount
@Implementation(maxSdk=20) protected static int nativeGetColumnCount(int connectionPtr, int statementPtr) -
nativeGetColumnCount
@Implementation(minSdk=21) protected static int nativeGetColumnCount(long connectionPtr, long statementPtr) -
nativeGetColumnName
@Implementation(maxSdk=20) protected static String nativeGetColumnName(int connectionPtr, int statementPtr, int index) -
nativeGetColumnName
@Implementation(minSdk=21) protected static String nativeGetColumnName(long connectionPtr, long statementPtr, int index) -
nativeBindNull
@Implementation(maxSdk=20) protected static void nativeBindNull(int connectionPtr, int statementPtr, int index) -
nativeBindNull
@Implementation(minSdk=21) protected static void nativeBindNull(long connectionPtr, long statementPtr, int index) -
nativeBindLong
@Implementation(maxSdk=20) protected static void nativeBindLong(int connectionPtr, int statementPtr, int index, long value) -
nativeBindLong
@Implementation(minSdk=21) protected static void nativeBindLong(long connectionPtr, long statementPtr, int index, long value) -
nativeBindDouble
@Implementation(maxSdk=20) protected static void nativeBindDouble(int connectionPtr, int statementPtr, int index, double value) -
nativeBindDouble
@Implementation(minSdk=21) protected static void nativeBindDouble(long connectionPtr, long statementPtr, int index, double value) -
nativeBindString
@Implementation(maxSdk=20) protected static void nativeBindString(int connectionPtr, int statementPtr, int index, String value) -
nativeBindString
@Implementation(minSdk=21) protected static void nativeBindString(long connectionPtr, long statementPtr, int index, String value) -
nativeBindBlob
@Implementation(maxSdk=20) protected static void nativeBindBlob(int connectionPtr, int statementPtr, int index, byte[] value) -
nativeBindBlob
@Implementation(minSdk=21) protected static void nativeBindBlob(long connectionPtr, long statementPtr, int index, byte[] value) -
nativeResetStatementAndClearBindings
@Implementation(maxSdk=20) protected static void nativeResetStatementAndClearBindings(int connectionPtr, int statementPtr) -
nativeResetStatementAndClearBindings
@Implementation(minSdk=21) protected static void nativeResetStatementAndClearBindings(long connectionPtr, long statementPtr) -
nativeExecuteForLastInsertedRowId
@Implementation(maxSdk=20) protected static long nativeExecuteForLastInsertedRowId(int connectionPtr, int statementPtr) -
nativeExecuteForLastInsertedRowId
@Implementation(minSdk=21) protected static long nativeExecuteForLastInsertedRowId(long connectionPtr, long statementPtr) -
nativeExecuteForCursorWindow
@Implementation(maxSdk=20) protected static long nativeExecuteForCursorWindow(int connectionPtr, int statementPtr, int windowPtr, int startPos, int requiredPos, boolean countAllRows) -
nativeExecuteForCursorWindow
@Implementation(minSdk=21) protected static long nativeExecuteForCursorWindow(long connectionPtr, long statementPtr, long windowPtr, int startPos, int requiredPos, boolean countAllRows) -
nativeExecuteForBlobFileDescriptor
@Implementation(maxSdk=20) protected static int nativeExecuteForBlobFileDescriptor(int connectionPtr, int statementPtr) -
nativeExecuteForBlobFileDescriptor
@Implementation(minSdk=21) protected static int nativeExecuteForBlobFileDescriptor(long connectionPtr, long statementPtr) -
nativeCancel
-
nativeCancel
-
nativeResetCancel
@Implementation(maxSdk=20) protected static void nativeResetCancel(int connectionPtr, boolean cancelable) -
nativeResetCancel
@Implementation(minSdk=21) protected static void nativeResetCancel(long connectionPtr, boolean cancelable) -
nativeRegisterCustomScalarFunction
@Implementation(minSdk=30) protected static void nativeRegisterCustomScalarFunction(long connectionPtr, String name, UnaryOperator<String> function) -
nativeRegisterCustomAggregateFunction
@Implementation(minSdk=30) protected static void nativeRegisterCustomAggregateFunction(long connectionPtr, String name, BinaryOperator<String> function) -
nativeGetDbLookaside
-
nativeGetDbLookaside
-