Class Connection
public class Connection : JVMBridgeBase<Connection>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IConnection
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Connection>Connection
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<Connection>.SExecuteWithSignature<TReturn>(IJavaType, string, string, params object[])JVMBridgeBase<Connection>.SExecuteWithSignature<TNewClass, TReturn>(string, string, params object[])JVMBridgeBase<Connection>.IsAssignableFrom(IJavaType)JVMBridgeBase<Connection>.IsAssignableFrom<T>()JVMBridgeBase<Connection>.Execute<T>(params T[])JVMBridgeBase<Connection>.DynBridgeClazzJVMBridgeBase<Connection>.BridgeClazzJVMBridgeBase.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.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.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
https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/Connection.html#getAutoCommit() https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/Connection.html#setAutoCommit(boolean)
public bool AutoCommit { get; set; }
Property Value
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
Catalog
https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/Connection.html#getCatalog() https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/Connection.html#setCatalog(java.lang.String)
public String Catalog { get; set; }
Property Value
ClientInfo
https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/Connection.html#getClientInfo() https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/Connection.html#setClientInfo(java.util.Properties)
public Properties ClientInfo { get; set; }
Property Value
Holdability
https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/Connection.html#getHoldability() https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/Connection.html#setHoldability(int)
public int Holdability { get; set; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
MetaData
public DatabaseMetaData MetaData { get; }
Property Value
NetworkTimeout
public int NetworkTimeout { get; }
Property Value
Schema
https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/Connection.html#getSchema() https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/Connection.html#setSchema(java.lang.String)
public String Schema { get; set; }
Property Value
TRANSACTION_NONE
public static int TRANSACTION_NONE { get; }
Property Value
TRANSACTION_READ_COMMITTED
public static int TRANSACTION_READ_COMMITTED { get; }
Property Value
TRANSACTION_READ_UNCOMMITTED
public static int TRANSACTION_READ_UNCOMMITTED { get; }
Property Value
TRANSACTION_REPEATABLE_READ
public static int TRANSACTION_REPEATABLE_READ { get; }
Property Value
TRANSACTION_SERIALIZABLE
public static int TRANSACTION_SERIALIZABLE { get; }
Property Value
TransactionIsolation
https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/Connection.html#getTransactionIsolation() https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/Connection.html#setTransactionIsolation(int)
public int TransactionIsolation { get; set; }
Property Value
TypeMap
https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/Connection.html#getTypeMap() https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/Connection.html#setTypeMap(java.util.Map)
public Map<String, Class> TypeMap { get; set; }
Property Value
Warnings
public SQLWarning Warnings { get; }
Property Value
Methods
Abort(Executor)
public void Abort(Executor arg0)
Parameters
Exceptions
BeginRequest()
public void BeginRequest()
Exceptions
ClearWarnings()
https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/Connection.html#clearWarnings()
public void ClearWarnings()
Exceptions
Close()
public void Close()
Exceptions
Commit()
public void Commit()
Exceptions
CreateArrayOf(String, object[])
public Array CreateArrayOf(String arg0, object[] arg1)
Parameters
Returns
Exceptions
CreateBlob()
public Blob CreateBlob()
Returns
Exceptions
CreateClob()
public Clob CreateClob()
Returns
Exceptions
CreateNClob()
public NClob CreateNClob()
Returns
Exceptions
CreateSQLXML()
public SQLXML CreateSQLXML()
Returns
Exceptions
CreateStatement()
public Statement CreateStatement()
Returns
Exceptions
CreateStatement(int, int)
public Statement CreateStatement(int arg0, int arg1)
Parameters
Returns
Exceptions
CreateStatement(int, int, int)
public Statement CreateStatement(int arg0, int arg1, int arg2)
Parameters
Returns
Exceptions
CreateStruct(String, object[])
public Struct CreateStruct(String arg0, object[] arg1)
Parameters
Returns
Exceptions
EndRequest()
public void EndRequest()
Exceptions
GetClientInfo(String)
public String GetClientInfo(String arg0)
Parameters
Returns
Exceptions
IsClosed()
public bool IsClosed()
Returns
Exceptions
IsReadOnly()
public bool IsReadOnly()
Returns
Exceptions
IsValid(int)
public bool IsValid(int arg0)
Parameters
Returns
Exceptions
NativeSQL(String)
public String NativeSQL(String arg0)
Parameters
Returns
Exceptions
PrepareCall(String)
public CallableStatement PrepareCall(String arg0)
Parameters
Returns
Exceptions
PrepareCall(String, int, int)
public CallableStatement PrepareCall(String arg0, int arg1, int arg2)
Parameters
Returns
Exceptions
PrepareCall(String, int, int, int)
public CallableStatement PrepareCall(String arg0, int arg1, int arg2, int arg3)
Parameters
Returns
Exceptions
PrepareStatement(String)
public PreparedStatement PrepareStatement(String arg0)
Parameters
Returns
Exceptions
PrepareStatement(String, String[])
public PreparedStatement PrepareStatement(String arg0, String[] arg1)
Parameters
Returns
Exceptions
PrepareStatement(String, int)
public PreparedStatement PrepareStatement(String arg0, int arg1)
Parameters
Returns
Exceptions
PrepareStatement(String, int, int)
public PreparedStatement PrepareStatement(String arg0, int arg1, int arg2)
Parameters
Returns
Exceptions
PrepareStatement(String, int, int, int)
public PreparedStatement PrepareStatement(String arg0, int arg1, int arg2, int arg3)
Parameters
Returns
Exceptions
PrepareStatement(String, int[])
public PreparedStatement PrepareStatement(String arg0, int[] arg1)
Parameters
Returns
Exceptions
ReleaseSavepoint(Savepoint)
public void ReleaseSavepoint(Savepoint arg0)
Parameters
Exceptions
Rollback()
public void Rollback()
Exceptions
Rollback(Savepoint)
public void Rollback(Savepoint arg0)
Parameters
Exceptions
SetClientInfo(String, String)
public void SetClientInfo(String arg0, String arg1)
Parameters
Exceptions
SetNetworkTimeout(Executor, int)
public void SetNetworkTimeout(Executor arg0, int arg1)
Parameters
Exceptions
SetReadOnly(bool)
public void SetReadOnly(bool arg0)
Parameters
Exceptions
SetSavepoint()
public Savepoint SetSavepoint()
Returns
Exceptions
SetSavepoint(String)
public Savepoint SetSavepoint(String arg0)
Parameters
Returns
Exceptions
SetShardingKey(ShardingKey)
public void SetShardingKey(ShardingKey arg0)
Parameters
arg0
ShardingKey
Exceptions
SetShardingKey(ShardingKey, ShardingKey)
public void SetShardingKey(ShardingKey arg0, ShardingKey arg1)
Parameters
arg0
ShardingKeyarg1
ShardingKey
Exceptions
SetShardingKeyIfValid(ShardingKey, ShardingKey, int)
public bool SetShardingKeyIfValid(ShardingKey arg0, ShardingKey arg1, int arg2)
Parameters
arg0
ShardingKeyarg1
ShardingKeyarg2
int
Returns
Exceptions
SetShardingKeyIfValid(ShardingKey, int)
public bool SetShardingKeyIfValid(ShardingKey arg0, int arg1)
Parameters
arg0
ShardingKeyarg1
int
Returns
Exceptions
Operators
implicit operator AutoCloseable(Connection)
Converter from Connection to AutoCloseable
public static implicit operator AutoCloseable(Connection t)
Parameters
Returns
implicit operator Wrapper(Connection)
Converter from Connection to Wrapper
public static implicit operator Wrapper(Connection t)