[]Struct jni_android_sys::android::database::sqlite::SQLiteDatabase

#[repr(transparent)]
pub struct SQLiteDatabase(_);

public final class SQLiteDatabase

Required feature: "android-database-sqlite-SQLiteDatabase"

Methods

impl SQLiteDatabase

pub fn releaseMemory<'env>(
    __jni_env: &'env Env
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn setLockingEnabled<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

Deprecated

pub fn beginTransaction<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn beginTransactionNonExclusive<'env>(
    &'env self
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn beginTransactionWithListener<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SQLiteTransactionListener>>
) -> Result<(), Local<'env, Throwable>>
[src]

beginTransactionWithListener

Required features: "android-database-sqlite-SQLiteTransactionListener"

pub fn beginTransactionWithListenerNonExclusive<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SQLiteTransactionListener>>
) -> Result<(), Local<'env, Throwable>>
[src]

beginTransactionWithListenerNonExclusive

Required features: "android-database-sqlite-SQLiteTransactionListener"

pub fn endTransaction<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn setTransactionSuccessful<'env>(
    &'env self
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn inTransaction<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn isDbLockedByCurrentThread<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn isDbLockedByOtherThreads<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

Deprecated

pub fn yieldIfContended<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

Deprecated

pub fn yieldIfContendedSafely<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn yieldIfContendedSafely_long<'env>(
    &'env self,
    arg0: i64
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn getSyncedTables<'env>(
    &'env self
) -> Result<Option<Local<'env, Map>>, Local<'env, Throwable>>
[src]

Deprecated

getSyncedTables

Required features: "java-util-Map"

pub fn openDatabase_String_CursorFactory_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env SQLiteDatabase_CursorFactory>>,
    arg2: i32
) -> Result<Option<Local<'env, SQLiteDatabase>>, Local<'env, Throwable>>
[src]

openDatabase

Required features: "android-database-sqlite-SQLiteDatabase", "android-database-sqlite-SQLiteDatabase_CursorFactory", "java-lang-String"

pub fn openDatabase_File_OpenParams<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env File>>,
    arg1: impl Into<Option<&'env SQLiteDatabase_OpenParams>>
) -> Result<Option<Local<'env, SQLiteDatabase>>, Local<'env, Throwable>>
[src]

openDatabase

Required features: "android-database-sqlite-SQLiteDatabase", "android-database-sqlite-SQLiteDatabase_OpenParams", "java-io-File"

pub fn openDatabase_String_CursorFactory_int_DatabaseErrorHandler<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env SQLiteDatabase_CursorFactory>>,
    arg2: i32,
    arg3: impl Into<Option<&'env DatabaseErrorHandler>>
) -> Result<Option<Local<'env, SQLiteDatabase>>, Local<'env, Throwable>>
[src]

openDatabase

Required features: "android-database-DatabaseErrorHandler", "android-database-sqlite-SQLiteDatabase", "android-database-sqlite-SQLiteDatabase_CursorFactory", "java-lang-String"

pub fn openOrCreateDatabase_File_CursorFactory<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env File>>,
    arg1: impl Into<Option<&'env SQLiteDatabase_CursorFactory>>
) -> Result<Option<Local<'env, SQLiteDatabase>>, Local<'env, Throwable>>
[src]

openOrCreateDatabase

Required features: "android-database-sqlite-SQLiteDatabase", "android-database-sqlite-SQLiteDatabase_CursorFactory", "java-io-File"

pub fn openOrCreateDatabase_String_CursorFactory<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env SQLiteDatabase_CursorFactory>>
) -> Result<Option<Local<'env, SQLiteDatabase>>, Local<'env, Throwable>>
[src]

openOrCreateDatabase

Required features: "android-database-sqlite-SQLiteDatabase", "android-database-sqlite-SQLiteDatabase_CursorFactory", "java-lang-String"

