src/share/classes/javax/sql/rowset/BaseRowSet.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 35,45 **** import javax.sql.rowset.serial.*; /** * An abstract class providing a <code>RowSet</code> object with its basic functionality. * The basic functions include having properties and sending event notifications, ! * which all JavaBeans<sup><font size=-2>TM</font></sup> components must implement. * <P> * <h3>1.0 Overview</h3> * The <code>BaseRowSet</code> class provides the core functionality * for all <code>RowSet</code> implementations, * and all standard implementations <b>may</b> use this class in combination with --- 35,45 ---- import javax.sql.rowset.serial.*; /** * An abstract class providing a <code>RowSet</code> object with its basic functionality. * The basic functions include having properties and sending event notifications, ! * which all JavaBeans&trade; components must implement. * <P> * <h3>1.0 Overview</h3> * The <code>BaseRowSet</code> class provides the core functionality * for all <code>RowSet</code> implementations, * and all standard implementations <b>may</b> use this class in combination with
*** 91,101 **** * the user name and password. * <P> * NOTE: In order to use a <code>DataSource</code> object for making a * connection, the <code>DataSource</code> object must have been registered * with a naming service that uses the Java Naming and Directory ! * Interface<sup><font size=-2>TM</font></sup> (JNDI) API. This registration * is usually done by a person acting in the capacity of a system administrator. * <P> * <h3>3.0 Setting the Command and Its Parameters</h3> * When a rowset gets its data from a relational database, it executes a command (a query) * that produces a <code>ResultSet</code> object. This query is the command that is set --- 91,101 ---- * the user name and password. * <P> * NOTE: In order to use a <code>DataSource</code> object for making a * connection, the <code>DataSource</code> object must have been registered * with a naming service that uses the Java Naming and Directory ! * Interface&trade; (JNDI) API. This registration * is usually done by a person acting in the capacity of a system administrator. * <P> * <h3>3.0 Setting the Command and Its Parameters</h3> * When a rowset gets its data from a relational database, it executes a command (a query) * that produces a <code>ResultSet</code> object. This query is the command that is set
*** 104,114 **** * contains placeholders for values to be set, the <code>BaseRowSet</code> setter methods * are used to set these values. All setter methods allow these values to be set * to <code>null</code> if required. * <P> * The following code fragment illustrates how the ! * <code>CachedRowSet</code><sup><font size=-2>TM</font></sup> * object <code>crs</code> might have its command property set. Note that if a * tool is used to set properties, this is the code that the tool would use. * <PRE>{@code * crs.setCommand("SELECT FIRST_NAME, LAST_NAME, ADDRESS FROM CUSTOMERS" + * "WHERE CREDIT_LIMIT > ? AND REGION = ?"); --- 104,114 ---- * contains placeholders for values to be set, the <code>BaseRowSet</code> setter methods * are used to set these values. All setter methods allow these values to be set * to <code>null</code> if required. * <P> * The following code fragment illustrates how the ! * <code>CachedRowSet</code>&trade; * object <code>crs</code> might have its command property set. Note that if a * tool is used to set properties, this is the code that the tool would use. * <PRE>{@code * crs.setCommand("SELECT FIRST_NAME, LAST_NAME, ADDRESS FROM CUSTOMERS" + * "WHERE CREDIT_LIMIT > ? AND REGION = ?");