Package javax.sql

Examples of javax.sql.ConnectionEventListener.connectionClosed()


      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


      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

    ConnectionEvent event = new ConnectionEvent(this);
   
    for (int i = 0; i < _listeners.size(); i++) {
      ConnectionEventListener listener = _listeners.get(i);

      listener.connectionClosed(event);
    }
  }

  public void close()
    throws SQLException
View Full Code Here

            ConnectionEvent e2 = new ConnectionEvent ( this );
            Enumeration enumm = listeners_.elements ();
            while ( enumm.hasMoreElements () ) {
                ConnectionEventListener l = (ConnectionEventListener) enumm
                        .nextElement ();
                l.connectionClosed ( e2 );
            }
            afterCompletionDone_ = true;
           

        }
View Full Code Here

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

}
View Full Code Here

        List list = (List) listeners.clone ();
        Iterator all = list.iterator ();
        ConnectionEvent event = new ConnectionEvent ( this );
        while ( all.hasNext () ) {
            ConnectionEventListener l = (ConnectionEventListener) all.next ();
            l.connectionClosed ( event );
        }
    }

}
View Full Code Here

    // create the event that we'll send
    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.connectionClosed(event); // notify this listener
    }

  }

  /**
 
View Full Code Here

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

    public void connectionErrorOccurred ( ConnectionEvent e )
    {
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.