[]Struct jni_android_sys::java::sql::Connection

#[repr(transparent)]
pub struct 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]

createStatement

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]

prepareStatement

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]

prepareCall

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]

nativeSQL

Required features: "java-lang-String"

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

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]

getMetaData

Required features: "java-sql-DatabaseMetaData"

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

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]

setCatalog

Required features: "java-lang-String"

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

getCatalog

Required features: "java-lang-String"

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

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

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

getWarnings

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]

createStatement

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]

prepareStatement

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]

prepareCall

Required features: "java-lang-String", "java-sql-CallableStatement"

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

getTypeMap

Required features: "java-util-Map"

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

setTypeMap

Required features: "java-util-Map"

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

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]

setSavepoint

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]

setSavepoint

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]

rollback

Required features: "java-sql-Savepoint"

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

releaseSavepoint

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]

createStatement

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]

prepareStatement

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]

prepareCall

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]

prepareStatement

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]

prepareStatement

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]

prepareStatement

Required features: "java-lang-String", "java-sql-PreparedStatement"

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

createClob

Required features: "java-sql-Clob"

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

createBlob

Required features: "java-sql-Blob"

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

createNClob

Required features: "java-sql-NClob"

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

createSQLXML

Required features: "java-sql-SQLXML"

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

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]

setClientInfo

Required features: "java-lang-String"

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

setClientInfo

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]

getClientInfo

Required features: "java-lang-String"

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

getClientInfo

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]

createArrayOf

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]

createStruct

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]

getClass

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]

equals

Required features: "java-lang-Object"

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

toString

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]

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

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

Trait Implementations

impl AsJValue for Connection

impl AsRef<AutoCloseable> for Connection

impl AsRef<Wrapper> for Connection

impl AsValidJObjectAndEnv for Connection

impl Deref for Connection

type Target = Object

The resulting type after dereferencing.

impl JniType for Connection

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.