1 /* 2 * Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package javax.sql; 27 28 import java.sql.*; 29 import java.io.*; 30 import java.math.*; 31 import java.util.*; 32 33 /** 34 * The interface that adds support to the JDBC API for the 35 * JavaBeans<sup><font size=-2>TM</font></sup> component model. 36 * A rowset, which can be used as a JavaBeans component in 37 * a visual Bean development environment, can be created and 38 * configured at design time and executed at run time. 39 * <P> 40 * The <code>RowSet</code> 41 * interface provides a set of JavaBeans properties that allow a <code>RowSet</code> 42 * instance to be configured to connect to a JDBC data source and read 43 * some data from the data source. A group of setter methods (<code>setInt</code>, 44 * <code>setBytes</code>, <code>setString</code>, and so on) 45 * provide a way to pass input parameters to a rowset's command property. 46 * This command is the SQL query the rowset uses when it gets its data from 47 * a relational database, which is generally the case. 48 * <P> 49 * The <code>RowSet</code> 50 * interface supports JavaBeans events, allowing other components in an 51 * application to be notified when an event occurs on a rowset, 52 * such as a change in its value. 53 * 54 * <P>The <code>RowSet</code> interface is unique in that it is intended to be 55 * implemented using the rest of the JDBC API. In other words, a | 1 /* 2 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package javax.sql; 27 28 import java.sql.*; 29 import java.io.*; 30 import java.math.*; 31 import java.util.*; 32 33 /** 34 * The interface that adds support to the JDBC API for the 35 * JavaBeans™ component model. 36 * A rowset, which can be used as a JavaBeans component in 37 * a visual Bean development environment, can be created and 38 * configured at design time and executed at run time. 39 * <P> 40 * The <code>RowSet</code> 41 * interface provides a set of JavaBeans properties that allow a <code>RowSet</code> 42 * instance to be configured to connect to a JDBC data source and read 43 * some data from the data source. A group of setter methods (<code>setInt</code>, 44 * <code>setBytes</code>, <code>setString</code>, and so on) 45 * provide a way to pass input parameters to a rowset's command property. 46 * This command is the SQL query the rowset uses when it gets its data from 47 * a relational database, which is generally the case. 48 * <P> 49 * The <code>RowSet</code> 50 * interface supports JavaBeans events, allowing other components in an 51 * application to be notified when an event occurs on a rowset, 52 * such as a change in its value. 53 * 54 * <P>The <code>RowSet</code> interface is unique in that it is intended to be 55 * implemented using the rest of the JDBC API. In other words, a |