IConnectionEventListener Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An object that registers to be notified of events generated by a
PooledConnection
object.
[Android.Runtime.Register("javax/sql/ConnectionEventListener", "", "Javax.Sql.IConnectionEventListenerInvoker")]
public interface IConnectionEventListener : IDisposable, Java.Interop.IJavaPeerable, Java.Util.IEventListener
[<Android.Runtime.Register("javax/sql/ConnectionEventListener", "", "Javax.Sql.IConnectionEventListenerInvoker")>]
type IConnectionEventListener = interface
interface IEventListener
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Attributes
- Implements
Remarks
An object that registers to be notified of events generated by a PooledConnection
object.
The ConnectionEventListener
interface is implemented by a connection pooling component. A connection pooling component will usually be provided by a JDBC driver vendor or another system software vendor. A JDBC driver notifies a ConnectionEventListener
object when an application is finished using a pooled connection with which the listener has registered. The notification occurs after the application calls the method close
on its representation of a PooledConnection
object. A ConnectionEventListener
is also notified when a connection error occurs due to the fact that the PooledConnection
is unfit for future use---the server has crashed, for example. The listener is notified by the JDBC driver just before the driver throws an SQLException
to the application using the PooledConnection
object.
Added in 1.4.
Java documentation for javax.sql.ConnectionEventListener
.
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.
Properties
Handle |
Gets the JNI value of the underlying Android object. (Inherited from IJavaObject) |
JniIdentityHashCode |
Returns the value of |
JniManagedPeerState |
State of the managed peer. (Inherited from IJavaPeerable) |
JniPeerMembers |
Member access and invocation support. (Inherited from IJavaPeerable) |
PeerReference |
Returns a JniObjectReference of the wrapped Java object instance. (Inherited from IJavaPeerable) |
Methods
ConnectionClosed(ConnectionEvent) |
Notifies this |
ConnectionErrorOccurred(ConnectionEvent) |
Notifies this |
Disposed() |
Called when the instance has been disposed. (Inherited from IJavaPeerable) |
DisposeUnlessReferenced() |
If there are no outstanding references to this instance, then
calls |
Finalized() |
Called when the instance has been finalized. (Inherited from IJavaPeerable) |
SetJniIdentityHashCode(Int32) |
Set the value returned by |
SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from IJavaPeerable) |
SetPeerReference(JniObjectReference) |
Set the value returned by |
UnregisterFromRuntime() |
Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations. (Inherited from IJavaPeerable) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |