Package javax.sql

Examples of javax.sql.ConnectionEventListener.connectionClosed()


          .nextElement();
      ConnectionEventListener connectioneventlistener1 = (ConnectionEventListener) this.eventListeners
          .get(connectioneventlistener);

      if (eventType == CONNECTION_CLOSED_EVENT) {
        connectioneventlistener1.connectionClosed(connectionevent);
      } else if (eventType == CONNECTION_ERROR_EVENT) {
        connectioneventlistener1
            .connectionErrorOccurred(connectionevent);
      }
    }
View Full Code Here


            try {
                for (Iterator it = listeners_.iterator(); it.hasNext(); ) {
                    final ConnectionEventListener listener =
                        (ConnectionEventListener) it.next();
                    if (exception == null) {
                        listener.connectionClosed(event);
                    } else {
                        listener.connectionErrorOccurred(event);
                    }
                }
            } finally {
View Full Code Here

            Iterator listeners = connectionEventListeners.iterator();

            while (listeners.hasNext()) {
                ConnectionEventListener nextListener = (ConnectionEventListener) listeners
                        .next();
                nextListener.connectionClosed(closedEvent);
            }
        }
    }
}
View Full Code Here

            try {
                for (Iterator it = eventListener.iterator(); it.hasNext();) {
                    ConnectionEventListener l =
                            (ConnectionEventListener) it.next();
                    if (exception == null) {
                        l.connectionClosed(event);
                    } else {
                        l.connectionErrorOccurred(event);
                    }
                }
            } finally {
View Full Code Here

        for (int i = 0; i < listeners.size(); i++) {
            ConnectionEventListener connectionEventListener =
                (ConnectionEventListener) listeners.get(i);

            connectionEventListener.connectionClosed(event);
        }
    }

    synchronized public void connectionErrorOccured(SQLException e) {
View Full Code Here

      ConnectionEventListener connectioneventlistener = (ConnectionEventListener) ((Map.Entry)iterator
          .next()).getValue();

      if (eventType == CONNECTION_CLOSED_EVENT) {
        connectioneventlistener.connectionClosed(connectionevent);
      } else if (eventType == CONNECTION_ERROR_EVENT) {
        connectioneventlistener
            .connectionErrorOccurred(connectionevent);
      }
    }
View Full Code Here

            Iterator listeners = connectionEventListeners.iterator();

            while (listeners.hasNext()) {
                ConnectionEventListener nextListener = (ConnectionEventListener) listeners
                        .next();
                nextListener.connectionClosed(closedEvent);
            }
        }
    }
}
View Full Code Here

    private void fireCloseEvent() {
        if (log.isDebugEnabled()) { log.debug("notifying " + connectionEventListeners.size() + " connectionEventListeners(s) about closing of " + this); }
        for (int i = 0; i < connectionEventListeners.size(); i++) {
            ConnectionEventListener connectionEventListener = connectionEventListeners.get(i);
            connectionEventListener.connectionClosed(new ConnectionEvent((PooledConnection) delegate));
        }
    }

    public boolean equals(Object obj) {
        if (!(obj instanceof LrcXAConnectionJavaProxy))
View Full Code Here

        for (int i = 0; i < listeners.size(); i++) {
            ConnectionEventListener connectionEventListener =
                (ConnectionEventListener) listeners.get(i);

            connectionEventListener.connectionClosed(event);
        }
    }

    synchronized public void connectionErrorOccured(SQLException e) {
View Full Code Here

      for (Enumeration e = eventListener.elements();
         e.hasMoreElements(); )
      {
        ConnectionEventListener l =
          (ConnectionEventListener)e.nextElement();
        l.connectionClosed(closeEvent);
      }
    }
  }

  protected final void checkActive() throws SQLException {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.