pub fn openOrCreateDatabase_String_CursorFactory_DatabaseErrorHandler<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env SQLiteDatabase_CursorFactory>>,
    arg2: impl Into<Option<&'env DatabaseErrorHandler>>
) -> Result<Option<Local<'env, SQLiteDatabase>>, Local<'env, Throwable>>
[src]

openOrCreateDatabase

Required features: "android-database-DatabaseErrorHandler", "android-database-sqlite-SQLiteDatabase", "android-database-sqlite-SQLiteDatabase_CursorFactory", "java-lang-String"

pub fn deleteDatabase<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env File>>
) -> Result<bool, Local<'env, Throwable>>
[src]

deleteDatabase

Required features: "java-io-File"

pub fn create<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env SQLiteDatabase_CursorFactory>>
) -> Result<Option<Local<'env, SQLiteDatabase>>, Local<'env, Throwable>>
[src]

create

Required features: "android-database-sqlite-SQLiteDatabase", "android-database-sqlite-SQLiteDatabase_CursorFactory"

pub fn createInMemory<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env SQLiteDatabase_OpenParams>>
) -> Result<Option<Local<'env, SQLiteDatabase>>, Local<'env, Throwable>>
[src]

createInMemory

Required features: "android-database-sqlite-SQLiteDatabase", "android-database-sqlite-SQLiteDatabase_OpenParams"

pub fn getVersion<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn setVersion<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getMaximumSize<'env>(&'env self) -> Result<i64, Local<'env, Throwable>>[src]

pub fn setMaximumSize<'env>(
    &'env self,
    arg0: i64
) -> Result<i64, Local<'env, Throwable>>
[src]

pub fn getPageSize<'env>(&'env self) -> Result<i64, Local<'env, Throwable>>[src]

pub fn setPageSize<'env>(
    &'env self,
    arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn markTableSyncable_String_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]

Deprecated

markTableSyncable

Required features: "java-lang-String"

pub fn markTableSyncable_String_String_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]

Deprecated

markTableSyncable

Required features: "java-lang-String"

pub fn findEditTable<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

findEditTable

Required features: "java-lang-String"

pub fn compileStatement<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, SQLiteStatement>>, Local<'env, Throwable>>
[src]

compileStatement

Required features: "android-database-sqlite-SQLiteStatement", "java-lang-String"

pub fn query_boolean_String_String_array_String_String_array_String_String_String_String<'env>(
    &'env self,
    arg0: bool,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg3: impl Into<Option<&'env String>>,
    arg4: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg5: impl Into<Option<&'env String>>,
    arg6: impl Into<Option<&'env String>>,
    arg7: impl Into<Option<&'env String>>,
    arg8: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Cursor>>, Local<'env, Throwable>>
[src]

query

Required features: "android-database-Cursor", "java-lang-String"

pub fn query_boolean_String_String_array_String_String_array_String_String_String_String_CancellationSignal<'env>(
    &'env self,
    arg0: bool,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg3: impl Into<Option<&'env String>>,
    arg4: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg5: impl Into<Option<&'env String>>,
    arg6: impl Into<Option<&'env String>>,
    arg7: impl Into<Option<&'env String>>,
    arg8: impl Into<Option<&'env String>>,
    arg9: impl Into<Option<&'env CancellationSignal>>
) -> Result<Option<Local<'env, Cursor>>, Local<'env, Throwable>>
[src]

query

Required features: "android-database-Cursor", "android-os-CancellationSignal", "java-lang-String"

pub fn queryWithFactory_CursorFactory_boolean_String_String_array_String_String_array_String_String_String_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SQLiteDatabase_CursorFactory>>,
    arg1: bool,
    arg2: impl Into<Option<&'env String>>,
    arg3: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg4: impl Into<Option<&'env String>>,
    arg5: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg6: impl Into<Option<&'env String>>,
    arg7: impl Into<Option<&'env String>>,
    arg8: impl Into<Option<&'env String>>,
    arg9: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Cursor>>, Local<'env, Throwable>>
[src]

queryWithFactory

Required features: "android-database-Cursor", "android-database-sqlite-SQLiteDatabase_CursorFactory", "java-lang-String"

