KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > sql > RowSetEvent


1 /*
2  * @(#)RowSetEvent.java 1.9 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.sql;
9
10 /**
11  * An <code>Event</code> object generated when an event occurs to a
12  * <code>RowSet</code> object. A <code>RowSetEvent</code> object is
13  * generated when a single row in a rowset is changed, the whole rowset
14  * is changed, or the rowset cursor moves.
15  * <P>
16  * When an event occurs on a <code>RowSet</code> object, one of the
17  * <code>RowSetListener</code> methods will be sent to all registered
18  * listeners to notify them of the event. An <code>Event</code> object
19  * is supplied to the <code>RowSetListener</code> method so that the
20  * listener can use it to find out which <code>RowSet</code> object is
21  * the source of the event.
22  *
23  * @since 1.4
24  */

25
26 public class RowSetEvent extends java.util.EventObject JavaDoc {
27
28   /**
29    * Constructs a <code>RowSetEvent</code> object initialized with the
30    * given <code>RowSet</code> object.
31    *
32    * @param source the <code>RowSet</code> object whose data has changed or
33    * whose cursor has moved
34    */

35   public RowSetEvent(RowSet JavaDoc source)
36     { super(source); }
37
38   /**
39    * Private serial version unique ID to ensure serialization
40    * compatibility.
41    */

42   static final long serialVersionUID = -1875450876546332005L;
43 }
44
45
46
47
48
Popular Tags