[−]Struct jni_android_sys::android::database::sqlite::SQLiteDatabase
public final class SQLiteDatabase
Required feature: android-database-sqlite-SQLiteDatabase
Methods
impl SQLiteDatabase
pub fn release_memory<'env>(__jni_env: &'env Env) -> Result<i32>[src]
pub fn set_locking_enabled<'env>(&'env self, arg0: bool) -> Result<()>[src]
pub fn begin_transaction<'env>(&'env self) -> Result<()>[src]
pub fn begin_transaction_non_exclusive<'env>(&'env self) -> Result<()>[src]
pub fn begin_transaction_with_listener<'env>(
&'env self,
arg0: impl Into<Option<&'env SQLiteTransactionListener>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env SQLiteTransactionListener>>
) -> Result<()>
Required features: "android-database-sqlite-SQLiteTransactionListener"
pub fn begin_transaction_with_listener_non_exclusive<'env>(
&'env self,
arg0: impl Into<Option<&'env SQLiteTransactionListener>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env SQLiteTransactionListener>>
) -> Result<()>
beginTransactionWithListenerNonExclusive
Required features: "android-database-sqlite-SQLiteTransactionListener"
pub fn end_transaction<'env>(&'env self) -> Result<()>[src]
pub fn set_transaction_successful<'env>(&'env self) -> Result<()>[src]
pub fn in_transaction<'env>(&'env self) -> Result<bool>[src]
pub fn is_db_locked_by_current_thread<'env>(&'env self) -> Result<bool>[src]
pub fn is_db_locked_by_other_threads<'env>(&'env self) -> Result<bool>[src]
pub fn yield_if_contended<'env>(&'env self) -> Result<bool>[src]
pub fn yield_if_contended_safely<'env>(&'env self) -> Result<bool>[src]
pub fn yield_if_contended_safely_long<'env>(
&'env self,
arg0: i64
) -> Result<bool>[src]
&'env self,
arg0: i64
) -> Result<bool>
pub fn get_synced_tables<'env>(&'env self) -> Result<Option<Local<'env, Map>>>[src]
Required features: "java-util-Map"
pub fn open_database_string_cursor_factory_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>>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env SQLiteDatabase_CursorFactory>>,
arg2: i32
) -> Result<Option<Local<'env, SQLiteDatabase>>>
Required features: "android-database-sqlite-SQLiteDatabase", "android-database-sqlite-SQLiteDatabase_CursorFactory", "java-lang-String"
pub fn open_database_file_open_params<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env File>>,
arg1: impl Into<Option<&'env SQLiteDatabase_OpenParams>>
) -> Result<Option<Local<'env, SQLiteDatabase>>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env File>>,
arg1: impl Into<Option<&'env SQLiteDatabase_OpenParams>>
) -> Result<Option<Local<'env, SQLiteDatabase>>>
Required features: "android-database-sqlite-SQLiteDatabase", "android-database-sqlite-SQLiteDatabase_OpenParams", "java-io-File"
pub fn open_database_string_cursor_factory_int_database_error_handler<'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>>>[src]
__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>>>
Required features: "android-database-DatabaseErrorHandler", "android-database-sqlite-SQLiteDatabase", "android-database-sqlite-SQLiteDatabase_CursorFactory", "java-lang-String"
pub fn open_or_create_database_file_cursor_factory<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env File>>,
arg1: impl Into<Option<&'env SQLiteDatabase_CursorFactory>>
) -> Result<Option<Local<'env, SQLiteDatabase>>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env File>>,
arg1: impl Into<Option<&'env SQLiteDatabase_CursorFactory>>
) -> Result<Option<Local<'env, SQLiteDatabase>>>
Required features: "android-database-sqlite-SQLiteDatabase", "android-database-sqlite-SQLiteDatabase_CursorFactory", "java-io-File"
pub fn open_or_create_database_string_cursor_factory<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env SQLiteDatabase_CursorFactory>>
) -> Result<Option<Local<'env, SQLiteDatabase>>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env SQLiteDatabase_CursorFactory>>
) -> Result<Option<Local<'env, SQLiteDatabase>>>
Required features: "android-database-sqlite-SQLiteDatabase", "android-database-sqlite-SQLiteDatabase_CursorFactory", "java-lang-String"
pub fn open_or_create_database_string_cursor_factory_database_error_handler<'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>>>[src]
__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>>>
Required features: "android-database-DatabaseErrorHandler", "android-database-sqlite-SQLiteDatabase", "android-database-sqlite-SQLiteDatabase_CursorFactory", "java-lang-String"
pub fn delete_database<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env File>>
) -> Result<bool>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env File>>
) -> Result<bool>
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>>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env SQLiteDatabase_CursorFactory>>
) -> Result<Option<Local<'env, SQLiteDatabase>>>
Required features: "android-database-sqlite-SQLiteDatabase", "android-database-sqlite-SQLiteDatabase_CursorFactory"
pub fn create_in_memory<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env SQLiteDatabase_OpenParams>>
) -> Result<Option<Local<'env, SQLiteDatabase>>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env SQLiteDatabase_OpenParams>>
) -> Result<Option<Local<'env, SQLiteDatabase>>>
Required features: "android-database-sqlite-SQLiteDatabase", "android-database-sqlite-SQLiteDatabase_OpenParams"
pub fn get_version<'env>(&'env self) -> Result<i32>[src]
pub fn set_version<'env>(&'env self, arg0: i32) -> Result<()>[src]
pub fn get_maximum_size<'env>(&'env self) -> Result<i64>[src]
pub fn set_maximum_size<'env>(&'env self, arg0: i64) -> Result<i64>[src]
pub fn get_page_size<'env>(&'env self) -> Result<i64>[src]
pub fn set_page_size<'env>(&'env self, arg0: i64) -> Result<()>[src]
pub fn mark_table_syncable_string_string<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<()>
Required features: "java-lang-String"
pub fn mark_table_syncable_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<()>[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env String>>
) -> Result<()>
Required features: "java-lang-String"
pub fn find_edit_table<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>>
Required features: "java-lang-String"
pub fn compile_statement<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, SQLiteStatement>>>[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, SQLiteStatement>>>
Required features: "android-database-sqlite-SQLiteStatement", "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>[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env ContentValues>>
) -> Result<i64>
Required features: "android-content-ContentValues", "java-lang-String"
pub fn insert_or_throw<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env ContentValues>>
) -> Result<i64>[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env ContentValues>>
) -> Result<i64>
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>[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env ContentValues>>
) -> Result<i64>
Required features: "android-content-ContentValues", "java-lang-String"
pub fn replace_or_throw<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env ContentValues>>
) -> Result<i64>[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env ContentValues>>
) -> Result<i64>
Required features: "android-content-ContentValues", "java-lang-String"
pub fn insert_with_on_conflict<'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>[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env ContentValues>>,
arg3: i32
) -> Result<i64>
Required features: "android-content-ContentValues", "java-lang-String"
pub fn exec_sql_string<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<()>
Required features: "java-lang-String"
pub fn validate_sql<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env CancellationSignal>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env CancellationSignal>>
) -> Result<()>
Required features: "android-os-CancellationSignal", "java-lang-String"
pub fn is_read_only<'env>(&'env self) -> Result<bool>[src]
pub fn is_open<'env>(&'env self) -> Result<bool>[src]
pub fn need_upgrade<'env>(&'env self, arg0: i32) -> Result<bool>[src]
pub fn get_path<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]
Required features: "java-lang-String"
pub fn set_locale<'env>(
&'env self,
arg0: impl Into<Option<&'env Locale>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Locale>>
) -> Result<()>
Required features: "java-util-Locale"
pub fn set_max_sql_cache_size<'env>(&'env self, arg0: i32) -> Result<()>[src]
pub fn set_foreign_key_constraints_enabled<'env>(
&'env self,
arg0: bool
) -> Result<()>[src]
&'env self,
arg0: bool
) -> Result<()>
pub fn enable_write_ahead_logging<'env>(&'env self) -> Result<bool>[src]
pub fn disable_write_ahead_logging<'env>(&'env self) -> Result<()>[src]
pub fn is_write_ahead_logging_enabled<'env>(&'env self) -> Result<bool>[src]
pub fn get_attached_dbs<'env>(&'env self) -> Result<Option<Local<'env, List>>>[src]
Required features: "java-util-List"
pub fn is_database_integrity_ok<'env>(&'env self) -> Result<bool>[src]
pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]
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 acquire_reference<'env>(&'env self) -> Result<()>[src]
pub fn release_reference<'env>(&'env self) -> Result<()>[src]
pub fn release_reference_from_container<'env>(&'env self) -> Result<()>[src]
pub fn close<'env>(&'env self) -> Result<()>[src]
Trait Implementations
impl Deref for SQLiteDatabase
type Target = SQLiteClosable
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
impl AsValidJObjectAndEnv for SQLiteDatabase
impl AsJValue for SQLiteDatabase
Auto Trait Implementations
impl !Sync for SQLiteDatabase
impl Unpin for SQLiteDatabase
impl !Send for SQLiteDatabase
impl UnwindSafe for SQLiteDatabase
impl RefUnwindSafe for SQLiteDatabase
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,