pub fn queryWithFactory_CursorFactory_boolean_String_String_array_String_String_array_String_String_String_String_CancellationSignal<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SQLiteDatabase_CursorFactory>>,
    arg1: bool,
    arg2: impl Into<Option<&'env String>>,
    arg3: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg4: impl Into<Option<&'env String>>,
    arg5: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg6: impl Into<Option<&'env String>>,
    arg7: impl Into<Option<&'env String>>,
    arg8: impl Into<Option<&'env String>>,
    arg9: impl Into<Option<&'env String>>,
    arg10: impl Into<Option<&'env CancellationSignal>>
) -> Result<Option<Local<'env, Cursor>>, Local<'env, Throwable>>
[src]

queryWithFactory

Required features: "android-database-Cursor", "android-database-sqlite-SQLiteDatabase_CursorFactory", "android-os-CancellationSignal", "java-lang-String"

pub fn query_String_String_array_String_String_array_String_String_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg2: impl Into<Option<&'env String>>,
    arg3: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg4: impl Into<Option<&'env String>>,
    arg5: impl Into<Option<&'env String>>,
    arg6: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Cursor>>, Local<'env, Throwable>>
[src]

query

Required features: "android-database-Cursor", "java-lang-String"

pub fn query_String_String_array_String_String_array_String_String_String_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg2: impl Into<Option<&'env String>>,
    arg3: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg4: impl Into<Option<&'env String>>,
    arg5: impl Into<Option<&'env String>>,
    arg6: impl Into<Option<&'env String>>,
    arg7: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Cursor>>, Local<'env, Throwable>>
[src]

query

Required features: "android-database-Cursor", "java-lang-String"

pub fn rawQuery_String_String_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env ObjectArray<String, Throwable>>>
) -> Result<Option<Local<'env, Cursor>>, Local<'env, Throwable>>
[src]

rawQuery

Required features: "android-database-Cursor", "java-lang-String"

pub fn rawQuery_String_String_array_CancellationSignal<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg2: impl Into<Option<&'env CancellationSignal>>
) -> Result<Option<Local<'env, Cursor>>, Local<'env, Throwable>>
[src]

rawQuery

Required features: "android-database-Cursor", "android-os-CancellationSignal", "java-lang-String"

pub fn rawQueryWithFactory_CursorFactory_String_String_array_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SQLiteDatabase_CursorFactory>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg3: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Cursor>>, Local<'env, Throwable>>
[src]

rawQueryWithFactory

Required features: "android-database-Cursor", "android-database-sqlite-SQLiteDatabase_CursorFactory", "java-lang-String"

pub fn rawQueryWithFactory_CursorFactory_String_String_array_String_CancellationSignal<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SQLiteDatabase_CursorFactory>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg3: impl Into<Option<&'env String>>,
    arg4: impl Into<Option<&'env CancellationSignal>>
) -> Result<Option<Local<'env, Cursor>>, Local<'env, Throwable>>
[src]

rawQueryWithFactory

Required features: "android-database-Cursor", "android-database-sqlite-SQLiteDatabase_CursorFactory", "android-os-CancellationSignal", "java-lang-String"

pub fn insert<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env ContentValues>>
) -> Result<i64, Local<'env, Throwable>>
[src]

insert

Required features: "android-content-ContentValues", "java-lang-String"

pub fn insertOrThrow<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env ContentValues>>
) -> Result<i64, Local<'env, Throwable>>
[src]

insertOrThrow

Required features: "android-content-ContentValues", "java-lang-String"

pub fn replace<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env ContentValues>>
) -> Result<i64, Local<'env, Throwable>>
[src]

replace

Required features: "android-content-ContentValues", "java-lang-String"

pub fn replaceOrThrow<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env ContentValues>>
) -> Result<i64, Local<'env, Throwable>>
[src]

replaceOrThrow

Required features: "android-content-ContentValues", "java-lang-String"

pub fn insertWithOnConflict<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env ContentValues>>,
    arg3: i32
) -> Result<i64, Local<'env, Throwable>>
[src]

