다음을 통해 공유


StatementEvent Constructors

Definition

Overloads

StatementEvent(IPooledConnection, IPreparedStatement)

Constructs a StatementEvent with the specified PooledConnection and PreparedStatement.

StatementEvent(IntPtr, JniHandleOwnership)

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

StatementEvent(IPooledConnection, IPreparedStatement, SQLException)

Constructs a StatementEvent with the specified PooledConnection, PreparedStatement and SQLException

StatementEvent(IPooledConnection, IPreparedStatement)

Constructs a StatementEvent with the specified PooledConnection and PreparedStatement.

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

Parameters

con
IPooledConnection

The PooledConnection that the closed or invalid PreparedStatementis associated with.

statement
IPreparedStatement

The PreparedStatement that is bieng closed or is invalid <p>

Attributes

Remarks

Constructs a StatementEvent with the specified PooledConnection and PreparedStatement. The SQLException contained in the event defaults to null.

Added in 1.6.

Java documentation for javax.sql.StatementEvent.StatementEvent(javax.sql.PooledConnection, java.sql.PreparedStatement).

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

StatementEvent(IntPtr, JniHandleOwnership)

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

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

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

StatementEvent(IPooledConnection, IPreparedStatement, SQLException)

Constructs a StatementEvent with the specified PooledConnection, PreparedStatement and SQLException

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

Parameters

con
IPooledConnection

The PooledConnection that the closed or invalid PreparedStatement is associated with.

statement
IPreparedStatement

The PreparedStatement that is being closed or is invalid

exception
SQLException

The SQLException the driver is about to throw to the application

Attributes

Remarks

Constructs a StatementEvent with the specified PooledConnection, PreparedStatement and SQLException

Added in 1.6.

Java documentation for javax.sql.StatementEvent.StatementEvent(javax.sql.PooledConnection, java.sql.PreparedStatement, 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