[−]Struct jni_android_sys::java::sql::Connection
public interface Connection
Required feature: "java-sql-Connection"
Methods
impl Connection
pub fn createStatement<'env>(
&'env self
) -> Result<Option<Local<'env, Statement>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Statement>>, Local<'env, Throwable>>
Required features: "java-sql-Statement"
pub fn prepareStatement_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, PreparedStatement>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, PreparedStatement>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-sql-PreparedStatement"
pub fn prepareCall_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, CallableStatement>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, CallableStatement>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-sql-CallableStatement"
pub fn nativeSQL<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn setAutoCommit<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn getAutoCommit<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn commit<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn rollback<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn close<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn isClosed<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn getMetaData<'env>(
&'env self
) -> Result<Option<Local<'env, DatabaseMetaData>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, DatabaseMetaData>>, Local<'env, Throwable>>
Required features: "java-sql-DatabaseMetaData"
pub fn setReadOnly<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn isReadOnly<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn setCatalog<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getCatalog<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn setTransactionIsolation<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn getTransactionIsolation<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn getWarnings<'env>(
&'env self
) -> Result<Option<Local<'env, SQLWarning>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, SQLWarning>>, Local<'env, Throwable>>
Required features: "java-sql-SQLWarning"
pub fn clearWarnings<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn createStatement_int_int<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<Option<Local<'env, Statement>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<Option<Local<'env, Statement>>, Local<'env, Throwable>>
Required features: "java-sql-Statement"
pub fn prepareStatement_String_int_int<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: i32
) -> Result<Option<Local<'env, PreparedStatement>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: i32
) -> Result<Option<Local<'env, PreparedStatement>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-sql-PreparedStatement"
pub fn prepareCall_String_int_int<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: i32
) -> Result<Option<Local<'env, CallableStatement>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: i32
) -> Result<Option<Local<'env, CallableStatement>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-sql-CallableStatement"
pub fn getTypeMap<'env>(
&'env self
) -> Result<Option<Local<'env, Map>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Map>>, Local<'env, Throwable>>
Required features: "java-util-Map"
pub fn setTypeMap<'env>(
&'env self,
arg0: impl Into<Option<&'env Map>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Map>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-util-Map"
pub fn setHoldability<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn getHoldability<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn setSavepoint<'env>(
&'env self
) -> Result<Option<Local<'env, Savepoint>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Savepoint>>, Local<'env, Throwable>>
Required features: "java-sql-Savepoint"
pub fn setSavepoint_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Savepoint>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Savepoint>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-sql-Savepoint"
pub fn rollback_Savepoint<'env>(
&'env self,
arg0: impl Into<Option<&'env Savepoint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Savepoint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-sql-Savepoint"
pub fn releaseSavepoint<'env>(
&'env self,
arg0: impl Into<Option<&'env Savepoint>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Savepoint>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-sql-Savepoint"
pub fn createStatement_int_int_int<'env>(
&'env self,
arg0: i32,
arg1: i32,
arg2: i32
) -> Result<Option<Local<'env, Statement>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32,
arg2: i32
) -> Result<Option<Local<'env, Statement>>, Local<'env, Throwable>>
Required features: "java-sql-Statement"
pub fn prepareStatement_String_int_int_int<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<Option<Local<'env, PreparedStatement>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<Option<Local<'env, PreparedStatement>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-sql-PreparedStatement"
pub fn prepareCall_String_int_int_int<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<Option<Local<'env, CallableStatement>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<Option<Local<'env, CallableStatement>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-sql-CallableStatement"
pub fn prepareStatement_String_int<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<Option<Local<'env, PreparedStatement>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<Option<Local<'env, PreparedStatement>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-sql-PreparedStatement"
pub fn prepareStatement_String_int_array<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env IntArray>>
) -> Result<Option<Local<'env, PreparedStatement>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env IntArray>>
) -> Result<Option<Local<'env, PreparedStatement>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-sql-PreparedStatement"
pub fn prepareStatement_String_String_array<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env ObjectArray<String, Throwable>>>
) -> Result<Option<Local<'env, PreparedStatement>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env ObjectArray<String, Throwable>>>
) -> Result<Option<Local<'env, PreparedStatement>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-sql-PreparedStatement"
pub fn createClob<'env>(
&'env self
) -> Result<Option<Local<'env, Clob>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Clob>>, Local<'env, Throwable>>
Required features: "java-sql-Clob"
pub fn createBlob<'env>(
&'env self
) -> Result<Option<Local<'env, Blob>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Blob>>, Local<'env, Throwable>>
Required features: "java-sql-Blob"
pub fn createNClob<'env>(
&'env self
) -> Result<Option<Local<'env, NClob>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, NClob>>, Local<'env, Throwable>>
Required features: "java-sql-NClob"
pub fn createSQLXML<'env>(
&'env self
) -> Result<Option<Local<'env, SQLXML>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, SQLXML>>, Local<'env, Throwable>>
Required features: "java-sql-SQLXML"
pub fn isValid<'env>(
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
pub fn setClientInfo_String_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn setClientInfo_Properties<'env>(
&'env self,
arg0: impl Into<Option<&'env Properties>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Properties>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-util-Properties"
pub fn getClientInfo_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getClientInfo<'env>(
&'env self
) -> Result<Option<Local<'env, Properties>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Properties>>, Local<'env, Throwable>>
Required features: "java-util-Properties"
pub fn createArrayOf<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env ObjectArray<Object, Throwable>>>
) -> Result<Option<Local<'env, Array>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env ObjectArray<Object, Throwable>>>
) -> Result<Option<Local<'env, Array>>, Local<'env, Throwable>>
Required features: "java-lang-Object", "java-lang-String", "java-sql-Array"
pub fn createStruct<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env ObjectArray<Object, Throwable>>>
) -> Result<Option<Local<'env, Struct>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env ObjectArray<Object, Throwable>>>
) -> Result<Option<Local<'env, Struct>>, Local<'env, Throwable>>
Required features: "java-lang-Object", "java-lang-String", "java-sql-Struct"
pub const TRANSACTION_NONE: i32
[src]
public static final TRANSACTION_NONE
pub const TRANSACTION_READ_COMMITTED: i32
[src]
public static final TRANSACTION_READ_COMMITTED
pub const TRANSACTION_READ_UNCOMMITTED: i32
[src]
public static final TRANSACTION_READ_UNCOMMITTED
pub const TRANSACTION_REPEATABLE_READ: i32
[src]
public static final TRANSACTION_REPEATABLE_READ
pub const TRANSACTION_SERIALIZABLE: i32
[src]
public static final TRANSACTION_SERIALIZABLE
Methods from Deref<Target = Object>
pub fn getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
Required features: "java-lang-Class"
pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn wait_long<'env>(
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for Connection
impl AsRef<AutoCloseable> for Connection
fn as_ref(&self) -> &AutoCloseable
impl AsRef<Wrapper> for Connection
impl AsValidJObjectAndEnv for Connection
impl Deref for Connection
impl JniType for Connection
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for Connection
impl !Send for Connection
impl !Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,