insertWithOnConflict

Required features: "android-content-ContentValues", "java-lang-String"

pub fn delete<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env ObjectArray<String, Throwable>>>
) -> Result<i32, Local<'env, Throwable>>
[src]

delete

Required features: "java-lang-String"

pub fn update<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env ContentValues>>,
    arg2: impl Into<Option<&'env String>>,
    arg3: impl Into<Option<&'env ObjectArray<String, Throwable>>>
) -> Result<i32, Local<'env, Throwable>>
[src]

update

Required features: "android-content-ContentValues", "java-lang-String"

pub fn updateWithOnConflict<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env ContentValues>>,
    arg2: impl Into<Option<&'env String>>,
    arg3: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg4: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

updateWithOnConflict

Required features: "android-content-ContentValues", "java-lang-String"

pub fn execSQL_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]

execSQL

Required features: "java-lang-String"

pub fn execSQL_String_Object_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env ObjectArray<Object, Throwable>>>
) -> Result<(), Local<'env, Throwable>>
[src]

execSQL

Required features: "java-lang-Object", "java-lang-String"

pub fn validateSql<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env CancellationSignal>>
) -> Result<(), Local<'env, Throwable>>
[src]

validateSql

Required features: "android-os-CancellationSignal", "java-lang-String"

pub fn isReadOnly<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn isOpen<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn needUpgrade<'env>(
    &'env self,
    arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn getPath<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getPath

Required features: "java-lang-String"

pub fn setLocale<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Locale>>
) -> Result<(), Local<'env, Throwable>>
[src]

setLocale

Required features: "java-util-Locale"

pub fn setMaxSqlCacheSize<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn setForeignKeyConstraintsEnabled<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn enableWriteAheadLogging<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn disableWriteAheadLogging<'env>(
    &'env self
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn isWriteAheadLoggingEnabled<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn getAttachedDbs<'env>(
    &'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]

getAttachedDbs

Required features: "java-util-List"

pub fn isDatabaseIntegrityOk<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub const CONFLICT_ABORT: i32[src]

public static final CONFLICT_ABORT

pub const CONFLICT_FAIL: i32[src]

public static final CONFLICT_FAIL

pub const CONFLICT_IGNORE: i32[src]

public static final CONFLICT_IGNORE

pub const CONFLICT_NONE: i32[src]

public static final CONFLICT_NONE

pub const CONFLICT_REPLACE: i32[src]

public static final CONFLICT_REPLACE

pub const CONFLICT_ROLLBACK: i32[src]

public static final CONFLICT_ROLLBACK

pub const CREATE_IF_NECESSARY: i32[src]

public static final CREATE_IF_NECESSARY

pub const ENABLE_WRITE_AHEAD_LOGGING: i32[src]

public static final ENABLE_WRITE_AHEAD_LOGGING

pub const MAX_SQL_CACHE_SIZE: i32[src]

public static final MAX_SQL_CACHE_SIZE

pub const NO_LOCALIZED_COLLATORS: i32[src]

public static final NO_LOCALIZED_COLLATORS

pub const OPEN_READONLY: i32[src]

public static final OPEN_READONLY

pub const OPEN_READWRITE: i32[src]

public static final OPEN_READWRITE

pub const SQLITE_MAX_LIKE_PATTERN_LENGTH: i32[src]

public static final SQLITE_MAX_LIKE_PATTERN_LENGTH

Methods from Deref<Target = SQLiteClosable>

pub fn acquireReference<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn releaseReference<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn releaseReferenceFromContainer<'env>(
    &'env self
) -> Result<(), Local<'env, Throwable>>
[src]

Deprecated

pub fn close<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

Trait Implementations

impl AsJValue for SQLiteDatabase

impl AsValidJObjectAndEnv for SQLiteDatabase

impl Deref for SQLiteDatabase

type Target = SQLiteClosable

The resulting type after dereferencing.

impl JniType for SQLiteDatabase

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.