提交 a5c24bf6 编写于 作者: L lancea

6680198: UnmarshalException caused by incompatible serialVersionUID

Reviewed-by: sherman
上级 47d30ba4
/* /*
* Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -518,7 +518,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern ...@@ -518,7 +518,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
setReadOnly(true); setReadOnly(true);
setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED); setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
setEscapeProcessing(true); setEscapeProcessing(true);
setTypeMap(null); //setTypeMap(null);
checkTransactionalWriter(); checkTransactionalWriter();
//Instantiating the vector for MatchColumns //Instantiating the vector for MatchColumns
...@@ -679,7 +679,10 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern ...@@ -679,7 +679,10 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
} else if (obj instanceof Clob) { } else if (obj instanceof Clob) {
obj = new SerialClob((Clob)obj); obj = new SerialClob((Clob)obj);
} else if (obj instanceof java.sql.Array) { } else if (obj instanceof java.sql.Array) {
if(map != null)
obj = new SerialArray((java.sql.Array)obj, map); obj = new SerialArray((java.sql.Array)obj, map);
else
obj = new SerialArray((java.sql.Array)obj);
} }
((Row)currentRow).initColumnObject(i, obj); ((Row)currentRow).initColumnObject(i, obj);
...@@ -762,6 +765,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern ...@@ -762,6 +765,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
if( conn != null){ if( conn != null){
// JDBC 4.0 mandates as does the Java EE spec that all DataBaseMetaData methods // JDBC 4.0 mandates as does the Java EE spec that all DataBaseMetaData methods
// must be implemented, therefore, the previous fix for 5055528 is being backed out // must be implemented, therefore, the previous fix for 5055528 is being backed out
dbmslocatorsUpdateCopy = conn.getMetaData().locatorsUpdateCopy(); dbmslocatorsUpdateCopy = conn.getMetaData().locatorsUpdateCopy();
} }
} }
...@@ -6322,6 +6326,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern ...@@ -6322,6 +6326,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
crs.RowSetMD = RowSetMD; crs.RowSetMD = RowSetMD;
crs.numRows = 1; crs.numRows = 1;
crs.cursorPos = 0; crs.cursorPos = 0;
crs.setTypeMap(this.getTypeMap());
// make sure we don't get someone playing with these // make sure we don't get someone playing with these
// %%% is this now necessary ??? // %%% is this now necessary ???
...@@ -10114,7 +10119,7 @@ a ...@@ -10114,7 +10119,7 @@ a
* during the deserialization process * during the deserialization process
* *
*/ */
protected void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
// Default state initialization happens here // Default state initialization happens here
ois.defaultReadObject(); ois.defaultReadObject();
// Initialization of transient Res Bundle happens here . // Initialization of transient Res Bundle happens here .
...@@ -10125,5 +10130,6 @@ a ...@@ -10125,5 +10130,6 @@ a
} }
} }
static final long serialVersionUID =1884577171200622428L; static final long serialVersionUID =1884577171200622428L;
} }
/* /*
* Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -1746,5 +1746,23 @@ public class FilteredRowSetImpl extends WebRowSetImpl implements Serializable, C ...@@ -1746,5 +1746,23 @@ public class FilteredRowSetImpl extends WebRowSetImpl implements Serializable, C
onInsertRow = false; onInsertRow = false;
super.insertRow(); super.insertRow();
} }
/**
* This method re populates the resBundle
* during the deserialization process
*
*/
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
// Default state initialization happens here
ois.defaultReadObject();
// Initialization of transient Res Bundle happens here .
try {
resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
} catch(IOException ioe) {
throw new RuntimeException(ioe);
}
}
static final long serialVersionUID = 6178454588413509360L; static final long serialVersionUID = 6178454588413509360L;
} // end FilteredRowSetImpl class } // end FilteredRowSetImpl class
/* /*
* Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -101,7 +101,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -101,7 +101,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
private Vector strMatchColumns; private Vector strMatchColumns;
protected transient JdbcRowSetResourceBundle jdbcResBundle; protected transient JdbcRowSetResourceBundle resBundle;
/** /**
* Constructs a default <code>JdbcRowSet</code> object. * Constructs a default <code>JdbcRowSet</code> object.
...@@ -140,7 +140,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -140,7 +140,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
rs = null; rs = null;
try { try {
jdbcResBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle(); resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
} catch(IOException ioe) { } catch(IOException ioe) {
throw new RuntimeException(ioe); throw new RuntimeException(ioe);
} }
...@@ -154,42 +154,42 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -154,42 +154,42 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
try { try {
setShowDeleted(false); setShowDeleted(false);
} catch(SQLException sqle) { } catch(SQLException sqle) {
System.err.println(jdbcResBundle.handleGetObject("jdbcrowsetimpl.setshowdeleted").toString() + System.err.println(resBundle.handleGetObject("jdbcrowsetimpl.setshowdeleted").toString() +
sqle.getLocalizedMessage()); sqle.getLocalizedMessage());
} }
try { try {
setQueryTimeout(0); setQueryTimeout(0);
} catch(SQLException sqle) { } catch(SQLException sqle) {
System.err.println(jdbcResBundle.handleGetObject("jdbcrowsetimpl.setquerytimeout").toString() + System.err.println(resBundle.handleGetObject("jdbcrowsetimpl.setquerytimeout").toString() +
sqle.getLocalizedMessage()); sqle.getLocalizedMessage());
} }
try { try {
setMaxRows(0); setMaxRows(0);
} catch(SQLException sqle) { } catch(SQLException sqle) {
System.err.println(jdbcResBundle.handleGetObject("jdbcrowsetimpl.setmaxrows").toString() + System.err.println(resBundle.handleGetObject("jdbcrowsetimpl.setmaxrows").toString() +
sqle.getLocalizedMessage()); sqle.getLocalizedMessage());
} }
try { try {
setMaxFieldSize(0); setMaxFieldSize(0);
} catch(SQLException sqle) { } catch(SQLException sqle) {
System.err.println(jdbcResBundle.handleGetObject("jdbcrowsetimpl.setmaxfieldsize").toString() + System.err.println(resBundle.handleGetObject("jdbcrowsetimpl.setmaxfieldsize").toString() +
sqle.getLocalizedMessage()); sqle.getLocalizedMessage());
} }
try { try {
setEscapeProcessing(true); setEscapeProcessing(true);
} catch(SQLException sqle) { } catch(SQLException sqle) {
System.err.println(jdbcResBundle.handleGetObject("jdbcrowsetimpl.setescapeprocessing").toString() + System.err.println(resBundle.handleGetObject("jdbcrowsetimpl.setescapeprocessing").toString() +
sqle.getLocalizedMessage()); sqle.getLocalizedMessage());
} }
try { try {
setConcurrency(ResultSet.CONCUR_UPDATABLE); setConcurrency(ResultSet.CONCUR_UPDATABLE);
} catch (SQLException sqle) { } catch (SQLException sqle) {
System.err.println(jdbcResBundle.handleGetObject("jdbcrowsetimpl.setconcurrency").toString() + System.err.println(resBundle.handleGetObject("jdbcrowsetimpl.setconcurrency").toString() +
sqle.getLocalizedMessage()); sqle.getLocalizedMessage());
} }
...@@ -198,7 +198,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -198,7 +198,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
try { try {
setType(ResultSet.TYPE_SCROLL_INSENSITIVE); setType(ResultSet.TYPE_SCROLL_INSENSITIVE);
} catch(SQLException sqle){ } catch(SQLException sqle){
System.err.println(jdbcResBundle.handleGetObject("jdbcrowsetimpl.settype").toString() + System.err.println(resBundle.handleGetObject("jdbcrowsetimpl.settype").toString() +
sqle.getLocalizedMessage()); sqle.getLocalizedMessage());
} }
...@@ -207,7 +207,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -207,7 +207,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
try { try {
setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED); setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
} catch(SQLException sqle){ } catch(SQLException sqle){
System.err.println(jdbcResBundle.handleGetObject("jdbcrowsetimpl.settransactionisolation").toString() + System.err.println(resBundle.handleGetObject("jdbcrowsetimpl.settransactionisolation").toString() +
sqle.getLocalizedMessage()); sqle.getLocalizedMessage());
} }
...@@ -263,7 +263,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -263,7 +263,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
rs = null; rs = null;
try { try {
jdbcResBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle(); resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
} catch(IOException ioe) { } catch(IOException ioe) {
throw new RuntimeException(ioe); throw new RuntimeException(ioe);
} }
...@@ -338,7 +338,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -338,7 +338,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
rs = null; rs = null;
try { try {
jdbcResBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle(); resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
} catch(IOException ioe) { } catch(IOException ioe) {
throw new RuntimeException(ioe); throw new RuntimeException(ioe);
} }
...@@ -430,7 +430,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -430,7 +430,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
rs = res; rs = res;
try { try {
jdbcResBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle(); resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
} catch(IOException ioe) { } catch(IOException ioe) {
throw new RuntimeException(ioe); throw new RuntimeException(ioe);
} }
...@@ -517,7 +517,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -517,7 +517,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
// to the db, implies undesirable state so throw exception // to the db, implies undesirable state so throw exception
if (conn == null && ps == null && rs == null ) { if (conn == null && ps == null && rs == null ) {
throw new SQLException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.invalstate").toString()); throw new SQLException(resBundle.handleGetObject("jdbcrowsetimpl.invalstate").toString());
} }
} }
...@@ -593,28 +593,28 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -593,28 +593,28 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
try { try {
ps.setEscapeProcessing(getEscapeProcessing()); ps.setEscapeProcessing(getEscapeProcessing());
} catch (SQLException ex) { } catch (SQLException ex) {
System.err.println(jdbcResBundle.handleGetObject("jdbcrowsetimpl.setescapeprocessing").toString() + System.err.println(resBundle.handleGetObject("jdbcrowsetimpl.setescapeprocessing").toString() +
ex.getLocalizedMessage()); ex.getLocalizedMessage());
} }
try { try {
ps.setMaxFieldSize(getMaxFieldSize()); ps.setMaxFieldSize(getMaxFieldSize());
} catch (SQLException ex) { } catch (SQLException ex) {
System.err.println(jdbcResBundle.handleGetObject("jdbcrowsetimpl.setmaxfieldsize").toString() + System.err.println(resBundle.handleGetObject("jdbcrowsetimpl.setmaxfieldsize").toString() +
ex.getLocalizedMessage()); ex.getLocalizedMessage());
} }
try { try {
ps.setMaxRows(getMaxRows()); ps.setMaxRows(getMaxRows());
} catch (SQLException ex) { } catch (SQLException ex) {
System.err.println(jdbcResBundle.handleGetObject("jdbcrowsetimpl.setmaxrows").toString() + System.err.println(resBundle.handleGetObject("jdbcrowsetimpl.setmaxrows").toString() +
ex.getLocalizedMessage()); ex.getLocalizedMessage());
} }
try { try {
ps.setQueryTimeout(getQueryTimeout()); ps.setQueryTimeout(getQueryTimeout());
} catch (SQLException ex) { } catch (SQLException ex) {
System.err.println(jdbcResBundle.handleGetObject("jdbcrowsetimpl.setquerytimeout").toString() + System.err.println(resBundle.handleGetObject("jdbcrowsetimpl.setquerytimeout").toString() +
ex.getLocalizedMessage()); ex.getLocalizedMessage());
} }
...@@ -651,7 +651,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -651,7 +651,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
} }
} }
catch (javax.naming.NamingException ex) { catch (javax.naming.NamingException ex) {
throw new SQLException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.connect").toString()); throw new SQLException(resBundle.handleGetObject("jdbcrowsetimpl.connect").toString());
} }
} else if (getUrl() != null) { } else if (getUrl() != null) {
...@@ -681,7 +681,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -681,7 +681,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
} }
ps = conn.prepareStatement(getCommand(),ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE); ps = conn.prepareStatement(getCommand(),ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
} catch (SQLException ex) { } catch (SQLException ex) {
System.err.println(jdbcResBundle.handleGetObject("jdbcrowsetimpl.prepare").toString() + System.err.println(resBundle.handleGetObject("jdbcrowsetimpl.prepare").toString() +
ex.getLocalizedMessage()); ex.getLocalizedMessage());
if (ps != null) if (ps != null)
...@@ -721,15 +721,15 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -721,15 +721,15 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
if (param[0] instanceof java.sql.Date || if (param[0] instanceof java.sql.Date ||
param[0] instanceof java.sql.Time || param[0] instanceof java.sql.Time ||
param[0] instanceof java.sql.Timestamp) { param[0] instanceof java.sql.Timestamp) {
System.err.println(jdbcResBundle.handleGetObject("jdbcrowsetimpl.detecteddate")); System.err.println(resBundle.handleGetObject("jdbcrowsetimpl.detecteddate"));
if (param[1] instanceof java.util.Calendar) { if (param[1] instanceof java.util.Calendar) {
System.err.println(jdbcResBundle.handleGetObject("jdbcrowsetimpl.detectedcalendar")); System.err.println(resBundle.handleGetObject("jdbcrowsetimpl.detectedcalendar"));
ps.setDate(i + 1, (java.sql.Date)param[0], ps.setDate(i + 1, (java.sql.Date)param[0],
(java.util.Calendar)param[1]); (java.util.Calendar)param[1]);
continue; continue;
} }
else { else {
throw new SQLException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.paramtype").toString()); throw new SQLException(resBundle.handleGetObject("jdbcrowsetimpl.paramtype").toString());
} }
} }
...@@ -770,7 +770,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -770,7 +770,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
(java.io.InputStream)param[0], (java.io.InputStream)param[0],
((Integer)param[1]).intValue()); ((Integer)param[1]).intValue());
default: default:
throw new SQLException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.paramtype").toString()); throw new SQLException(resBundle.handleGetObject("jdbcrowsetimpl.paramtype").toString());
} }
} }
...@@ -784,7 +784,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -784,7 +784,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
continue; continue;
} }
throw new SQLException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.paramtype").toString()); throw new SQLException(resBundle.handleGetObject("jdbcrowsetimpl.paramtype").toString());
} else { } else {
// common case - this catches all SQL92 types // common case - this catches all SQL92 types
...@@ -3749,7 +3749,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -3749,7 +3749,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
for( int j= 0 ;j < columnIdxes.length; j++) { for( int j= 0 ;j < columnIdxes.length; j++) {
i_val = (Integer.parseInt(iMatchColumns.get(j).toString())); i_val = (Integer.parseInt(iMatchColumns.get(j).toString()));
if(columnIdxes[j] != i_val) { if(columnIdxes[j] != i_val) {
throw new SQLException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.matchcols").toString()); throw new SQLException(resBundle.handleGetObject("jdbcrowsetimpl.matchcols").toString());
} }
} }
...@@ -3776,7 +3776,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -3776,7 +3776,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
for(int j = 0 ;j < columnIdxes.length; j++) { for(int j = 0 ;j < columnIdxes.length; j++) {
if( !columnIdxes[j].equals(strMatchColumns.get(j)) ){ if( !columnIdxes[j].equals(strMatchColumns.get(j)) ){
throw new SQLException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.matchcols").toString()); throw new SQLException(resBundle.handleGetObject("jdbcrowsetimpl.matchcols").toString());
} }
} }
...@@ -3800,7 +3800,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -3800,7 +3800,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
String []str_temp = new String[strMatchColumns.size()]; String []str_temp = new String[strMatchColumns.size()];
if( strMatchColumns.get(0) == null) { if( strMatchColumns.get(0) == null) {
throw new SQLException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.setmatchcols").toString()); throw new SQLException(resBundle.handleGetObject("jdbcrowsetimpl.setmatchcols").toString());
} }
strMatchColumns.copyInto(str_temp); strMatchColumns.copyInto(str_temp);
...@@ -3825,7 +3825,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -3825,7 +3825,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
i_val = ((Integer)iMatchColumns.get(0)).intValue(); i_val = ((Integer)iMatchColumns.get(0)).intValue();
if( i_val == -1 ) { if( i_val == -1 ) {
throw new SQLException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.setmatchcols").toString()); throw new SQLException(resBundle.handleGetObject("jdbcrowsetimpl.setmatchcols").toString());
} }
...@@ -3859,7 +3859,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -3859,7 +3859,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
for(int j = 0 ; j < columnIdxes.length; j++) { for(int j = 0 ; j < columnIdxes.length; j++) {
if( columnIdxes[j] < 0 ) { if( columnIdxes[j] < 0 ) {
throw new SQLException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.matchcols1").toString()); throw new SQLException(resBundle.handleGetObject("jdbcrowsetimpl.matchcols1").toString());
} }
} }
for(int i = 0 ;i < columnIdxes.length; i++) { for(int i = 0 ;i < columnIdxes.length; i++) {
...@@ -3886,7 +3886,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -3886,7 +3886,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
for(int j = 0; j < columnNames.length; j++) { for(int j = 0; j < columnNames.length; j++) {
if( columnNames[j] == null || columnNames[j].equals("")) { if( columnNames[j] == null || columnNames[j].equals("")) {
throw new SQLException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.matchcols2").toString()); throw new SQLException(resBundle.handleGetObject("jdbcrowsetimpl.matchcols2").toString());
} }
} }
for( int i = 0; i < columnNames.length; i++) { for( int i = 0; i < columnNames.length; i++) {
...@@ -3915,7 +3915,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -3915,7 +3915,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
public void setMatchColumn(int columnIdx) throws SQLException { public void setMatchColumn(int columnIdx) throws SQLException {
// validate, if col is ok to be set // validate, if col is ok to be set
if(columnIdx < 0) { if(columnIdx < 0) {
throw new SQLException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.matchcols1").toString()); throw new SQLException(resBundle.handleGetObject("jdbcrowsetimpl.matchcols1").toString());
} else { } else {
// set iMatchColumn // set iMatchColumn
iMatchColumns.set(0, new Integer(columnIdx)); iMatchColumns.set(0, new Integer(columnIdx));
...@@ -3941,7 +3941,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -3941,7 +3941,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
public void setMatchColumn(String columnName) throws SQLException { public void setMatchColumn(String columnName) throws SQLException {
// validate, if col is ok to be set // validate, if col is ok to be set
if(columnName.equals(null) || ((columnName = columnName.trim()) == "" )) { if(columnName.equals(null) || ((columnName = columnName.trim()) == "" )) {
throw new SQLException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.matchcols2").toString()); throw new SQLException(resBundle.handleGetObject("jdbcrowsetimpl.matchcols2").toString());
} else { } else {
// set strMatchColumn // set strMatchColumn
strMatchColumns.set(0, columnName); strMatchColumns.set(0, columnName);
...@@ -3966,9 +3966,9 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -3966,9 +3966,9 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
public void unsetMatchColumn(int columnIdx) throws SQLException { public void unsetMatchColumn(int columnIdx) throws SQLException {
// check if we are unsetting the SAME column // check if we are unsetting the SAME column
if(! iMatchColumns.get(0).equals(new Integer(columnIdx) ) ) { if(! iMatchColumns.get(0).equals(new Integer(columnIdx) ) ) {
throw new SQLException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.unsetmatch").toString()); throw new SQLException(resBundle.handleGetObject("jdbcrowsetimpl.unsetmatch").toString());
} else if(strMatchColumns.get(0) != null) { } else if(strMatchColumns.get(0) != null) {
throw new SQLException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.usecolname").toString()); throw new SQLException(resBundle.handleGetObject("jdbcrowsetimpl.usecolname").toString());
} else { } else {
// that is, we are unsetting it. // that is, we are unsetting it.
iMatchColumns.set(0, new Integer(-1)); iMatchColumns.set(0, new Integer(-1));
...@@ -3995,9 +3995,9 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -3995,9 +3995,9 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
columnName = columnName.trim(); columnName = columnName.trim();
if(!((strMatchColumns.get(0)).equals(columnName))) { if(!((strMatchColumns.get(0)).equals(columnName))) {
throw new SQLException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.unsetmatch").toString()); throw new SQLException(resBundle.handleGetObject("jdbcrowsetimpl.unsetmatch").toString());
} else if( ((Integer)(iMatchColumns.get(0))).intValue() > 0) { } else if( ((Integer)(iMatchColumns.get(0))).intValue() > 0) {
throw new SQLException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.usecolid").toString()); throw new SQLException(resBundle.handleGetObject("jdbcrowsetimpl.usecolid").toString());
} else { } else {
strMatchColumns.set(0, null); // that is, we are unsetting it. strMatchColumns.set(0, null); // that is, we are unsetting it.
} }
...@@ -4152,7 +4152,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4152,7 +4152,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
private void checkTypeConcurrency() throws SQLException { private void checkTypeConcurrency() throws SQLException {
if(rs.getType() == TYPE_FORWARD_ONLY || if(rs.getType() == TYPE_FORWARD_ONLY ||
rs.getConcurrency() == CONCUR_READ_ONLY) { rs.getConcurrency() == CONCUR_READ_ONLY) {
throw new SQLException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.resnotupd").toString()); throw new SQLException(resBundle.handleGetObject("jdbcrowsetimpl.resnotupd").toString());
} }
} }
...@@ -4642,7 +4642,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4642,7 +4642,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 6.0 * @since 6.0
*/ */
public SQLXML getSQLXML(int columnIndex) throws SQLException { public SQLXML getSQLXML(int columnIndex) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -4653,7 +4653,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4653,7 +4653,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @throws SQLException if a database access error occurs * @throws SQLException if a database access error occurs
*/ */
public SQLXML getSQLXML(String colName) throws SQLException { public SQLXML getSQLXML(String colName) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -4668,7 +4668,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4668,7 +4668,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 6.0 * @since 6.0
*/ */
public RowId getRowId(int columnIndex) throws SQLException { public RowId getRowId(int columnIndex) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -4683,7 +4683,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4683,7 +4683,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 6.0 * @since 6.0
*/ */
public RowId getRowId(String columnName) throws SQLException { public RowId getRowId(String columnName) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -4699,7 +4699,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4699,7 +4699,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 6.0 * @since 6.0
*/ */
public void updateRowId(int columnIndex, RowId x) throws SQLException { public void updateRowId(int columnIndex, RowId x) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -4715,7 +4715,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4715,7 +4715,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 6.0 * @since 6.0
*/ */
public void updateRowId(String columnName, RowId x) throws SQLException { public void updateRowId(String columnName, RowId x) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -4725,7 +4725,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4725,7 +4725,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 6.0 * @since 6.0
*/ */
public int getHoldability() throws SQLException { public int getHoldability() throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -4736,7 +4736,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4736,7 +4736,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 6.0 * @since 6.0
*/ */
public boolean isClosed() throws SQLException { public boolean isClosed() throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -4748,7 +4748,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4748,7 +4748,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 6.0 * @since 6.0
*/ */
public void updateNString(int columnIndex, String nString) throws SQLException { public void updateNString(int columnIndex, String nString) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -4760,7 +4760,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4760,7 +4760,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 6.0 * @since 6.0
*/ */
public void updateNString(String columnName, String nString) throws SQLException { public void updateNString(String columnName, String nString) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -4773,7 +4773,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4773,7 +4773,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 6.0 * @since 6.0
*/ */
public void updateNClob(int columnIndex, NClob nClob) throws SQLException { public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -4785,7 +4785,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4785,7 +4785,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 6.0 * @since 6.0
*/ */
public void updateNClob(String columnName, NClob nClob) throws SQLException { public void updateNClob(String columnName, NClob nClob) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -4800,7 +4800,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4800,7 +4800,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 6.0 * @since 6.0
*/ */
public NClob getNClob(int i) throws SQLException { public NClob getNClob(int i) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -4816,7 +4816,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4816,7 +4816,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 6.0 * @since 6.0
*/ */
public NClob getNClob(String colName) throws SQLException { public NClob getNClob(String colName) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException{ public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException{
...@@ -4836,7 +4836,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4836,7 +4836,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 1.6 * @since 1.6
*/ */
public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException { public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -4848,7 +4848,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4848,7 +4848,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 1.6 * @since 1.6
*/ */
public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException { public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -4863,7 +4863,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4863,7 +4863,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 1.6 * @since 1.6
*/ */
public void setRowId(int parameterIndex, RowId x) throws SQLException { public void setRowId(int parameterIndex, RowId x) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -4877,7 +4877,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4877,7 +4877,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 1.6 * @since 1.6
*/ */
public void setRowId(String parameterName, RowId x) throws SQLException { public void setRowId(String parameterName, RowId x) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -4897,7 +4897,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4897,7 +4897,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 1.6 * @since 1.6
*/ */
public void setNString(int parameterIndex, String value) throws SQLException { public void setNString(int parameterIndex, String value) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -4925,7 +4925,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4925,7 +4925,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 1.6 * @since 1.6
*/ */
public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException { public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -4940,7 +4940,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4940,7 +4940,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 1.6 * @since 1.6
*/ */
public void setNClob(String parameterName, NClob value) throws SQLException { public void setNClob(String parameterName, NClob value) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -4960,7 +4960,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4960,7 +4960,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 1.6 * @since 1.6
*/ */
public java.io.Reader getNCharacterStream(int columnIndex) throws SQLException { public java.io.Reader getNCharacterStream(int columnIndex) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -4980,7 +4980,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4980,7 +4980,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 1.6 * @since 1.6
*/ */
public java.io.Reader getNCharacterStream(String columnName) throws SQLException { public java.io.Reader getNCharacterStream(String columnName) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -4996,7 +4996,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -4996,7 +4996,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 1.6 * @since 1.6
*/ */
public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException { public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5013,7 +5013,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -5013,7 +5013,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 1.6 * @since 1.6
*/ */
public void updateSQLXML(String columnName, SQLXML xmlObject) throws SQLException { public void updateSQLXML(String columnName, SQLXML xmlObject) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5031,7 +5031,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -5031,7 +5031,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 1.6 * @since 1.6
*/ */
public String getNString(int columnIndex) throws SQLException { public String getNString(int columnIndex) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5049,7 +5049,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -5049,7 +5049,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
* @since 1.6 * @since 1.6
*/ */
public String getNString(String columnName) throws SQLException { public String getNString(String columnName) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5071,7 +5071,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -5071,7 +5071,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
java.io.Reader x, java.io.Reader x,
long length) long length)
throws SQLException { throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5093,7 +5093,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -5093,7 +5093,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
java.io.Reader x, java.io.Reader x,
long length) long length)
throws SQLException { throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5123,7 +5123,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable { ...@@ -5123,7 +5123,7 @@ public class JdbcRowSetImpl extends BaseRowSet implements JdbcRowSet, Joinable {
*/ */
public void updateNCharacterStream(int columnIndex, public void updateNCharacterStream(int columnIndex,
java.io.Reader x) throws SQLException { java.io.Reader x) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5155,7 +5155,7 @@ bel is the name of the column ...@@ -5155,7 +5155,7 @@ bel is the name of the column
*/ */
public void updateNCharacterStream(String columnLabel, public void updateNCharacterStream(String columnLabel,
java.io.Reader reader) throws SQLException { java.io.Reader reader) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5188,7 +5188,7 @@ bel is the name of the column ...@@ -5188,7 +5188,7 @@ bel is the name of the column
* @since 1.6 * @since 1.6
*/ */
public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException{ public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5221,7 +5221,7 @@ bel is the name of the column ...@@ -5221,7 +5221,7 @@ bel is the name of the column
* @since 1.6 * @since 1.6
*/ */
public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException { public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5256,7 +5256,7 @@ bel is the name of the column ...@@ -5256,7 +5256,7 @@ bel is the name of the column
* @since 1.6 * @since 1.6
*/ */
public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException { public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5291,7 +5291,7 @@ bel is the name of the column ...@@ -5291,7 +5291,7 @@ bel is the name of the column
* @since 1.6 * @since 1.6
*/ */
public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException { public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5323,7 +5323,7 @@ bel is the name of the column ...@@ -5323,7 +5323,7 @@ bel is the name of the column
* @since 1.6 * @since 1.6
*/ */
public void updateClob(int columnIndex, Reader reader, long length) throws SQLException { public void updateClob(int columnIndex, Reader reader, long length) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5355,7 +5355,7 @@ bel is the name of the column ...@@ -5355,7 +5355,7 @@ bel is the name of the column
* @since 1.6 * @since 1.6
*/ */
public void updateClob(String columnLabel, Reader reader, long length) throws SQLException { public void updateClob(String columnLabel, Reader reader, long length) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5389,7 +5389,7 @@ bel is the name of the column ...@@ -5389,7 +5389,7 @@ bel is the name of the column
* @since 1.6 * @since 1.6
*/ */
public void updateClob(int columnIndex, Reader reader) throws SQLException { public void updateClob(int columnIndex, Reader reader) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5424,7 +5424,7 @@ bel is the name of the column ...@@ -5424,7 +5424,7 @@ bel is the name of the column
* @since 1.6 * @since 1.6
*/ */
public void updateClob(String columnLabel, Reader reader) throws SQLException { public void updateClob(String columnLabel, Reader reader) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5458,7 +5458,7 @@ bel is the name of the column ...@@ -5458,7 +5458,7 @@ bel is the name of the column
* @since 1.6 * @since 1.6
*/ */
public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException { public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5492,7 +5492,7 @@ bel is the name of the column ...@@ -5492,7 +5492,7 @@ bel is the name of the column
* @since 1.6 * @since 1.6
*/ */
public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException { public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5528,7 +5528,7 @@ bel is the name of the column ...@@ -5528,7 +5528,7 @@ bel is the name of the column
* @since 1.6 * @since 1.6
*/ */
public void updateNClob(int columnIndex, Reader reader) throws SQLException { public void updateNClob(int columnIndex, Reader reader) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5565,7 +5565,7 @@ bel is the name of the column ...@@ -5565,7 +5565,7 @@ bel is the name of the column
* @since 1.6 * @since 1.6
*/ */
public void updateNClob(String columnLabel, Reader reader) throws SQLException { public void updateNClob(String columnLabel, Reader reader) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -5590,7 +5590,7 @@ bel is the name of the column ...@@ -5590,7 +5590,7 @@ bel is the name of the column
public void updateAsciiStream(int columnIndex, public void updateAsciiStream(int columnIndex,
java.io.InputStream x, java.io.InputStream x,
long length) throws SQLException { long length) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5614,7 +5614,7 @@ bel is the name of the column ...@@ -5614,7 +5614,7 @@ bel is the name of the column
public void updateBinaryStream(int columnIndex, public void updateBinaryStream(int columnIndex,
java.io.InputStream x, java.io.InputStream x,
long length) throws SQLException { long length) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5638,7 +5638,7 @@ bel is the name of the column ...@@ -5638,7 +5638,7 @@ bel is the name of the column
public void updateCharacterStream(int columnIndex, public void updateCharacterStream(int columnIndex,
java.io.Reader x, java.io.Reader x,
long length) throws SQLException { long length) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5662,7 +5662,7 @@ bel is the name of the column ...@@ -5662,7 +5662,7 @@ bel is the name of the column
public void updateAsciiStream(String columnLabel, public void updateAsciiStream(String columnLabel,
java.io.InputStream x, java.io.InputStream x,
long length) throws SQLException { long length) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5687,7 +5687,7 @@ bel is the name of the column ...@@ -5687,7 +5687,7 @@ bel is the name of the column
*/ */
public void updateAsciiStream(int columnIndex, public void updateAsciiStream(int columnIndex,
java.io.InputStream x) throws SQLException { java.io.InputStream x) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5713,7 +5713,7 @@ bel is the name of the column ...@@ -5713,7 +5713,7 @@ bel is the name of the column
*/ */
public void updateAsciiStream(String columnLabel, public void updateAsciiStream(String columnLabel,
java.io.InputStream x) throws SQLException { java.io.InputStream x) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -5738,7 +5738,7 @@ bel is the name of the column ...@@ -5738,7 +5738,7 @@ bel is the name of the column
public void updateBinaryStream(String columnLabel, public void updateBinaryStream(String columnLabel,
java.io.InputStream x, java.io.InputStream x,
long length) throws SQLException { long length) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5763,7 +5763,7 @@ bel is the name of the column ...@@ -5763,7 +5763,7 @@ bel is the name of the column
*/ */
public void updateBinaryStream(int columnIndex, public void updateBinaryStream(int columnIndex,
java.io.InputStream x) throws SQLException { java.io.InputStream x) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -5790,7 +5790,7 @@ bel is the name of the column ...@@ -5790,7 +5790,7 @@ bel is the name of the column
*/ */
public void updateBinaryStream(String columnLabel, public void updateBinaryStream(String columnLabel,
java.io.InputStream x) throws SQLException { java.io.InputStream x) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -5816,7 +5816,7 @@ bel is the name of the column ...@@ -5816,7 +5816,7 @@ bel is the name of the column
public void updateCharacterStream(String columnLabel, public void updateCharacterStream(String columnLabel,
java.io.Reader reader, java.io.Reader reader,
long length) throws SQLException { long length) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5841,7 +5841,7 @@ bel is the name of the column ...@@ -5841,7 +5841,7 @@ bel is the name of the column
*/ */
public void updateCharacterStream(int columnIndex, public void updateCharacterStream(int columnIndex,
java.io.Reader x) throws SQLException { java.io.Reader x) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5868,7 +5868,7 @@ bel is the name of the column ...@@ -5868,7 +5868,7 @@ bel is the name of the column
*/ */
public void updateCharacterStream(String columnLabel, public void updateCharacterStream(String columnLabel,
java.io.Reader reader) throws SQLException { java.io.Reader reader) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -5885,7 +5885,7 @@ bel is the name of the column ...@@ -5885,7 +5885,7 @@ bel is the name of the column
* @since 1.4 * @since 1.4
*/ */
public void setURL(int parameterIndex, java.net.URL x) throws SQLException{ public void setURL(int parameterIndex, java.net.URL x) throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -5914,7 +5914,7 @@ bel is the name of the column ...@@ -5914,7 +5914,7 @@ bel is the name of the column
*/ */
public void setNClob(int parameterIndex, Reader reader) public void setNClob(int parameterIndex, Reader reader)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -5942,7 +5942,7 @@ bel is the name of the column ...@@ -5942,7 +5942,7 @@ bel is the name of the column
*/ */
public void setNClob(String parameterName, Reader reader, long length) public void setNClob(String parameterName, Reader reader, long length)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -5969,7 +5969,7 @@ bel is the name of the column ...@@ -5969,7 +5969,7 @@ bel is the name of the column
*/ */
public void setNClob(String parameterName, Reader reader) public void setNClob(String parameterName, Reader reader)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -5996,7 +5996,7 @@ bel is the name of the column ...@@ -5996,7 +5996,7 @@ bel is the name of the column
*/ */
public void setNClob(int parameterIndex, Reader reader, long length) public void setNClob(int parameterIndex, Reader reader, long length)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -6012,7 +6012,7 @@ a ...@@ -6012,7 +6012,7 @@ a
* @since 1.6 * @since 1.6
*/ */
public void setNClob(int parameterIndex, NClob value) throws SQLException{ public void setNClob(int parameterIndex, NClob value) throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -6029,7 +6029,7 @@ a ...@@ -6029,7 +6029,7 @@ a
*/ */
public void setNString(String parameterName, String value) public void setNString(String parameterName, String value)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6046,7 +6046,7 @@ a ...@@ -6046,7 +6046,7 @@ a
* @since 1.6 * @since 1.6
*/ */
public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException{ public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -6066,7 +6066,7 @@ a ...@@ -6066,7 +6066,7 @@ a
*/ */
public void setNCharacterStream(String parameterName, Reader value, long length) public void setNCharacterStream(String parameterName, Reader value, long length)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6092,7 +6092,7 @@ a ...@@ -6092,7 +6092,7 @@ a
* @since 1.6 * @since 1.6
*/ */
public void setNCharacterStream(String parameterName, Reader value) throws SQLException{ public void setNCharacterStream(String parameterName, Reader value) throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6118,7 +6118,7 @@ a ...@@ -6118,7 +6118,7 @@ a
*/ */
public void setTimestamp(String parameterName, java.sql.Timestamp x, Calendar cal) public void setTimestamp(String parameterName, java.sql.Timestamp x, Calendar cal)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6144,7 +6144,7 @@ a ...@@ -6144,7 +6144,7 @@ a
*/ */
public void setClob(String parameterName, Reader reader, long length) public void setClob(String parameterName, Reader reader, long length)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -6163,7 +6163,7 @@ a ...@@ -6163,7 +6163,7 @@ a
* @since 1.6 * @since 1.6
*/ */
public void setClob (String parameterName, Clob x) throws SQLException{ public void setClob (String parameterName, Clob x) throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6188,7 +6188,7 @@ a ...@@ -6188,7 +6188,7 @@ a
*/ */
public void setClob(String parameterName, Reader reader) public void setClob(String parameterName, Reader reader)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -6210,7 +6210,7 @@ a ...@@ -6210,7 +6210,7 @@ a
*/ */
public void setDate(String parameterName, java.sql.Date x) public void setDate(String parameterName, java.sql.Date x)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6236,7 +6236,7 @@ a ...@@ -6236,7 +6236,7 @@ a
*/ */
public void setDate(String parameterName, java.sql.Date x, Calendar cal) public void setDate(String parameterName, java.sql.Date x, Calendar cal)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -6256,7 +6256,7 @@ a ...@@ -6256,7 +6256,7 @@ a
*/ */
public void setTime(String parameterName, java.sql.Time x) public void setTime(String parameterName, java.sql.Time x)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6282,7 +6282,7 @@ a ...@@ -6282,7 +6282,7 @@ a
*/ */
public void setTime(String parameterName, java.sql.Time x, Calendar cal) public void setTime(String parameterName, java.sql.Time x, Calendar cal)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6308,7 +6308,7 @@ a ...@@ -6308,7 +6308,7 @@ a
*/ */
public void setClob(int parameterIndex, Reader reader) public void setClob(int parameterIndex, Reader reader)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -6333,7 +6333,7 @@ a ...@@ -6333,7 +6333,7 @@ a
*/ */
public void setClob(int parameterIndex, Reader reader, long length) public void setClob(int parameterIndex, Reader reader, long length)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -6363,7 +6363,7 @@ a ...@@ -6363,7 +6363,7 @@ a
*/ */
public void setBlob(int parameterIndex, InputStream inputStream, long length) public void setBlob(int parameterIndex, InputStream inputStream, long length)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6395,7 +6395,7 @@ a ...@@ -6395,7 +6395,7 @@ a
*/ */
public void setBlob(int parameterIndex, InputStream inputStream) public void setBlob(int parameterIndex, InputStream inputStream)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6426,7 +6426,7 @@ a ...@@ -6426,7 +6426,7 @@ a
*/ */
public void setBlob(String parameterName, InputStream inputStream, long length) public void setBlob(String parameterName, InputStream inputStream, long length)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -6444,7 +6444,7 @@ a ...@@ -6444,7 +6444,7 @@ a
* @since 1.6 * @since 1.6
*/ */
public void setBlob (String parameterName, Blob x) throws SQLException{ public void setBlob (String parameterName, Blob x) throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6470,7 +6470,7 @@ a ...@@ -6470,7 +6470,7 @@ a
*/ */
public void setBlob(String parameterName, InputStream inputStream) public void setBlob(String parameterName, InputStream inputStream)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6516,7 +6516,7 @@ a ...@@ -6516,7 +6516,7 @@ a
*/ */
public void setObject(String parameterName, Object x, int targetSqlType, int scale) public void setObject(String parameterName, Object x, int targetSqlType, int scale)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6542,7 +6542,7 @@ a ...@@ -6542,7 +6542,7 @@ a
*/ */
public void setObject(String parameterName, Object x, int targetSqlType) public void setObject(String parameterName, Object x, int targetSqlType)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6582,7 +6582,7 @@ a ...@@ -6582,7 +6582,7 @@ a
* @since 1.4 * @since 1.4
*/ */
public void setObject(String parameterName, Object x) throws SQLException{ public void setObject(String parameterName, Object x) throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6609,7 +6609,7 @@ a ...@@ -6609,7 +6609,7 @@ a
*/ */
public void setAsciiStream(String parameterName, java.io.InputStream x, int length) public void setAsciiStream(String parameterName, java.io.InputStream x, int length)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -6636,7 +6636,7 @@ a ...@@ -6636,7 +6636,7 @@ a
*/ */
public void setBinaryStream(String parameterName, java.io.InputStream x, public void setBinaryStream(String parameterName, java.io.InputStream x,
int length) throws SQLException{ int length) throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6665,7 +6665,7 @@ a ...@@ -6665,7 +6665,7 @@ a
public void setCharacterStream(String parameterName, public void setCharacterStream(String parameterName,
java.io.Reader reader, java.io.Reader reader,
int length) throws SQLException{ int length) throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6692,7 +6692,7 @@ a ...@@ -6692,7 +6692,7 @@ a
*/ */
public void setAsciiStream(String parameterName, java.io.InputStream x) public void setAsciiStream(String parameterName, java.io.InputStream x)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -6719,7 +6719,7 @@ a ...@@ -6719,7 +6719,7 @@ a
*/ */
public void setBinaryStream(String parameterName, java.io.InputStream x) public void setBinaryStream(String parameterName, java.io.InputStream x)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6748,7 +6748,7 @@ a ...@@ -6748,7 +6748,7 @@ a
*/ */
public void setCharacterStream(String parameterName, public void setCharacterStream(String parameterName,
java.io.Reader reader) throws SQLException{ java.io.Reader reader) throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6767,7 +6767,7 @@ a ...@@ -6767,7 +6767,7 @@ a
* @since 1.4 * @since 1.4
*/ */
public void setBigDecimal(String parameterName, BigDecimal x) throws SQLException{ public void setBigDecimal(String parameterName, BigDecimal x) throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6788,7 +6788,7 @@ a ...@@ -6788,7 +6788,7 @@ a
* @since 1.4 * @since 1.4
*/ */
public void setString(String parameterName, String x) throws SQLException{ public void setString(String parameterName, String x) throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -6810,7 +6810,7 @@ a ...@@ -6810,7 +6810,7 @@ a
* @since 1.4 * @since 1.4
*/ */
public void setBytes(String parameterName, byte x[]) throws SQLException{ public void setBytes(String parameterName, byte x[]) throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6830,7 +6830,7 @@ a ...@@ -6830,7 +6830,7 @@ a
*/ */
public void setTimestamp(String parameterName, java.sql.Timestamp x) public void setTimestamp(String parameterName, java.sql.Timestamp x)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6847,7 +6847,7 @@ a ...@@ -6847,7 +6847,7 @@ a
* @since 1.4 * @since 1.4
*/ */
public void setNull(String parameterName, int sqlType) throws SQLException { public void setNull(String parameterName, int sqlType) throws SQLException {
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6884,7 +6884,7 @@ a ...@@ -6884,7 +6884,7 @@ a
*/ */
public void setNull (String parameterName, int sqlType, String typeName) public void setNull (String parameterName, int sqlType, String typeName)
throws SQLException{ throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6902,7 +6902,7 @@ a ...@@ -6902,7 +6902,7 @@ a
* @since 1.4 * @since 1.4
*/ */
public void setBoolean(String parameterName, boolean x) throws SQLException{ public void setBoolean(String parameterName, boolean x) throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -6922,7 +6922,7 @@ a ...@@ -6922,7 +6922,7 @@ a
* @since 1.4 * @since 1.4
*/ */
public void setByte(String parameterName, byte x) throws SQLException{ public void setByte(String parameterName, byte x) throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -6941,7 +6941,7 @@ a ...@@ -6941,7 +6941,7 @@ a
* @since 1.4 * @since 1.4
*/ */
public void setShort(String parameterName, short x) throws SQLException{ public void setShort(String parameterName, short x) throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -6960,7 +6960,7 @@ a ...@@ -6960,7 +6960,7 @@ a
* @since 1.4 * @since 1.4
*/ */
public void setInt(String parameterName, int x) throws SQLException{ public void setInt(String parameterName, int x) throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -6978,7 +6978,7 @@ a ...@@ -6978,7 +6978,7 @@ a
* @since 1.4 * @since 1.4
*/ */
public void setLong(String parameterName, long x) throws SQLException{ public void setLong(String parameterName, long x) throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
...@@ -6997,7 +6997,7 @@ a ...@@ -6997,7 +6997,7 @@ a
* @since 1.4 * @since 1.4
*/ */
public void setFloat(String parameterName, float x) throws SQLException{ public void setFloat(String parameterName, float x) throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -7015,7 +7015,7 @@ a ...@@ -7015,7 +7015,7 @@ a
* @since 1.4 * @since 1.4
*/ */
public void setDouble(String parameterName, double x) throws SQLException{ public void setDouble(String parameterName, double x) throws SQLException{
throw new SQLFeatureNotSupportedException(jdbcResBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString()); throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());
} }
/** /**
...@@ -7023,12 +7023,12 @@ a ...@@ -7023,12 +7023,12 @@ a
* during the deserialization process * during the deserialization process
* *
*/ */
protected void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
// Default state initialization happens here // Default state initialization happens here
ois.defaultReadObject(); ois.defaultReadObject();
// Initialization of transient Res Bundle happens here . // Initialization of transient Res Bundle happens here .
try { try {
jdbcResBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle(); resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
} catch(IOException ioe) {} } catch(IOException ioe) {}
} }
......
/* /*
* Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -153,4 +153,5 @@ public class JdbcRowSetResourceBundle implements Serializable { ...@@ -153,4 +153,5 @@ public class JdbcRowSetResourceBundle implements Serializable {
return propResBundle.handleGetObject(key); return propResBundle.handleGetObject(key);
} }
static final long serialVersionUID = 436199386225359954L;
} }
/* /*
* Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -127,6 +127,11 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet { ...@@ -127,6 +127,11 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
strMatchKey = null; strMatchKey = null;
supportedJOINs = supportedJOINs =
new boolean[] {false, true, false, false, false}; new boolean[] {false, true, false, false, false};
try {
resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
} catch(IOException ioe) {
throw new RuntimeException(ioe);
}
} }
...@@ -4306,5 +4311,22 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet { ...@@ -4306,5 +4311,22 @@ public class JoinRowSetImpl extends WebRowSetImpl implements JoinRowSet {
return crsInternal.createCopySchema(); return crsInternal.createCopySchema();
} }
/**
* This method re populates the resBundle
* during the deserialization process
*
*/
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
// Default state initialization happens here
ois.defaultReadObject();
// Initialization of transient Res Bundle happens here .
try {
resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
} catch(IOException ioe) {
throw new RuntimeException(ioe);
}
}
static final long serialVersionUID = -5590501621560008453L; static final long serialVersionUID = -5590501621560008453L;
} }
/* /*
* Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -103,6 +103,12 @@ public class WebRowSetImpl extends CachedRowSetImpl implements WebRowSet { ...@@ -103,6 +103,12 @@ public class WebRowSetImpl extends CachedRowSetImpl implements WebRowSet {
*/ */
public WebRowSetImpl(Hashtable env) throws SQLException { public WebRowSetImpl(Hashtable env) throws SQLException {
try {
resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
} catch(IOException ioe) {
throw new RuntimeException(ioe);
}
if ( env == null) { if ( env == null) {
throw new SQLException(resBundle.handleGetObject("webrowsetimpl.nullhash").toString()); throw new SQLException(resBundle.handleGetObject("webrowsetimpl.nullhash").toString());
} }
...@@ -263,5 +269,23 @@ public class WebRowSetImpl extends CachedRowSetImpl implements WebRowSet { ...@@ -263,5 +269,23 @@ public class WebRowSetImpl extends CachedRowSetImpl implements WebRowSet {
this.writeXml(oStream); this.writeXml(oStream);
} }
static final long serialVersionUID = -8771775154092422943L;
/**
* This method re populates the resBundle
* during the deserialization process
*
*/
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
// Default state initialization happens here
ois.defaultReadObject();
// Initialization of transient Res Bundle happens here .
try {
resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
} catch(IOException ioe) {
throw new RuntimeException(ioe);
}
}
static final long serialVersionUID = -8771775154092422943L;
} }
/* /*
* Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -490,4 +490,17 @@ public class CachedRowSetReader implements RowSetReader, Serializable { ...@@ -490,4 +490,17 @@ public class CachedRowSetReader implements RowSetReader, Serializable {
startPosition = pos; startPosition = pos;
} }
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
// Default state initialization happens here
ois.defaultReadObject();
// Initialization of Res Bundle happens here .
try {
resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
} catch(IOException ioe) {
throw new RuntimeException(ioe);
}
}
static final long serialVersionUID =5049738185801363801L;
} }
/* /*
* Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -31,7 +31,13 @@ import java.util.*; ...@@ -31,7 +31,13 @@ import java.util.*;
import java.io.*; import java.io.*;
import com.sun.rowset.*; import com.sun.rowset.*;
import java.text.MessageFormat;
import javax.sql.rowset.*; import javax.sql.rowset.*;
import javax.sql.rowset.serial.SQLInputImpl;
import javax.sql.rowset.serial.SerialArray;
import javax.sql.rowset.serial.SerialBlob;
import javax.sql.rowset.serial.SerialClob;
import javax.sql.rowset.serial.SerialStruct;
import javax.sql.rowset.spi.*; import javax.sql.rowset.spi.*;
...@@ -53,6 +59,7 @@ import javax.sql.rowset.spi.*; ...@@ -53,6 +59,7 @@ import javax.sql.rowset.spi.*;
* Standard JDBC RowSet implementations provide an object instance of this * Standard JDBC RowSet implementations provide an object instance of this
* writer by invoking the <code>SyncProvider.getRowSetWriter()</code> method. * writer by invoking the <code>SyncProvider.getRowSetWriter()</code> method.
* *
* @version 0.2
* @author Jonathan Bruce * @author Jonathan Bruce
* @see javax.sql.rowset.spi.SyncProvider * @see javax.sql.rowset.spi.SyncProvider
* @see javax.sql.rowset.spi.SyncFactory * @see javax.sql.rowset.spi.SyncFactory
...@@ -508,8 +515,9 @@ public class CachedRowSetWriter implements TransactionalWriter, Serializable { ...@@ -508,8 +515,9 @@ public class CachedRowSetWriter implements TransactionalWriter, Serializable {
ResultSet rs = null; ResultSet rs = null;
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if (rs.next() == true) { ResultSetMetaData rsmd = rs.getMetaData();
if (rs.next()) {
if (rs.next()) { if (rs.next()) {
/** More than one row conflict. /** More than one row conflict.
* If rs has only one row we are able to * If rs has only one row we are able to
...@@ -552,6 +560,49 @@ public class CachedRowSetWriter implements TransactionalWriter, Serializable { ...@@ -552,6 +560,49 @@ public class CachedRowSetWriter implements TransactionalWriter, Serializable {
orig = origVals.getObject(i); orig = origVals.getObject(i);
curr = crs.getObject(i); curr = crs.getObject(i);
rsval = rs.getObject(i); rsval = rs.getObject(i);
/*
* the following block creates equivalent objects
* that would have been created if this rs is populated
* into a CachedRowSet so that comparison of the column values
* from the ResultSet and CachedRowSet are possible
*/
Map map = (crs.getTypeMap() == null)?con.getTypeMap():crs.getTypeMap();
if (rsval instanceof Struct) {
Struct s = (Struct)rsval;
// look up the class in the map
Class c = null;
c = (Class)map.get(s.getSQLTypeName());
if (c != null) {
// create new instance of the class
SQLData obj = null;
try {
obj = (SQLData)c.newInstance();
} catch (java.lang.InstantiationException ex) {
throw new SQLException(MessageFormat.format(resBundle.handleGetObject("cachedrowsetimpl.unableins").toString(),
ex.getMessage()));
} catch (java.lang.IllegalAccessException ex) {
throw new SQLException(MessageFormat.format(resBundle.handleGetObject("cachedrowsetimpl.unableins").toString(),
ex.getMessage()));
}
// get the attributes from the struct
Object attribs[] = s.getAttributes(map);
// create the SQLInput "stream"
SQLInputImpl sqlInput = new SQLInputImpl(attribs, map);
// read the values...
obj.readSQL(sqlInput, s.getSQLTypeName());
rsval = obj;
}
} else if (rsval instanceof SQLData) {
rsval = new SerialStruct((SQLData)rsval, map);
} else if (rsval instanceof Blob) {
rsval = new SerialBlob((Blob)rsval);
} else if (rsval instanceof Clob) {
rsval = new SerialClob((Clob)rsval);
} else if (rsval instanceof java.sql.Array) {
rsval = new SerialArray((java.sql.Array)rsval, map);
}
// reset boolNull if it had been set // reset boolNull if it had been set
boolNull = true; boolNull = true;
...@@ -669,6 +720,9 @@ public class CachedRowSetWriter implements TransactionalWriter, Serializable { ...@@ -669,6 +720,9 @@ public class CachedRowSetWriter implements TransactionalWriter, Serializable {
} }
} //end for } //end for
rs.close();
pstmt.close();
this.crsResolve.insertRow(); this.crsResolve.insertRow();
this.crsResolve.moveToCurrentRow(); this.crsResolve.moveToCurrentRow();
...@@ -1179,11 +1233,22 @@ public class CachedRowSetWriter implements TransactionalWriter, Serializable { ...@@ -1179,11 +1233,22 @@ public class CachedRowSetWriter implements TransactionalWriter, Serializable {
private void buildKeyDesc(CachedRowSet crs) throws SQLException { private void buildKeyDesc(CachedRowSet crs) throws SQLException {
keyCols = crs.getKeyColumns(); keyCols = crs.getKeyColumns();
ResultSetMetaData resultsetmd = crs.getMetaData();
if (keyCols == null || keyCols.length == 0) { if (keyCols == null || keyCols.length == 0) {
keyCols = new int[callerColumnCount]; ArrayList<Integer> listKeys = new ArrayList<Integer>();
for (int i = 0; i < keyCols.length; ) {
keyCols[i] = ++i; for (int i = 0; i < callerColumnCount; i++ ) {
if(resultsetmd.getColumnType(i+1) != java.sql.Types.CLOB &&
resultsetmd.getColumnType(i+1) != java.sql.Types.STRUCT &&
resultsetmd.getColumnType(i+1) != java.sql.Types.SQLXML &&
resultsetmd.getColumnType(i+1) != java.sql.Types.BLOB &&
resultsetmd.getColumnType(i+1) != java.sql.Types.ARRAY &&
resultsetmd.getColumnType(i+1) != java.sql.Types.OTHER )
listKeys.add(i+1);
} }
keyCols = new int[listKeys.size()];
for (int i = 0; i < listKeys.size(); i++ )
keyCols[i] = listKeys.get(i);
} }
params = new Object[keyCols.length]; params = new Object[keyCols.length];
} }
...@@ -1359,4 +1424,17 @@ public class CachedRowSetWriter implements TransactionalWriter, Serializable { ...@@ -1359,4 +1424,17 @@ public class CachedRowSetWriter implements TransactionalWriter, Serializable {
} }
} }
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
// Default state initialization happens here
ois.defaultReadObject();
// Initialization of Res Bundle happens here .
try {
resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
} catch(IOException ioe) {
throw new RuntimeException(ioe);
}
}
static final long serialVersionUID =-8506030970299413976L;
} }
/* /*
* Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -157,4 +157,23 @@ public class InsertRow extends BaseRow implements Serializable, Cloneable { ...@@ -157,4 +157,23 @@ public class InsertRow extends BaseRow implements Serializable, Cloneable {
origVals[idx - 1] = val; origVals[idx - 1] = val;
markColInserted(idx - 1); markColInserted(idx - 1);
} }
/**
* This method re populates the resBundle
* during the deserialization process
*
*/
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
// Default state initialization happens here
ois.defaultReadObject();
// Initialization of transient Res Bundle happens here .
try {
resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
} catch(IOException ioe) {
throw new RuntimeException(ioe);
}
}
static final long serialVersionUID = 1066099658102869344L;
} }
/* /*
* Copyright (c) 2004, 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -35,6 +35,7 @@ import javax.sql.rowset.spi.*; ...@@ -35,6 +35,7 @@ import javax.sql.rowset.spi.*;
import com.sun.rowset.*; import com.sun.rowset.*;
import java.io.IOException; import java.io.IOException;
import java.io.ObjectInputStream;
/** /**
* There will be two sets of data which will be maintained by the rowset at the * There will be two sets of data which will be maintained by the rowset at the
...@@ -4837,4 +4838,23 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver { ...@@ -4837,4 +4838,23 @@ public class SyncResolverImpl extends CachedRowSetImpl implements SyncResolver {
throws SQLException { throws SQLException {
throw new UnsupportedOperationException("Operation not yet supported"); throw new UnsupportedOperationException("Operation not yet supported");
} }
/**
* This method re populates the resBundle
* during the deserialization process
*
*/
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
// Default state initialization happens here
ois.defaultReadObject();
// Initialization of transient Res Bundle happens here .
try {
resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
} catch(IOException ioe) {
throw new RuntimeException(ioe);
}
}
static final long serialVersionUID = -3345004441725080251L;
} //end class } //end class
/* /*
* Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -216,4 +216,22 @@ public class WebRowSetXmlReader implements XmlReader, Serializable { ...@@ -216,4 +216,22 @@ public class WebRowSetXmlReader implements XmlReader, Serializable {
public void readData(RowSetInternal caller) { public void readData(RowSetInternal caller) {
} }
/**
* This method re populates the resBundle
* during the deserialization process
*
*/
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
// Default state initialization happens here
ois.defaultReadObject();
// Initialization of transient Res Bundle happens here .
try {
resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
} catch(IOException ioe) {
throw new RuntimeException(ioe);
}
}
static final long serialVersionUID = -9127058392819008014L;
} }
/* /*
* Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -663,4 +663,23 @@ public class WebRowSetXmlWriter implements XmlWriter, Serializable { ...@@ -663,4 +663,23 @@ public class WebRowSetXmlWriter implements XmlWriter, Serializable {
return s; return s;
} }
/**
* This method re populates the resBundle
* during the deserialization process
*
*/
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
// Default state initialization happens here
ois.defaultReadObject();
// Initialization of transient Res Bundle happens here .
try {
resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
} catch(IOException ioe) {
throw new RuntimeException(ioe);
}
}
static final long serialVersionUID = 7163134986189677641L;
} }
/* /*
* Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -245,4 +245,18 @@ public final class RIOptimisticProvider extends SyncProvider implements Serializ ...@@ -245,4 +245,18 @@ public final class RIOptimisticProvider extends SyncProvider implements Serializ
public String getVendor() { public String getVendor() {
return this.vendorName; return this.vendorName;
} }
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
// Default state initialization happens here
ois.defaultReadObject();
// Initialization of transient Res Bundle happens here .
try {
resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
} catch(IOException ioe) {
throw new RuntimeException(ioe);
}
}
static final long serialVersionUID =-3143367176751761936L;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册