2362N/A * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * The abstract base class from which the classes <code>Row</code> 0N/A * The class <code>BaseRow</code> stores 0N/A * a row's original values as an array of <code>Object</code> 0N/A * values, which can be retrieved with the method <code>getOrigRow</code>. 0N/A * This class also provides methods for getting and setting individual 0N/A * values in the row. 0N/A * A row's original values are the values it contained before it was last 0N/A * modified. For example, when the <code>CachedRowSet</code>method 0N/A * <code>acceptChanges</code> is called, it will reset a row's original 0N/A * values to be the row's current values. Then, when the row is modified, 0N/A * the values that were previously the current values will become the row's 0N/A * original values (the values the row had immediately before it was modified). 0N/A * If a row has not been modified, its original values are its initial values. 0N/A * Subclasses of this class contain more specific details, such as 0N/A * the conditions under which an exception is thrown or the bounds for 0N/A * The array containing the original values for this <code>BaseRow</code> 0N/A * Retrieves the values that this row contained immediately 0N/A * prior to its last modification. 0N/A * @return an array of <code>Object</code> values containing this row's 0N/A * Retrieves the array element at the given index, which is 0N/A * the original value of column number <i>idx</i> in this row. 0N/A * @param idx the index of the element to return 0N/A * @return the <code>Object</code> value at the given index into this 0N/A * row's array of original values 0N/A * @throws <code>SQLException</code> if there is an error 0N/A * Sets the element at the given index into this row's array of 0N/A * original values to the given value. Implementations of the classes 0N/A * <code>Row</code> and determine what happens 0N/A * when the cursor is on the insert row and when it is on any other row. 0N/A * @param idx the index of the element to be set 0N/A * @param obj the <code>Object</code> to which the element at index 0N/A * <code>idx</code> to be set 0N/A * @throws <code>SQLException</code> if there is an error