- /*
- * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
- * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
- */
-
- package javax.sql;
-
- import java.sql.SQLException;
-
- /**
- * <P>The ConnectionEvent class provides information about the source of
- * a connection related event. ConnectionEvent objects provide the
- * following information:
- * <UL>
- * <LI>the pooled connection that generated the event
- * <LI>the SQLException about to be thrown to the application
- * ( in the case of an error event)
- * </UL>
- */
-
- public class ConnectionEvent extends java.util.EventObject {
-
- /**
- * <P>Construct a ConnectionEvent object. SQLException defaults to null.
- *
- * @param con the pooled connection that is the source of the event
- */
- public ConnectionEvent(PooledConnection con) {
- super(con);
- }
-
- /**
- * <P>Construct a ConnectionEvent object.
- *
- * @param con the pooled connection that is the source of the event
- * @param ex the SQLException about to be thrown to the application
- */
- public ConnectionEvent(PooledConnection con, SQLException ex) {
- super(con);
- this.ex = ex;
- }
-
- /**
- * <P>Get the SQLException. May be null.
- *
- * @return the SQLException about to be thrown
- */
- public SQLException getSQLException() { return ex; }
-
- private SQLException ex = null;
-
- }
-
-
-
-
-