Udostępnij za pośrednictwem


IPooledConnection.AddStatementEventListener(IStatementEventListener) Method

Definition

Registers a StatementEventListener with this PooledConnection object.

[Android.Runtime.Register("addStatementEventListener", "(Ljavax/sql/StatementEventListener;)V", "GetAddStatementEventListener_Ljavax_sql_StatementEventListener_Handler:Javax.Sql.IPooledConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void AddStatementEventListener (Javax.Sql.IStatementEventListener? listener);
[<Android.Runtime.Register("addStatementEventListener", "(Ljavax/sql/StatementEventListener;)V", "GetAddStatementEventListener_Ljavax_sql_StatementEventListener_Handler:Javax.Sql.IPooledConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member AddStatementEventListener : Javax.Sql.IStatementEventListener -> unit

Parameters

listener
IStatementEventListener

an component which implements the StatementEventListener interface that is to be registered with this PooledConnection object <p>

Attributes

Remarks

Registers a StatementEventListener with this PooledConnection object. Components that wish to be notified when PreparedStatements created by the connection are closed or are detected to be invalid may use this method to register a StatementEventListener with this PooledConnection object.

Added in 1.6.

Java documentation for javax.sql.PooledConnection.addStatementEventListener(javax.sql.StatementEventListener).

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