Table of Contents

Class Connection

Namespace
Java.Sql
Assembly
MASES.Netdroid.dll
public class Connection : JVMBridgeBase<Connection>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IConnection, IWrapper, IAutoCloseable
Inheritance
JVMBridgeBase
JVMBridgeBase<Connection>
Connection
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<Connection>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Connection>.IsAssignableFrom<T>()
JVMBridgeBase<Connection>.Execute<T>(params T[])
JVMBridgeBase<Connection>.DynBridgeClazz
JVMBridgeBase<Connection>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

Connection()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("Connection class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Connection()

Connection(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

[Obsolete("Connection class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Connection(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

TRANSACTION_NONE

public static int TRANSACTION_NONE { get; }

Property Value

int

TRANSACTION_READ_COMMITTED

public static int TRANSACTION_READ_COMMITTED { get; }

Property Value

int

TRANSACTION_READ_UNCOMMITTED

public static int TRANSACTION_READ_UNCOMMITTED { get; }

Property Value

int

TRANSACTION_REPEATABLE_READ

public static int TRANSACTION_REPEATABLE_READ { get; }

Property Value

int

TRANSACTION_SERIALIZABLE

public static int TRANSACTION_SERIALIZABLE { get; }

Property Value

int

Methods

Abort(Executor)

public void Abort(Executor arg0)

Parameters

arg0 Executor

Executor

Exceptions

SQLException

BeginRequest()

public void BeginRequest()

Exceptions

SQLException

ClearWarnings()

public void ClearWarnings()

Exceptions

SQLException

Close()

public void Close()

Exceptions

SQLException

Commit()

public void Commit()

Exceptions

SQLException

CreateArrayOf(String, object[])

public Array CreateArrayOf(String arg0, object[] arg1)

Parameters

arg0 String

String

arg1 object[]

object

Returns

Array

Array

Exceptions

SQLException

CreateBlob()

public Blob CreateBlob()

Returns

Blob

Blob

Exceptions

SQLException

CreateClob()

public Clob CreateClob()

Returns

Clob

Clob

Exceptions

SQLException

CreateNClob()

public NClob CreateNClob()

Returns

NClob

NClob

Exceptions

SQLException

CreateSQLXML()

public SQLXML CreateSQLXML()

Returns

SQLXML

SQLXML

Exceptions

SQLException

CreateStatement()

public Statement CreateStatement()

Returns

Statement

Statement

Exceptions

SQLException

CreateStatement(int, int)

public Statement CreateStatement(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

Statement

Statement

Exceptions

SQLException

CreateStatement(int, int, int)

public Statement CreateStatement(int arg0, int arg1, int arg2)

Parameters

arg0 int

int

arg1 int

int

arg2 int

int

Returns

Statement

Statement

Exceptions

SQLException

CreateStruct(String, object[])

public Struct CreateStruct(String arg0, object[] arg1)

Parameters

arg0 String

String

arg1 object[]

object

Returns

Struct

Struct

Exceptions

SQLException

EndRequest()

public void EndRequest()

Exceptions

SQLException

GetAutoCommit()

public bool GetAutoCommit()

Returns

bool

bool

Exceptions

SQLException

GetCatalog()

public String GetCatalog()

Returns

String

String

Exceptions

SQLException

GetClientInfo()

public Properties GetClientInfo()

Returns

Properties

Properties

Exceptions

SQLException

GetClientInfo(String)

public String GetClientInfo(String arg0)

Parameters

arg0 String

String

Returns

String

String

Exceptions

SQLException

GetHoldability()

public int GetHoldability()

Returns

int

int

Exceptions

SQLException

GetMetaData()

public DatabaseMetaData GetMetaData()

Returns

DatabaseMetaData

DatabaseMetaData

Exceptions

SQLException

GetNetworkTimeout()

public int GetNetworkTimeout()

Returns

int

int

Exceptions

SQLException

GetSchema()

public String GetSchema()

Returns

String

String

Exceptions

SQLException

GetTransactionIsolation()

public int GetTransactionIsolation()

Returns

int

int

Exceptions

SQLException

GetTypeMap()

public Map<String, Class> GetTypeMap()

Returns

Map<String, Class>

Map

Exceptions

SQLException

GetWarnings()

public SQLWarning GetWarnings()

Returns

SQLWarning

SQLWarning

Exceptions

SQLException

IsClosed()

public bool IsClosed()

Returns

bool

bool

Exceptions

SQLException

IsReadOnly()

public bool IsReadOnly()

Returns

bool

bool

Exceptions

SQLException

IsValid(int)

public bool IsValid(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

Exceptions

SQLException

NativeSQL(String)

public String NativeSQL(String arg0)

Parameters

arg0 String

String

Returns

String

String

Exceptions

SQLException

PrepareCall(String)

public CallableStatement PrepareCall(String arg0)

Parameters

arg0 String

String

Returns

CallableStatement

CallableStatement

Exceptions

SQLException

PrepareCall(String, int, int)

public CallableStatement PrepareCall(String arg0, int arg1, int arg2)

Parameters

arg0 String

String

arg1 int

int

arg2 int

int

Returns

CallableStatement

CallableStatement

Exceptions

SQLException

PrepareCall(String, int, int, int)

public CallableStatement PrepareCall(String arg0, int arg1, int arg2, int arg3)

Parameters

arg0 String

String

arg1 int

int

arg2 int

int

arg3 int

int

Returns

CallableStatement

CallableStatement

Exceptions

SQLException

PrepareStatement(String)

public PreparedStatement PrepareStatement(String arg0)

Parameters

arg0 String

String

Returns

PreparedStatement

PreparedStatement

Exceptions

SQLException

PrepareStatement(String, String[])

public PreparedStatement PrepareStatement(String arg0, String[] arg1)

Parameters

arg0 String

String

arg1 String[]

String

Returns

PreparedStatement

PreparedStatement

Exceptions

SQLException

PrepareStatement(String, int)

public PreparedStatement PrepareStatement(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

Returns

PreparedStatement

PreparedStatement

Exceptions

SQLException

PrepareStatement(String, int, int)

public PreparedStatement PrepareStatement(String arg0, int arg1, int arg2)

Parameters

arg0 String

String

arg1 int

int

arg2 int

int

Returns

PreparedStatement

PreparedStatement

Exceptions

SQLException

PrepareStatement(String, int, int, int)

public PreparedStatement PrepareStatement(String arg0, int arg1, int arg2, int arg3)

Parameters

arg0 String

String

arg1 int

int

arg2 int

int

arg3 int

int

Returns

PreparedStatement

PreparedStatement

Exceptions

SQLException

PrepareStatement(String, int[])

public PreparedStatement PrepareStatement(String arg0, int[] arg1)

Parameters

arg0 String

String

arg1 int[]

int

Returns

PreparedStatement

PreparedStatement

Exceptions

SQLException

ReleaseSavepoint(Savepoint)

public void ReleaseSavepoint(Savepoint arg0)

Parameters

arg0 Savepoint

Savepoint

Exceptions

SQLException

Rollback()

public void Rollback()

Exceptions

SQLException

Rollback(Savepoint)

public void Rollback(Savepoint arg0)

Parameters

arg0 Savepoint

Savepoint

Exceptions

SQLException

SetAutoCommit(bool)

public void SetAutoCommit(bool arg0)

Parameters

arg0 bool

bool

Exceptions

SQLException

SetCatalog(String)

public void SetCatalog(String arg0)

Parameters

arg0 String

String

Exceptions

SQLException

SetClientInfo(String, String)

public void SetClientInfo(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

Exceptions

SQLClientInfoException

SetClientInfo(Properties)

public void SetClientInfo(Properties arg0)

Parameters

arg0 Properties

Properties

Exceptions

SQLClientInfoException

SetHoldability(int)

public void SetHoldability(int arg0)

Parameters

arg0 int

int

Exceptions

SQLException

SetNetworkTimeout(Executor, int)

public void SetNetworkTimeout(Executor arg0, int arg1)

Parameters

arg0 Executor

Executor

arg1 int

int

Exceptions

SQLException

SetReadOnly(bool)

public void SetReadOnly(bool arg0)

Parameters

arg0 bool

bool

Exceptions

SQLException

SetSavepoint()

public Savepoint SetSavepoint()

Returns

Savepoint

Savepoint

Exceptions

SQLException

SetSavepoint(String)

public Savepoint SetSavepoint(String arg0)

Parameters

arg0 String

String

Returns

Savepoint

Savepoint

Exceptions

SQLException

SetSchema(String)

public void SetSchema(String arg0)

Parameters

arg0 String

String

Exceptions

SQLException

SetTransactionIsolation(int)

public void SetTransactionIsolation(int arg0)

Parameters

arg0 int

int

Exceptions

SQLException

SetTypeMap(Map<String, Class>)

public void SetTypeMap(Map<String, Class> arg0)

Parameters

arg0 Map<String, Class>

Map

Exceptions

SQLException

Operators

implicit operator AutoCloseable(Connection)

Converter from Connection to AutoCloseable

public static implicit operator AutoCloseable(Connection t)

Parameters

t Connection

Returns

AutoCloseable

implicit operator Wrapper(Connection)

Converter from Connection to Wrapper

public static implicit operator Wrapper(Connection t)

Parameters

t Connection

Returns

Wrapper