List:Commits« Previous MessageNext Message »
From:tikeda Date:February 24 2006 2:26am
Subject:Connector/J commit: r4982 - branches/branch_5_1/connector-j/src/com/mysql/jdbc
View as plain text  
Modified:
   branches/branch_5_1/connector-j/src/com/mysql/jdbc/CallableStatement.java
   branches/branch_5_1/connector-j/src/com/mysql/jdbc/ResultSet.java
   branches/branch_5_1/connector-j/src/com/mysql/jdbc/UpdatableResultSet.java
Log:
added/modified javadoc comment to ResultSet.java/UpdatableResultSet.java

Modified: branches/branch_5_1/connector-j/src/com/mysql/jdbc/CallableStatement.java
===================================================================
--- branches/branch_5_1/connector-j/src/com/mysql/jdbc/CallableStatement.java	2006-02-24 01:46:24 UTC (rev 4981)
+++ branches/branch_5_1/connector-j/src/com/mysql/jdbc/CallableStatement.java	2006-02-24 02:26:00 UTC (rev 4982)
@@ -1926,15 +1926,22 @@
 		throw new ToBeImplementedException();
 	}
 
+    /**
+     * @see java.sql.CallableStatement#setNString(int, java.lang.String)
+     */
 	public void setNString(int parameterIndex, String value)
 			throws SQLException {
-		throw new ToBeImplementedException();
+		setNString(parameterIndex, value);
 	}
-
+    
+    /**
+     * @see java.sql.CallableStatement#setNString(java.lang.String,
+     *      java.lang.String)
+     */
 	public void setNString(String parameterName, String value)
 			throws SQLException {
-		throw new ToBeImplementedException();
-	}
+        setNString(getNamedParamIndex(parameterName, false), value);
+    }
 
 	/**
 	 * @see java.sql.CallableStatement#setNull(java.lang.String, int)

Modified: branches/branch_5_1/connector-j/src/com/mysql/jdbc/ResultSet.java
===================================================================
--- branches/branch_5_1/connector-j/src/com/mysql/jdbc/ResultSet.java	2006-02-24 01:46:24 UTC (rev 4981)
+++ branches/branch_5_1/connector-j/src/com/mysql/jdbc/ResultSet.java	2006-02-24 02:26:00 UTC (rev 4982)
@@ -7901,29 +7901,101 @@
 		updateLong(findColumn(columnName), x);
 	}
 
+    /**
+     * JDBC 4.0 Update a column with a character stream value. The updateXXX()
+     * methods are used to update column values in the current row, or the
+     * insert row. The updateXXX() methods do not update the underlying
+     * database, instead the updateRow() or insertRow() methods are called to
+     * update the database.
+     * 
+     * @param columnIndex
+     *            the first column is 1, the second is 2, ...
+     * @param x
+     *            the new column value
+     * @param length
+     *            the length of the stream
+     * 
+     * @exception SQLException
+     *                if a database-access error occurs
+     * @throws NotUpdatable
+     *             DOCUMENT ME!
+     */
 	public void updateNCharacterStream(int columnIndex, Reader x, int length)
 			throws SQLException {
         throw new NotUpdatable();
 	}
 
+    /**
+     * JDBC 4.0 Update a column with a character stream value. The updateXXX()
+     * methods are used to update column values in the current row, or the
+     * insert row. The updateXXX() methods do not update the underlying
+     * database, instead the updateRow() or insertRow() methods are called to
+     * update the database.
+     * 
+     * @param columnName
+     *            the name of the column
+     * @param reader
+     *            the stream to update the column with
+     * @param length
+     *            of the stream
+     * 
+     * @throws SQLException
+     *             if a database-access error occurs
+     */
 	public void updateNCharacterStream(String columnName, Reader reader,
 			int length) throws SQLException {
 		updateNCharacterStream(findColumn(columnName), reader, length);
 	}
 
+    /**
+     * @see ResultSet#updateNClob(int, NClob)
+     */
 	public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
         throw new NotUpdatable();
 	}
 
+    /**
+     * @see ResultSet#updateNClob(String, NClob)
+     */
 	public void updateNClob(String columnName, NClob nClob) throws SQLException {
 		updateNClob(findColumn(columnName), nClob);
 	}
-
+    
+    /**
+     * JDBC 4.0 Update a column with a String value. The updateXXX() methods are
+     * used to update column values in the current row, or the insert row. The
+     * updateXXX() methods do not update the underlying database, instead the
+     * updateRow() or insertRow() methods are called to update the database.
+     * 
+     * @param columnIndex
+     *            the first column is 1, the second is 2, ...
+     * @param nString
+     *            the new column value
+     * 
+     * @exception SQLException
+     *                if a database-access error occurs
+     * @throws NotUpdatable
+     *             DOCUMENT ME!
+     */
 	public void updateNString(int columnIndex, String nString)
 			throws SQLException {
         throw new NotUpdatable();
 	}
 
+    /**
+     * JDBC 4.0 Update a column with a String value. The updateXXX() methods are
+     * used to update column values in the current row, or the insert row. The
+     * updateXXX() methods do not update the underlying database, instead the
+     * updateRow() or insertRow() methods are called to update the database.
+     * 
+     * @param columnName
+     *            the name of the column
+     * @param nString
+     *            the new column value
+     * 
+     * @exception SQLException
+     *                if a database-access error occurs
+     */
 	public void updateNString(String columnName, String nString)
 			throws SQLException {
 		updateNString(findColumn(columnName), nString);

Modified: branches/branch_5_1/connector-j/src/com/mysql/jdbc/UpdatableResultSet.java
===================================================================
--- branches/branch_5_1/connector-j/src/com/mysql/jdbc/UpdatableResultSet.java	2006-02-24 01:46:24 UTC (rev 4981)
+++ branches/branch_5_1/connector-j/src/com/mysql/jdbc/UpdatableResultSet.java	2006-02-24 02:26:00 UTC (rev 4982)
@@ -1855,7 +1855,7 @@
 	}
     
     /**
-     * @see ResultSet#updateClob(int, Clob)
+     * @see ResultSet#updateNClob(int, NClob)
      */
     public void updateClob(String columnName, java.sql.Clob clob)
             throws SQLException {
@@ -1863,7 +1863,7 @@
     }
     
     /**
-     * @see ResultSet#updateClob(int, Clob)
+     * @see ResultSet#updateNClob(int, NClob)
      */
     public void updateNClob(int columnIndex, java.sql.NClob nClob)
             throws SQLException {

Thread
Connector/J commit: r4982 - branches/branch_5_1/connector-j/src/com/mysql/jdbctikeda24 Feb