01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package javax.sql;
19:
20: import java.util.EventObject;
21: import java.io.Serializable;
22:
23: /**
24: * An event which is sent when specific events happen to a RowSet object. The
25: * events are sent to inform registered listeners that changes have occurred to
26: * the RowSet. The events covered are:
27: * <ol>
28: * <li>A single row in the RowSet changes</li>
29: * <li>The whole set of data in the RowSet changes</li>
30: * <li>The RowSet cursor position changes</li>
31: * </ol>
32: * The event contains a reference to the RowSet object which generated the
33: * message so that the listeners can extract whatever information they need from
34: * that reference.
35: *
36: */
37: public class RowSetEvent extends EventObject implements Serializable {
38:
39: private static final long serialVersionUID = -1875450876546332005L;
40:
41: /**
42: * Creates a RowSetEvent object containing a reference to the RowSet object
43: * that generated the event. Information about the changes that have
44: * occurred to the RowSet can be extracted from the RowSet using one or more
45: * of the query methods available on the RowSet.
46: *
47: * @param theSource
48: * the RowSet which generated the event
49: */
50: public RowSetEvent(RowSet theSource) {
51: super(theSource);
52: }
53: }
|