You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2003/12/26 17:32:31 UTC

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

dirkv       2003/12/26 08:32:31

  Modified:    dbcp/src/java/org/apache/commons/dbcp
                        DelegatingPreparedStatement.java
  Log:
  small typos / cleanup
  
  Revision  Changes    Path
  1.18      +10 -10    jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/DelegatingPreparedStatement.java
  
  Index: DelegatingPreparedStatement.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/DelegatingPreparedStatement.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- DelegatingPreparedStatement.java	26 Dec 2003 15:43:55 -0000	1.17
  +++ DelegatingPreparedStatement.java	26 Dec 2003 16:32:31 -0000	1.18
  @@ -160,6 +160,7 @@
       public void clearWarnings() throws SQLException { checkOpen(); _stmt.clearWarnings();}
       public void setCursorName(String name) throws SQLException { checkOpen(); _stmt.setCursorName(name);}
       public boolean execute(String sql) throws SQLException { checkOpen(); return _stmt.execute(sql);}
  +    
       public int getUpdateCount() throws SQLException { checkOpen(); return _stmt.getUpdateCount();}
       public boolean getMoreResults() throws SQLException { checkOpen(); return _stmt.getMoreResults();}
       public void setFetchDirection(int direction) throws SQLException { checkOpen(); _stmt.setFetchDirection(direction);}
  @@ -183,7 +184,7 @@
       public void setDouble(int parameterIndex, double x) throws SQLException { checkOpen(); _stmt.setDouble(parameterIndex,x);}
       public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException { checkOpen(); _stmt.setBigDecimal(parameterIndex,x);}
       public void setString(int parameterIndex, String x) throws SQLException { checkOpen(); _stmt.setString(parameterIndex,x);}
  -    public void setBytes(int parameterIndex, byte x[]) throws SQLException { checkOpen(); _stmt.setBytes(parameterIndex,x);}
  +    public void setBytes(int parameterIndex, byte[] x) throws SQLException { checkOpen(); _stmt.setBytes(parameterIndex,x);}
       public void setDate(int parameterIndex, java.sql.Date x) throws SQLException { checkOpen(); _stmt.setDate(parameterIndex,x);}
       public void setTime(int parameterIndex, java.sql.Time x) throws SQLException { checkOpen(); _stmt.setTime(parameterIndex,x);}
       public void setTimestamp(int parameterIndex, java.sql.Timestamp x) throws SQLException { checkOpen(); _stmt.setTimestamp(parameterIndex,x);}
  @@ -198,15 +199,15 @@
       public boolean execute() throws SQLException { checkOpen(); return _stmt.execute();}
       public void addBatch() throws SQLException { checkOpen(); _stmt.addBatch();}
       public void setCharacterStream(int parameterIndex, java.io.Reader reader, int length) throws SQLException { checkOpen(); _stmt.setCharacterStream(parameterIndex,reader,length);}
  -    public void setRef (int i, Ref x) throws SQLException { checkOpen(); _stmt.setRef(i,x);}
  -    public void setBlob (int i, Blob x) throws SQLException { checkOpen(); _stmt.setBlob(i,x);}
  -    public void setClob (int i, Clob x) throws SQLException { checkOpen(); _stmt.setClob(i,x);}
  -    public void setArray (int i, Array x) throws SQLException { checkOpen(); _stmt.setArray(i,x);}
  +    public void setRef(int i, Ref x) throws SQLException { checkOpen(); _stmt.setRef(i,x);}
  +    public void setBlob(int i, Blob x) throws SQLException { checkOpen(); _stmt.setBlob(i,x);}
  +    public void setClob(int i, Clob x) throws SQLException { checkOpen(); _stmt.setClob(i,x);}
  +    public void setArray(int i, Array x) throws SQLException { checkOpen(); _stmt.setArray(i,x);}
       public ResultSetMetaData getMetaData() throws SQLException { checkOpen(); return _stmt.getMetaData();}
       public void setDate(int parameterIndex, java.sql.Date x, Calendar cal) throws SQLException { checkOpen(); _stmt.setDate(parameterIndex,x,cal);}
       public void setTime(int parameterIndex, java.sql.Time x, Calendar cal) throws SQLException { checkOpen(); _stmt.setTime(parameterIndex,x,cal);}
       public void setTimestamp(int parameterIndex, java.sql.Timestamp x, Calendar cal) throws SQLException { checkOpen(); _stmt.setTimestamp(parameterIndex,x,cal);}
  -    public void setNull (int paramIndex, int sqlType, String typeName) throws SQLException { checkOpen(); _stmt.setNull(paramIndex,sqlType,typeName);}
  +    public void setNull(int paramIndex, int sqlType, String typeName) throws SQLException { checkOpen(); _stmt.setNull(paramIndex,sqlType,typeName);}
   
       // ------------------- JDBC 3.0 -----------------------------------------
       // Will be commented by the build process on a JDBC 2.0 system
  @@ -276,5 +277,4 @@
       }
   
   /* JDBC_3_ANT_KEY_END */
  -
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org