Liking cljdoc? Tell your friends :D

javax.sql.ConnectionEvent

An Event object that provides information about the source of a connection-related event. ConnectionEvent objects are generated when an application closes a pooled connection and when an error occurs. The ConnectionEvent object contains two kinds of information:

The pooled connection closed by the application In the case of an error event, the SQLException about to be thrown to the application

An Event object that provides information about the
source of a connection-related event.  ConnectionEvent
objects are generated when an application closes a pooled connection
and when an error occurs.  The ConnectionEvent object
contains two kinds of information:

  The pooled connection closed by the application
  In the case of an error event, the SQLException
      about to be thrown to the application
raw docstring

->connection-eventclj

(->connection-event con)
(->connection-event con ex)

Constructor.

Constructs a ConnectionEvent object initialized with the given PooledConnection object and SQLException object.

con - the pooled connection that is the source of the event - javax.sql.PooledConnection ex - the SQLException about to be thrown to the application - java.sql.SQLException

throws: java.lang.IllegalArgumentException - if con is null.

Constructor.

Constructs a ConnectionEvent object initialized with
 the given PooledConnection object and
 SQLException object.

con - the pooled connection that is the source of the event - `javax.sql.PooledConnection`
ex - the SQLException about to be thrown to the application - `java.sql.SQLException`

throws: java.lang.IllegalArgumentException - if con is null.
raw docstring

get-sql-exceptionclj

(get-sql-exception this)

Retrieves the SQLException for this ConnectionEvent object. May be null.

returns: the SQLException about to be thrown or null - java.sql.SQLException

Retrieves the SQLException for this
 ConnectionEvent object. May be null.

returns: the SQLException about to be thrown or null - `java.sql.SQLException`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close