Name
ConnectionEvent
Synopsis
Provides information about a pooled connection when an event occurs on the connection. If the event is an error event, ConnectionEvent
includes the SQLException
that is about to be thrown to the application.
public class ConnectionEvent extends java.util.EventObject { // Public Constructors public ConnectionEvent( PooledConnection con); public ConnectionEvent(PooledConnection con, java.sql.SQLException ex); // Public Instance Methods public java.sql.SQLException getSQLException(); }
Passed To
javax.sql.ConnectionEventListener.{connectionClosed()
, connectionErrorOccurred()}
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.