mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8285485: Fix typos in corelibs
Reviewed-by: jpai, sundar, naoto, lancea
This commit is contained in:
parent
d8455a0ad4
commit
e68024c2d2
101 changed files with 295 additions and 295 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2022, 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
|
||||
|
@ -397,7 +397,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
onInsertRow = false;
|
||||
insertRow = null;
|
||||
|
||||
// set the warninings
|
||||
// set the warnings
|
||||
sqlwarn = new SQLWarning();
|
||||
rowsetWarning = new RowSetWarning();
|
||||
|
||||
|
@ -446,7 +446,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
* optimistic provider <code>com.sun.rowset.providers.RIOptimisticProvider</code>.
|
||||
* <p>
|
||||
* In addition, the following properties can be associated with the
|
||||
* provider to assist in determining the choice of the synchronizaton
|
||||
* provider to assist in determining the choice of the synchronization
|
||||
* provider such as:
|
||||
* <ul>
|
||||
* <li><code>ROWSET_SYNC_PROVIDER</code> - the property specifying the
|
||||
|
@ -459,7 +459,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
* software vendor.
|
||||
* </ul>
|
||||
* More specific detailes are available in the <code>SyncFactory</code>
|
||||
* and <code>SyncProvider</code> specificiations later in this document.
|
||||
* and <code>SyncProvider</code> specifications later in this document.
|
||||
* <p>
|
||||
* @param env a <code>Hashtable</code> object with a list of desired
|
||||
* synchronization providers
|
||||
|
@ -967,8 +967,8 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
* Before returning, this method moves the cursor before the first row
|
||||
* and sends a <code>rowSetChanged</code> event to all registered
|
||||
* listeners.
|
||||
* @throws SQLException if an error is occurs rolling back the RowSet
|
||||
* state to the definied original value.
|
||||
* @throws SQLException if an error occurs rolling back the RowSet
|
||||
* state to the defined original value.
|
||||
* @see javax.sql.RowSetListener#rowSetChanged
|
||||
*/
|
||||
public void restoreOriginal() throws SQLException {
|
||||
|
@ -1108,7 +1108,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
/**
|
||||
* Returns a new <code>RowSet</code> object backed by the same data as
|
||||
* that of this <code>CachedRowSetImpl</code> object and sharing a set of cursors
|
||||
* with it. This allows cursors to interate over a shared set of rows, providing
|
||||
* with it. This allows cursors to iterate over a shared set of rows, providing
|
||||
* multiple views of the underlying data.
|
||||
*
|
||||
* @return a <code>RowSet</code> object that is a copy of this <code>CachedRowSetImpl</code>
|
||||
|
@ -1285,7 +1285,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
|
||||
/**
|
||||
* Converts this <code>CachedRowSetImpl</code> object to a collection
|
||||
* of tables. The sample implementation utilitizes the <code>TreeMap</code>
|
||||
* of tables. The sample implementation utilizes the <code>TreeMap</code>
|
||||
* collection type.
|
||||
* This class guarantees that the map will be in ascending key order,
|
||||
* sorted according to the natural order for the key's class.
|
||||
|
@ -1312,7 +1312,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
/**
|
||||
* Returns the specified column of this <code>CachedRowSetImpl</code> object
|
||||
* as a <code>Collection</code> object. This method makes a copy of the
|
||||
* column's data and utilitizes the <code>Vector</code> to establish the
|
||||
* column's data and utilizes the <code>Vector</code> to establish the
|
||||
* collection. The <code>Vector</code> class implements a growable array
|
||||
* objects allowing the individual components to be accessed using an
|
||||
* an integer index similar to that of an array.
|
||||
|
@ -1348,7 +1348,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
/**
|
||||
* Returns the specified column of this <code>CachedRowSetImpl</code> object
|
||||
* as a <code>Collection</code> object. This method makes a copy of the
|
||||
* column's data and utilitizes the <code>Vector</code> to establish the
|
||||
* column's data and utilizes the <code>Vector</code> to establish the
|
||||
* collection. The <code>Vector</code> class implements a growable array
|
||||
* objects allowing the individual components to be accessed using an
|
||||
* an integer index similar to that of an array.
|
||||
|
@ -1734,7 +1734,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
* @param columnIndex the first column is <code>1</code>, the second
|
||||
* is <code>2</code>, and so on; must be <code>1</code> or larger
|
||||
* and equal to or less than the number of columns in the rowset
|
||||
* @return the column value as a <code>boolean</code> in the Java progamming language;
|
||||
* @return the column value as a <code>boolean</code> in the Java programming language;
|
||||
* if the value is SQL <code>NULL</code>, the result is <code>false</code>
|
||||
* @throws SQLException if (1) the given column index is out of bounds,
|
||||
* (2) the cursor is not on one of this rowset's rows or its
|
||||
|
@ -2438,7 +2438,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
* (2) the cursor is not on one of this rowset's rows or its
|
||||
* insert row, or (3) the designated column does not store an
|
||||
* SQL <code>BINARY, VARBINARY</code> or <code><b>LONGVARBINARY</b></code>
|
||||
* The bold type indicates the SQL type that this method is recommened
|
||||
* The bold type indicates the SQL type that this method is recommended
|
||||
* to retrieve.
|
||||
* @see #getBinaryStream(String)
|
||||
*/
|
||||
|
@ -2818,7 +2818,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
* (2) the cursor is not on one of this rowset's rows or its
|
||||
* insert row, or (3) the designated column does not store an
|
||||
* SQL <code>BINARY, VARBINARY</code> or <code><b>LONGVARBINARY</b></code>
|
||||
* The bold type indicates the SQL type that this method is recommened
|
||||
* The bold type indicates the SQL type that this method is recommended
|
||||
* to retrieve.
|
||||
* @see #getBinaryStream(int)
|
||||
*
|
||||
|
@ -3516,7 +3516,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
throw new SQLException(resBundle.handleGetObject("cachedrowsetimpl.absolute").toString());
|
||||
}
|
||||
|
||||
if (row > 0) { // we are moving foward
|
||||
if (row > 0) { // we are moving forward
|
||||
if (row > numRows) {
|
||||
// fell off the end
|
||||
afterLast();
|
||||
|
@ -3872,7 +3872,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
}
|
||||
|
||||
/**
|
||||
* Indicates whether the given SQL data type is a numberic type.
|
||||
* Indicates whether the given SQL data type is a numeric type.
|
||||
*
|
||||
* @param type one of the constants from <code>java.sql.Types</code>
|
||||
* @return <code>true</code> if the given type is <code>NUMERIC</code>,'
|
||||
|
@ -5985,7 +5985,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
/**
|
||||
* Retrieves the value of the designated column in this
|
||||
* <code>CachedRowSetImpl</code> object as an <code>Array</code> object
|
||||
* in the Java programming langugage.
|
||||
* in the Java programming language.
|
||||
*
|
||||
* @param colName a <code>String</code> object that must match the
|
||||
* SQL name of a column in this rowset, ignoring case
|
||||
|
@ -6269,7 +6269,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
* with the given <code>RowSetMetaData</code> object.
|
||||
*
|
||||
* @param md a <code>RowSetMetaData</code> object instance containing
|
||||
* metadata about the columsn in the rowset
|
||||
* metadata about the columns in the rowset
|
||||
* @throws SQLException if invalid meta data is supplied to the
|
||||
* rowset
|
||||
*/
|
||||
|
@ -6385,7 +6385,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
/**
|
||||
* Marks all rows in this rowset as being original rows. Any updates
|
||||
* made to the rows become the original values for the rowset.
|
||||
* Calls to the method <code>setOriginal</code> connot be reversed.
|
||||
* Calls to the method <code>setOriginal</code> cannot be reversed.
|
||||
*
|
||||
* @throws SQLException if an error occurs
|
||||
*/
|
||||
|
@ -6804,7 +6804,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
* object is returned. Subsequent <code>CachedRowSetImpl</code> warnings will
|
||||
* be chained to this <code>SQLWarning</code>. All <code>RowSetWarnings</code>
|
||||
* warnings are generated in the disconnected environment and remain a
|
||||
* seperate warning chain to that provided by the <code>getWarnings</code>
|
||||
* separate warning chain to that provided by the <code>getWarnings</code>
|
||||
* method.
|
||||
*
|
||||
* <P>The warning chain is automatically cleared each time a new
|
||||
|
@ -6864,7 +6864,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
int idxWhere = tabName.toLowerCase().indexOf("where");
|
||||
|
||||
/**
|
||||
* Adding the addtional check for conditions following the table name.
|
||||
* Adding the additional check for conditions following the table name.
|
||||
* If a condition is found truncate it.
|
||||
**/
|
||||
|
||||
|
@ -7240,7 +7240,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
*
|
||||
* @param data the <code>ResultSet</code> object containing the data
|
||||
* to be read into this <code>CachedRowSetImpl</code> object
|
||||
* @param start the integer specifing the position in the
|
||||
* @param start the integer specifying the position in the
|
||||
* <code>ResultSet</code> object to popultate the
|
||||
* <code>CachedRowSetImpl</code> object.
|
||||
* @throws SQLException if an error occurs; or the max row setting is
|
||||
|
@ -7421,7 +7421,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
|
||||
/**
|
||||
* This is the setter function for setting the size of the page, which specifies
|
||||
* how many rows have to be retrived at a time.
|
||||
* how many rows have to be retrieved at a time.
|
||||
*
|
||||
* @param size which is the page size
|
||||
* @throws SQLException if size is less than zero or greater than max rows.
|
||||
|
@ -7526,7 +7526,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
int counter;
|
||||
|
||||
if( page <= 0 ){
|
||||
throw new SQLException("Absolute positoin is invalid");
|
||||
throw new SQLException("Absolute position is invalid");
|
||||
}
|
||||
counter = 0;
|
||||
|
||||
|
@ -7551,7 +7551,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
|
||||
/**
|
||||
* Goes to the page number passed as the parameter from the current page.
|
||||
* The parameter can take postive or negative value accordingly.
|
||||
* The parameter can take positive or negative value accordingly.
|
||||
* @param page , the page loaded on a call to this function
|
||||
* @return true if the page exists false otherwise
|
||||
* @throws SQLException if an error occurs
|
||||
|
@ -7629,7 +7629,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
|||
*/
|
||||
|
||||
/**
|
||||
* Retrives the last page of data as specified by the page size.
|
||||
* Retrieves the last page of data as specified by the page size.
|
||||
* @return boolean value tur if present on the last page, false otherwise
|
||||
* @throws SQLException if called before populate or if an error occurs.
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2022, 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
|
||||
|
@ -451,8 +451,8 @@ public class FilteredRowSetImpl extends WebRowSetImpl implements Serializable, C
|
|||
|
||||
/**
|
||||
* This is explanation for the overriding of the updateXXX functions.
|
||||
* These functions have been overriden to ensure that only correct
|
||||
* values that pass the criteria for the filter are actaully inserted.
|
||||
* These functions have been overridden to ensure that only correct
|
||||
* values that pass the criteria for the filter are actually inserted.
|
||||
* The evaluation of whether a particular value passes the criteria
|
||||
* of the filter is done using the evaluate function in the Predicate
|
||||
* interface.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2022, 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
|
||||
|
@ -132,7 +132,7 @@ public class JdbcRowSetResourceBundle implements Serializable {
|
|||
* This method returns an enumerated handle of the keys
|
||||
* which correspond to values translated to various locales.
|
||||
*
|
||||
* @return an enumeration of keys which have messages tranlated to
|
||||
* @return an enumeration of keys which have messages translated to
|
||||
* corresponding locales.
|
||||
*/
|
||||
@SuppressWarnings("rawtypes")
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2022, 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
|
||||
|
@ -406,12 +406,12 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
|
|||
* Returns a Collection of the <code>RowSet</code> object instances
|
||||
* currently residing with the instance of the <code>JoinRowSet</code>
|
||||
* object instance. This should return the 'n' number of RowSet contained
|
||||
* within the JOIN and maintain any updates that have occoured while in
|
||||
* within the JOIN and maintain any updates that have occurred while in
|
||||
* this union.
|
||||
*
|
||||
* @return A <code>Collection</code> of the added <code>RowSet</code>
|
||||
* object instances
|
||||
* @throws SQLException if an error occours generating a collection
|
||||
* @throws SQLException if an error occurs generating a collection
|
||||
* of the originating RowSets contained within the JOIN.
|
||||
*/
|
||||
@SuppressWarnings("rawtypes")
|
||||
|
@ -424,7 +424,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
|
|||
* with the <code>JoinRowSet</code> object instance.
|
||||
*
|
||||
* @return a string array of the RowSet names
|
||||
* @throws SQLException if an error occours retrieving the RowSet names
|
||||
* @throws SQLException if an error occurs retrieving the RowSet names
|
||||
* @see CachedRowSet#setTableName
|
||||
*/
|
||||
public String[] getRowSetNames() throws SQLException {
|
||||
|
@ -633,10 +633,10 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
|
|||
// Now we have two rowsets crsInternal and cRowset which need
|
||||
// to be INNER JOIN'ED to form a new rowset
|
||||
// Compare table1.MatchColumn1.value1 == { table2.MatchColumn2.value1
|
||||
// ... upto table2.MatchColumn2.valueN }
|
||||
// ... up to table2.MatchColumn2.valueN }
|
||||
// ...
|
||||
// Compare table1.MatchColumn1.valueM == { table2.MatchColumn2.value1
|
||||
// ... upto table2.MatchColumn2.valueN }
|
||||
// ... up to table2.MatchColumn2.valueN }
|
||||
//
|
||||
// Assuming first rowset has M rows and second N rows.
|
||||
|
||||
|
@ -682,7 +682,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
|
|||
if (match) {
|
||||
|
||||
int p;
|
||||
int colc = 0; // reset this variable everytime you loop
|
||||
int colc = 0; // reset this variable every time you loop
|
||||
// re create a JoinRowSet in crsTemp object
|
||||
crsTemp.moveToInsertRow();
|
||||
|
||||
|
@ -863,8 +863,8 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
|
|||
* strings description of <code>JOIN</code> or provide a textual description to assist
|
||||
* applications using a <code>JoinRowSet</code>.
|
||||
*
|
||||
* @return whereClause a textual or SQL descripition of the logical
|
||||
* <code>WHERE</code> cluase used in the <code>JoinRowSet</code> instance
|
||||
* @return whereClause a textual or SQL description of the logical
|
||||
* <code>WHERE</code> clause used in the <code>JoinRowSet</code> instance
|
||||
* @throws SQLException if an error occurs in generating a representation
|
||||
* of the <code>WHERE</code> clause.
|
||||
*/
|
||||
|
@ -1769,7 +1769,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
|
|||
/**
|
||||
* Retrieves the value of the designated column in this
|
||||
* <code>JoinRowSetImpl</code> object as an <code>Object</code> in
|
||||
* the Java programming lanugage, using the given
|
||||
* the Java programming language, using the given
|
||||
* <code>java.util.Map</code> object to custom map the value if
|
||||
* appropriate.
|
||||
*
|
||||
|
@ -2185,7 +2185,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
|
|||
* <code>false</code> will always be returned if it does not detect updates.
|
||||
*
|
||||
* @return <code>true</code> if the column updated
|
||||
* <code>false</code> otherwse
|
||||
* <code>false</code> otherwise
|
||||
* @throws SQLException if the cursor is on the insert row or not
|
||||
* on a valid row
|
||||
* @see DatabaseMetaData#updatesAreDetected
|
||||
|
@ -3428,7 +3428,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
|
|||
/**
|
||||
* Retrieves the value of the designated column in this
|
||||
* <code>JoinRowSetImpl</code> object as a <code>Ref</code> object
|
||||
* in the Java programming lanugage.
|
||||
* in the Java programming language.
|
||||
*
|
||||
* @param columnIndex the first column is <code>1</code>, the second
|
||||
* is <code>2</code>, and so on; must be <code>1</code> or larger
|
||||
|
@ -3446,7 +3446,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
|
|||
/**
|
||||
* Retrieves the value of the designated column in this
|
||||
* <code>JoinRowSetImpl</code> object as a <code>Blob</code> object
|
||||
* in the Java programming lanugage.
|
||||
* in the Java programming language.
|
||||
*
|
||||
* @param columnIndex the first column is <code>1</code>, the second
|
||||
* is <code>2</code>, and so on; must be <code>1</code> or larger
|
||||
|
@ -3464,7 +3464,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
|
|||
/**
|
||||
* Retrieves the value of the designated column in this
|
||||
* <code>JoinRowSetImpl</code> object as a <code>Clob</code> object
|
||||
* in the Java programming lanugage.
|
||||
* in the Java programming language.
|
||||
*
|
||||
* @param columnIndex the first column is <code>1</code>, the second
|
||||
* is <code>2</code>, and so on; must be <code>1</code> or larger
|
||||
|
@ -3482,7 +3482,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
|
|||
/**
|
||||
* Retrieves the value of the designated column in this
|
||||
* <code>JoinRowSetImpl</code> object as an <code>Array</code> object
|
||||
* in the Java programming lanugage.
|
||||
* in the Java programming language.
|
||||
*
|
||||
* @param columnIndex the first column is <code>1</code>, the second
|
||||
* is <code>2</code>, and so on; must be <code>1</code> or larger
|
||||
|
@ -3503,7 +3503,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
|
|||
/**
|
||||
* Retrieves the value of the designated column in this
|
||||
* <code>JoinRowSetImpl</code> object as a <code>Ref</code> object
|
||||
* in the Java programming lanugage.
|
||||
* in the Java programming language.
|
||||
*
|
||||
* @param columnName a <code>String</code> object that must match the
|
||||
* SQL name of a column in this rowset, ignoring case
|
||||
|
@ -3520,7 +3520,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
|
|||
/**
|
||||
* Retrieves the value of the designated column in this
|
||||
* <code>JoinRowSetImpl</code> object as a <code>Blob</code> object
|
||||
* in the Java programming lanugage.
|
||||
* in the Java programming language.
|
||||
*
|
||||
* @param columnName a <code>String</code> object that must match the
|
||||
* SQL name of a column in this rowset, ignoring case
|
||||
|
@ -3538,7 +3538,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
|
|||
/**
|
||||
* Retrieves the value of the designated column in this
|
||||
* <code>JoinRowSetImpl</code> object as a <code>Clob</code> object
|
||||
* in the Java programming lanugage.
|
||||
* in the Java programming language.
|
||||
*
|
||||
* @param columnName a <code>String</code> object that must match the
|
||||
* SQL name of a column in this rowset, ignoring case
|
||||
|
@ -3556,7 +3556,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
|
|||
/**
|
||||
* Retrieves the value of the designated column in this
|
||||
* <code>JoinRowSetImpl</code> object as an <code>Array</code> object
|
||||
* in the Java programming lanugage.
|
||||
* in the Java programming language.
|
||||
*
|
||||
* @param columnName a <code>String</code> object that must match the
|
||||
* SQL name of a column in this rowset, ignoring case
|
||||
|
@ -3712,7 +3712,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
|
|||
* with the given <code>RowSetMetaData</code> object.
|
||||
*
|
||||
* @param md a <code>RowSetMetaData</code> object instance containing
|
||||
* metadata about the columsn in the rowset
|
||||
* metadata about the columns in the rowset
|
||||
* @throws SQLException if invalid meta data is supplied to the
|
||||
* rowset
|
||||
*/
|
||||
|
@ -4050,7 +4050,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
|
|||
* connection to the datasource
|
||||
* @throws SQLException if an invalid <code>Connection</code> is supplied
|
||||
* or an error occurs in establishing the connection to the
|
||||
* data soure
|
||||
* data source
|
||||
* @see java.sql.Connection
|
||||
*/
|
||||
public void execute(Connection conn) throws SQLException {
|
||||
|
@ -4226,7 +4226,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
|
|||
|
||||
/**
|
||||
* Converts this <code>JoinRowSetImpl</code> object to a collection
|
||||
* of tables. The sample implementation utilitizes the <code>TreeMap</code>
|
||||
* of tables. The sample implementation utilizes the <code>TreeMap</code>
|
||||
* collection type.
|
||||
* This class guarantees that the map will be in ascending key order,
|
||||
* sorted according to the natural order for the key's class.
|
||||
|
@ -4246,7 +4246,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
|
|||
/**
|
||||
* Returns the specified column of this <code>JoinRowSetImpl</code> object
|
||||
* as a <code>Collection</code> object. This method makes a copy of the
|
||||
* column's data and utilitizes the <code>Vector</code> to establish the
|
||||
* column's data and utilizes the <code>Vector</code> to establish the
|
||||
* collection. The <code>Vector</code> class implements a growable array
|
||||
* objects allowing the individual components to be accessed using an
|
||||
* an integer index similar to that of an array.
|
||||
|
@ -4268,7 +4268,7 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
|
|||
/**
|
||||
* Returns the specified column of this <code>JoinRowSetImpl</code> object
|
||||
* as a <code>Collection</code> object. This method makes a copy of the
|
||||
* column's data and utilitizes the <code>Vector</code> to establish the
|
||||
* column's data and utilizes the <code>Vector</code> to establish the
|
||||
* collection. The <code>Vector</code> class implements a growable array
|
||||
* objects allowing the individual components to be accessed using an
|
||||
* an integer index similar to that of an array.
|
||||
|
|
|
@ -95,7 +95,7 @@ joinrowsetimpl.numnotequal = Number of elements in rowset not equal to match col
|
|||
joinrowsetimpl.notdefined = This is not a defined type of join
|
||||
joinrowsetimpl.notsupported = This type of join is not supported
|
||||
joinrowsetimpl.initerror = JoinRowSet initialization error
|
||||
joinrowsetimpl.genericerr = Genric joinrowset intial error
|
||||
joinrowsetimpl.genericerr = Generic joinrowset initial error
|
||||
joinrowsetimpl.emptyrowset = Empty rowset cannot be added to this JoinRowSet
|
||||
|
||||
#JdbcRowSetImpl exceptions
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2022, 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
|
||||
|
@ -603,9 +603,9 @@ public class CachedRowSetWriter implements TransactionalWriter, Serializable {
|
|||
// reset boolNull if it had been set
|
||||
boolNull = true;
|
||||
|
||||
/** This addtional checking has been added when the current value
|
||||
/** This additional checking has been added when the current value
|
||||
* in the DB is null, but the DB had a different value when the
|
||||
* data was actaully fetched into the CachedRowSet.
|
||||
* data was actually fetched into the CachedRowSet.
|
||||
**/
|
||||
|
||||
if(rsval == null && orig != null) {
|
||||
|
@ -638,7 +638,7 @@ public class CachedRowSetWriter implements TransactionalWriter, Serializable {
|
|||
objVal = rsval;
|
||||
} else if ( (orig == null || curr == null) ) {
|
||||
|
||||
/** Adding the additonal condition of checking for "flag"
|
||||
/** Adding the additional condition of checking for "flag"
|
||||
* boolean variable, which would otherwise result in
|
||||
* building a invalid query, as the comma would not be
|
||||
* added to the query string.
|
||||
|
@ -1171,7 +1171,7 @@ public class CachedRowSetWriter implements TransactionalWriter, Serializable {
|
|||
deleteCmd = "DELETE FROM " + buildTableName(dbmd, catalog, schema, table);
|
||||
|
||||
/*
|
||||
* set the key desriptors that will be
|
||||
* set the key descriptors that will be
|
||||
* needed to construct where clauses.
|
||||
*/
|
||||
buildKeyDesc(caller);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2004, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2022, 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
|
||||
|
@ -302,7 +302,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
|
|||
* values of a particular row after they have been resolved by
|
||||
* the user to synchronize back to datasource.
|
||||
* @throws SQLException if synchronization does not happen properly
|
||||
* maybe beacuse {@code Connection} has timed out.
|
||||
* maybe because {@code Connection} has timed out.
|
||||
**/
|
||||
private void writeData(CachedRowSet row) throws SQLException {
|
||||
crw.updateResolvedConflictToDB(row, crw.getReader().connect((RowSetInternal)crsSync));
|
||||
|
@ -661,8 +661,8 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
|
|||
* Before returning, this method moves the cursor before the first row
|
||||
* and sends a {@code rowSetChanged} event to all registered
|
||||
* listeners.
|
||||
* @throws SQLException if an error is occurs rolling back the RowSet
|
||||
* state to the definied original value.
|
||||
* @throws SQLException if an error occurs rolling back the RowSet
|
||||
* state to the defined original value.
|
||||
* @see javax.sql.RowSetListener#rowSetChanged
|
||||
*/
|
||||
public void restoreOriginal() throws SQLException {
|
||||
|
@ -742,7 +742,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
|
|||
/**
|
||||
* Returns a new {@code RowSet} object backed by the same data as
|
||||
* that of this {@code CachedRowSetImpl} object and sharing a set of cursors
|
||||
* with it. This allows cursors to interate over a shared set of rows, providing
|
||||
* with it. This allows cursors to iterate over a shared set of rows, providing
|
||||
* multiple views of the underlying data.
|
||||
*
|
||||
* @return a {@code RowSet} object that is a copy of this {@code CachedRowSetImpl}
|
||||
|
@ -851,7 +851,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
|
|||
|
||||
/**
|
||||
* Converts this {@code CachedRowSetImpl} object to a collection
|
||||
* of tables. The sample implementation utilitizes the {@code TreeMap}
|
||||
* of tables. The sample implementation utilizes the {@code TreeMap}
|
||||
* collection type.
|
||||
* This class guarantees that the map will be in ascending key order,
|
||||
* sorted according to the natural order for the key's class.
|
||||
|
@ -872,7 +872,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
|
|||
/**
|
||||
* Returns the specified column of this {@code CachedRowSetImpl} object
|
||||
* as a {@code Collection} object. This method makes a copy of the
|
||||
* column's data and utilitizes the {@code Vector} to establish the
|
||||
* column's data and utilizes the {@code Vector} to establish the
|
||||
* collection. The {@code Vector} class implements a growable array
|
||||
* objects allowing the individual components to be accessed using an
|
||||
* an integer index similar to that of an array.
|
||||
|
@ -895,7 +895,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
|
|||
/**
|
||||
* Returns the specified column of this {@code CachedRowSetImpl} object
|
||||
* as a {@code Collection} object. This method makes a copy of the
|
||||
* column's data and utilitizes the {@code Vector} to establish the
|
||||
* column's data and utilizes the {@code Vector} to establish the
|
||||
* collection. The {@code Vector} class implements a growable array
|
||||
* objects allowing the individual components to be accessed using an
|
||||
* an integer index similar to that of an array.
|
||||
|
@ -1124,7 +1124,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
|
|||
* @param columnIndex the first column is {@code 1}, the second
|
||||
* is {@code 2}, and so on; must be {@code 1} or larger
|
||||
* and equal to or less than the number of columns in the rowset
|
||||
* @return the column value as a {@code boolean} in the Java progamming language;
|
||||
* @return the column value as a {@code boolean} in the Java programming language;
|
||||
* if the value is SQL {@code NULL}, the result is {@code false}
|
||||
* @throws SQLException if (1) the given column index is out of bounds,
|
||||
* (2) the cursor is not on one of this rowset's rows or its
|
||||
|
@ -1467,7 +1467,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
|
|||
* (2) the cursor is not on one of this rowset's rows or its
|
||||
* insert row, or (3) the designated column does not store an
|
||||
* SQL {@code BINARY, VARBINARY} or <b>{@code LONGVARBINARY}</b>.
|
||||
* The bold type indicates the SQL type that this method is recommened
|
||||
* The bold type indicates the SQL type that this method is recommended
|
||||
* to retrieve.
|
||||
* @see #getBinaryStream(String)
|
||||
*/
|
||||
|
@ -1829,7 +1829,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
|
|||
* (2) the cursor is not on one of this rowset's rows or its
|
||||
* insert row, or (3) the designated column does not store an
|
||||
* SQL {@code BINARY, VARBINARY} or <b>{@code LONGVARBINARY}</b>
|
||||
* The bold type indicates the SQL type that this method is recommened
|
||||
* The bold type indicates the SQL type that this method is recommended
|
||||
* to retrieve.
|
||||
* @see #getBinaryStream(int)
|
||||
*
|
||||
|
@ -3938,7 +3938,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
|
|||
/**
|
||||
* Retrieves the value of the designated column in this
|
||||
* {@code CachedRowSetImpl} object as an {@code Array} object
|
||||
* in the Java programming langugage.
|
||||
* in the Java programming language.
|
||||
*
|
||||
* @param colName a {@code String} object that must match the
|
||||
* SQL name of a column in this rowset, ignoring case
|
||||
|
@ -4113,7 +4113,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
|
|||
* with the given {@code RowSetMetaData} object.
|
||||
*
|
||||
* @param md a {@code RowSetMetaData} object instance containing
|
||||
* metadata about the columsn in the rowset
|
||||
* metadata about the columns in the rowset
|
||||
* @throws SQLException if invalid meta data is supplied to the
|
||||
* rowset
|
||||
*/
|
||||
|
@ -4168,7 +4168,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
|
|||
/**
|
||||
* Marks all rows in this rowset as being original rows. Any updates
|
||||
* made to the rows become the original values for the rowset.
|
||||
* Calls to the method {@code setOriginal} connot be reversed.
|
||||
* Calls to the method {@code setOriginal} cannot be reversed.
|
||||
*
|
||||
* @throws SQLException if an error occurs
|
||||
*/
|
||||
|
@ -4491,7 +4491,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
|
|||
* object is returned. Subsequent {@code CachedRowSetImpl} warnings will
|
||||
* be chained to this {@code SQLWarning}. All {@code RowSetWarnings}
|
||||
* warnings are generated in the disconnected environment and remain a
|
||||
* seperate warning chain to that provided by the {@code getWarnings}
|
||||
* separate warning chain to that provided by the {@code getWarnings}
|
||||
* method.
|
||||
*
|
||||
* <P>The warning chain is automatically cleared each time a new
|
||||
|
@ -4760,7 +4760,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
|
|||
*
|
||||
* @param data the {@code ResultSet} object containing the data
|
||||
* to be read into this {@code CachedRowSetImpl} object
|
||||
* @param start the integer specifing the position in the
|
||||
* @param start the integer specifying the position in the
|
||||
* {@code ResultSet} object to popultate the
|
||||
* {@code CachedRowSetImpl} object.
|
||||
* @throws SQLException if an error occurs; or the max row setting is
|
||||
|
@ -4786,7 +4786,7 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
|
|||
|
||||
/**
|
||||
* This is the setter function for setting the size of the page, which specifies
|
||||
* how many rows have to be retrived at a time.
|
||||
* how many rows have to be retrieved at a time.
|
||||
*
|
||||
* @param size which is the page size
|
||||
* @throws SQLException if size is less than zero or greater than max rows.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2022, 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
|
||||
|
@ -625,7 +625,7 @@ public class WebRowSetXmlWriter implements XmlWriter, Serializable {
|
|||
|
||||
/**
|
||||
* This function has been added for the processing of special characters
|
||||
* lik <,>,'," and & in the data to be serialized. These have to be taken
|
||||
* like <,>,'," and & in the data to be serialized. These have to be taken
|
||||
* of specifically or else there will be parsing error while trying to read
|
||||
* the contents of the XML file.
|
||||
**/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2022, 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
|
||||
|
@ -48,7 +48,7 @@ import java.text.MessageFormat;
|
|||
* a <code>RowSet</code> object.
|
||||
* <P>
|
||||
* A rowset consists of its properties, metadata, and data values. An XML document
|
||||
* representating a rowset includes the values in these three categories along with
|
||||
* representing a rowset includes the values in these three categories along with
|
||||
* appropriate XML tags to identify them. It also includes a top-level XML tag for
|
||||
* the rowset and three section tags identifying the three categories of values.
|
||||
* <P>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2022, 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
|
||||
|
@ -37,7 +37,7 @@ import com.sun.rowset.internal.*;
|
|||
* providing optimistic synchronization with a relational datastore
|
||||
* using any JDBC technology-enabled driver.
|
||||
*
|
||||
* <h2>1.0 Backgroud</h2>
|
||||
* <h2>1.0 Background</h2>
|
||||
* This synchronization provider is registered with the
|
||||
* <code>SyncFactory</code> by default as the
|
||||
* <code>com.sun.rowset.providers.RIOptimisticProvider</code>.
|
||||
|
@ -47,7 +47,7 @@ import com.sun.rowset.internal.*;
|
|||
* interface implementations. As a reference implementation,
|
||||
* <code>RIOptimisticProvider</code> provides a
|
||||
* fully functional implementation offering a medium grade classification of
|
||||
* syncrhonization, namely GRADE_CHECK_MODIFIED_AT_COMMIT. A
|
||||
* synchronization, namely GRADE_CHECK_MODIFIED_AT_COMMIT. A
|
||||
* disconnected <code>RowSet</code> implementation using the
|
||||
* <code>RIOptimisticProvider</code> can expect the writer to
|
||||
* check only rows that have been modified in the <code>RowSet</code> against
|
||||
|
@ -171,7 +171,7 @@ public final class RIOptimisticProvider extends SyncProvider implements Serializ
|
|||
/**
|
||||
* Returns the <code>SyncProvider</code> grade of synchronization that
|
||||
* <code>RowSet</code> objects can expect when using this
|
||||
* implementation. As an optimisic synchonization provider, the writer
|
||||
* implementation. As an optimistic synchronization provider, the writer
|
||||
* will only check rows that have been modified in the <code>RowSet</code>
|
||||
* object.
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2022, 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
|
||||
|
@ -169,10 +169,10 @@ public final class RIXMLProvider extends SyncProvider {
|
|||
/**
|
||||
* Returns the <code>SyncProvider</code> grade of syncrhonization that
|
||||
* <code>RowSet</code> object instances can expect when using this
|
||||
* implementation. As this implementation provides no synchonization
|
||||
* implementation. As this implementation provides no synchronization
|
||||
* facilities to the XML data source, the lowest grade is returned.
|
||||
*
|
||||
* @return the <code>SyncProvider</code> syncronization grade of this
|
||||
* @return the <code>SyncProvider</code> synchronization grade of this
|
||||
* provider; must be one of the following constants:
|
||||
* <PRE>
|
||||
* SyncProvider.GRADE_NONE,
|
||||
|
@ -236,8 +236,8 @@ public final class RIXMLProvider extends SyncProvider {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the vendor name of the Reference Implemntation Optimistic
|
||||
* Syncchronication Provider
|
||||
* Returns the vendor name of the Reference Implementation Optimistic
|
||||
* Synchronization Provider
|
||||
*
|
||||
* @return the <code>String</code> detailing the vendor name of this
|
||||
* SyncProvider
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue