Package javax.sql

Examples of javax.sql.ConnectionEventListener.connectionErrorOccurred()


                    final ConnectionEventListener listener =
                        (ConnectionEventListener) it.next();
                    if (exception == null) {
                        listener.connectionClosed(event);
                    } else {
                        listener.connectionErrorOccurred(event);
                    }
                }
            } finally {
                eventIterators--;
            }
View Full Code Here


        ConnectionEvent e2 = new ConnectionEvent ( this, e.getSQLException () );
        Enumeration enumm = listeners_.elements ();
        while ( enumm.hasMoreElements () ) {
            ConnectionEventListener l = (ConnectionEventListener) enumm
                    .nextElement ();
            l.connectionErrorOccurred ( e2 );
        }
    }

    /**
     * @see com.atomikos.jdbc.DTPPooledConnection#getConnection(com.atomikos.icatch.HeuristicMessage)
View Full Code Here

        for (Iterator iterator = connectionListeners.iterator();
                iterator.hasNext(); ) {
            ConnectionEventListener connectionEventListener =
                (ConnectionEventListener) iterator.next();

            connectionEventListener.connectionErrorOccurred(event);
        }
    }

    protected void fireCloseEvent() {
View Full Code Here

          .next()).getValue();

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

  public void connectionErrorOccurred(ConnectionEvent event) {
    for (int i = 0; i < listeners.size(); i++) { // for each listener
      Object obj = listeners.elementAt(i); // get next listener
      ConnectionEventListener cel = (ConnectionEventListener) obj;
      //cast to something more useful
      cel.connectionErrorOccurred(event); // notify this listener
      //cel.connectionClosed (event);        // notify this listener
    }
  }

  /**
 
View Full Code Here

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

  // my conneciton handle is being closed
View Full Code Here

        ConnectionEvent e2 = new ConnectionEvent ( this, e.getSQLException () );
        Enumeration enumm = listeners_.elements ();
        while ( enumm.hasMoreElements () ) {
            ConnectionEventListener l = (ConnectionEventListener) enumm
                    .nextElement ();
            l.connectionErrorOccurred ( e2 );
        }
    }

    /**
     * @see com.atomikos.jdbc.DTPPooledConnection#getConnection(com.atomikos.icatch.HeuristicMessage)
View Full Code Here

          .next()).getValue();

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

          .next()).getValue();

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

  public void connectionErrorOccurred(ConnectionEvent event) {
    for (int i = 0; i < listeners.size(); i++) { // for each listener
      Object obj = listeners.elementAt(i); // get next listener
      ConnectionEventListener cel = (ConnectionEventListener) obj;
      //cast to something more useful
      cel.connectionErrorOccurred(event); // notify this listener
      //cel.connectionClosed (event);        // notify this listener
    }
  }

  /**
 
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.