Compartir a través de


ConnectionEvent Constructors

Definition

Overloads

ConnectionEvent(IPooledConnection)

Constructs a ConnectionEvent object initialized with the given PooledConnection object.

ConnectionEvent(IPooledConnection, SQLException)

Constructs a ConnectionEvent object initialized with the given PooledConnection object and SQLException object.

ConnectionEvent(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

ConnectionEvent(IPooledConnection)

Constructs a ConnectionEvent object initialized with the given PooledConnection object.

[Android.Runtime.Register(".ctor", "(Ljavax/sql/PooledConnection;)V", "")]
public ConnectionEvent (Javax.Sql.IPooledConnection? con);
[<Android.Runtime.Register(".ctor", "(Ljavax/sql/PooledConnection;)V", "")>]
new Javax.Sql.ConnectionEvent : Javax.Sql.IPooledConnection -> Javax.Sql.ConnectionEvent

Parameters

con
IPooledConnection

the pooled connection that is the source of the event

Attributes

Remarks

Constructs a ConnectionEvent object initialized with the given PooledConnection object. SQLException defaults to null.

Java documentation for javax.sql.ConnectionEvent.ConnectionEvent(javax.sql.PooledConnection).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ConnectionEvent(IPooledConnection, SQLException)

Constructs a ConnectionEvent object initialized with the given PooledConnection object and SQLException object.

[Android.Runtime.Register(".ctor", "(Ljavax/sql/PooledConnection;Ljava/sql/SQLException;)V", "")]
public ConnectionEvent (Javax.Sql.IPooledConnection? con, Java.Sql.SQLException? ex);
[<Android.Runtime.Register(".ctor", "(Ljavax/sql/PooledConnection;Ljava/sql/SQLException;)V", "")>]
new Javax.Sql.ConnectionEvent : Javax.Sql.IPooledConnection * Java.Sql.SQLException -> Javax.Sql.ConnectionEvent

Parameters

con
IPooledConnection

the pooled connection that is the source of the event

ex
SQLException

the SQLException about to be thrown to the application

Attributes

Remarks

Constructs a ConnectionEvent object initialized with the given PooledConnection object and SQLException object.

Java documentation for javax.sql.ConnectionEvent.ConnectionEvent(javax.sql.PooledConnection, java.sql.SQLException).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ConnectionEvent(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected ConnectionEvent (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Javax.Sql.ConnectionEvent : nativeint * Android.Runtime.JniHandleOwnership -> Javax.Sql.ConnectionEvent

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to