Class ConnectionEventListener
Listener for https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/javax/sql/ConnectionEventListener.html. Extends JVMBridgeListener, implements IConnectionEventListener
public class ConnectionEventListener : EventListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IEventListener, IConnectionEventListener, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
ConnectionEventListener
- Implements
- Derived
- Inherited Members
- Extension Methods
Remarks
Remember to Dispose the object otherwise there is a resource leak, the object contains a reference to the the corresponding JVM object
Constructors
ConnectionEventListener()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public ConnectionEventListener()
ConnectionEventListener(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
public ConnectionEventListener(params object[] args)
Parameters
args
object[]
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
OnConnectionClosed
public Action<ConnectionEvent> OnConnectionClosed { get; set; }
Property Value
Remarks
If OnConnectionClosed has a value it takes precedence over corresponding class method
OnConnectionErrorOccurred
public Action<ConnectionEvent> OnConnectionErrorOccurred { get; set; }
Property Value
Remarks
If OnConnectionErrorOccurred has a value it takes precedence over corresponding class method
Methods
ConnectionClosed(ConnectionEvent)
public virtual void ConnectionClosed(ConnectionEvent arg0)
Parameters
ConnectionErrorOccurred(ConnectionEvent)
public virtual void ConnectionErrorOccurred(ConnectionEvent arg0)
Parameters
InitializeHandlers()
Handlers initializer for ConnectionEventListener
protected virtual void InitializeHandlers()