You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by jm...@apache.org on 2002/08/05 08:25:59 UTC

cvs commit: jakarta-commons/dbcp/src/java/org/apache/commons/dbcp DelegatingResultSet.java DelegatingCallableStatement.java

jmcnally    2002/08/04 23:25:59

  Modified:    dbcp/src/java/org/apache/commons/dbcp
                        DelegatingResultSet.java
                        DelegatingCallableStatement.java
  Log:
  added deprecated tags to methods that wrap deprecated methods.
  
  Revision  Changes    Path
  1.3       +7 -3      jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/DelegatingResultSet.java
  
  Index: DelegatingResultSet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/DelegatingResultSet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DelegatingResultSet.java	29 May 2002 01:24:09 -0000	1.2
  +++ DelegatingResultSet.java	5 Aug 2002 06:25:59 -0000	1.3
  @@ -142,12 +142,14 @@
       public long getLong(int columnIndex) throws SQLException { return _res.getLong(columnIndex); }
       public float getFloat(int columnIndex) throws SQLException { return _res.getFloat(columnIndex); }
       public double getDouble(int columnIndex) throws SQLException { return _res.getDouble(columnIndex); }
  +    /** @deprecated */
       public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException { return _res.getBigDecimal(columnIndex); }
       public byte[] getBytes(int columnIndex) throws SQLException { return _res.getBytes(columnIndex); }
       public Date getDate(int columnIndex) throws SQLException { return _res.getDate(columnIndex); }
       public Time getTime(int columnIndex) throws SQLException { return _res.getTime(columnIndex); }
       public Timestamp getTimestamp(int columnIndex) throws SQLException { return _res.getTimestamp(columnIndex); }
       public InputStream getAsciiStream(int columnIndex) throws SQLException { return _res.getAsciiStream(columnIndex); }
  +    /** @deprecated */
       public InputStream getUnicodeStream(int columnIndex) throws SQLException { return _res.getUnicodeStream(columnIndex); }
       public InputStream getBinaryStream(int columnIndex) throws SQLException { return _res.getBinaryStream(columnIndex); }
       public String getString(String columnName) throws SQLException { return _res.getString(columnName); }
  @@ -158,12 +160,14 @@
       public long getLong(String columnName) throws SQLException { return _res.getLong(columnName); }
       public float getFloat(String columnName) throws SQLException { return _res.getFloat(columnName); }
       public double getDouble(String columnName) throws SQLException { return _res.getDouble(columnName); }
  +    /** @deprecated */
       public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException { return _res.getBigDecimal(columnName); }
       public byte[] getBytes(String columnName) throws SQLException { return _res.getBytes(columnName); }
       public Date getDate(String columnName) throws SQLException { return _res.getDate(columnName); }
       public Time getTime(String columnName) throws SQLException { return _res.getTime(columnName); }
       public Timestamp getTimestamp(String columnName) throws SQLException { return _res.getTimestamp(columnName); }
       public InputStream getAsciiStream(String columnName) throws SQLException { return _res.getAsciiStream(columnName); }
  +    /** @deprecated */
       public InputStream getUnicodeStream(String columnName) throws SQLException { return _res.getUnicodeStream(columnName); }
       public InputStream getBinaryStream(String columnName) throws SQLException { return _res.getBinaryStream(columnName); }
       public SQLWarning getWarnings() throws SQLException { return _res.getWarnings();  }
  
  
  
  1.4       +5 -3      jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/DelegatingCallableStatement.java
  
  Index: DelegatingCallableStatement.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/DelegatingCallableStatement.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DelegatingCallableStatement.java	29 Jun 2002 17:36:37 -0000	1.3
  +++ DelegatingCallableStatement.java	5 Aug 2002 06:25:59 -0000	1.4
  @@ -172,6 +172,7 @@
       public long getLong(int parameterIndex) throws SQLException { return _stmt.getLong( parameterIndex);  }
       public float getFloat(int parameterIndex) throws SQLException { return _stmt.getFloat( parameterIndex);  }
       public double getDouble(int parameterIndex) throws SQLException { return _stmt.getDouble( parameterIndex);  }
  +    /** @deprecated */
       public BigDecimal getBigDecimal(int parameterIndex, int scale) throws SQLException { return _stmt.getBigDecimal( parameterIndex,  scale);  }
       public byte[] getBytes(int parameterIndex) throws SQLException { return _stmt.getBytes( parameterIndex);  }
       public Date getDate(int parameterIndex) throws SQLException { return _stmt.getDate( parameterIndex);  }
  @@ -204,6 +205,7 @@
       public void setTime(int parameterIndex, Time x) throws SQLException { _stmt.setTime( parameterIndex,  x);  }
       public void setTimestamp(int parameterIndex, Timestamp x) throws SQLException { _stmt.setTimestamp( parameterIndex,  x);  }
       public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException { _stmt.setAsciiStream( parameterIndex,  x,  length);  }
  +    /** @deprecated */
       public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException { _stmt.setUnicodeStream( parameterIndex,  x,  length);  }
       public void setBinaryStream(int parameterIndex, InputStream x, int length) throws SQLException { _stmt.setBinaryStream( parameterIndex,  x,  length);  }
       public void clearParameters() throws SQLException { _stmt.clearParameters();  }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>