Table of Contents

Class Connection

Namespace
Java.Sql
Assembly
MASES.JNet.dll
public class Connection : JVMBridgeBase<Connection>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IConnection
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

AutoCommit

public bool AutoCommit { get; set; }

Property Value

bool

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

Catalog

public String Catalog { get; set; }

Property Value

String

ClientInfo

public Properties ClientInfo { get; set; }

Property Value

Properties

Holdability

public int Holdability { get; set; }

Property Value

int

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

MetaData

public DatabaseMetaData MetaData { get; }

Property Value

DatabaseMetaData

NetworkTimeout

public int NetworkTimeout { get; }

Property Value

int

Schema

public String Schema { get; set; }

Property Value

String

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

TransactionIsolation

public int TransactionIsolation { get; set; }

Property Value

int

TypeMap

public Map<String, Class> TypeMap { get; set; }

Property Value

Map<String, Class>

Warnings

public SQLWarning Warnings { get; }

Property Value

SQLWarning

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

GetClientInfo(String)

public String GetClientInfo(String arg0)

Parameters

arg0 String

String

Returns

String

String

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

SetClientInfo(String, String)

public void SetClientInfo(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

Exceptions

SQLClientInfoException

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

SetShardingKey(ShardingKey)

public void SetShardingKey(ShardingKey arg0)

Parameters

arg0 ShardingKey

ShardingKey

Exceptions

SQLException

SetShardingKey(ShardingKey, ShardingKey)

public void SetShardingKey(ShardingKey arg0, ShardingKey arg1)

Parameters

arg0 ShardingKey

ShardingKey

arg1 ShardingKey

ShardingKey

Exceptions

SQLException

SetShardingKeyIfValid(ShardingKey, ShardingKey, int)

public bool SetShardingKeyIfValid(ShardingKey arg0, ShardingKey arg1, int arg2)

Parameters

arg0 ShardingKey

ShardingKey

arg1 ShardingKey

ShardingKey

arg2 int

int

Returns

bool

bool

Exceptions

SQLException

SetShardingKeyIfValid(ShardingKey, int)

public bool SetShardingKeyIfValid(ShardingKey arg0, int arg1)

Parameters

arg0 ShardingKey

ShardingKey

arg1 int

int

Returns

bool

bool

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