jdk/src/share/classes/java/sql/CallableStatement.java
changeset 23590 ffd8b0b70511
parent 21950 db3c826749f7
child 25976 4de01a56e3ee
equal deleted inserted replaced
23589:05e692d15fcd 23590:ffd8b0b70511
  1158      * or <code>Array</code>, the driver should pass it to the database as a
  1158      * or <code>Array</code>, the driver should pass it to the database as a
  1159      * value of the corresponding SQL type.
  1159      * value of the corresponding SQL type.
  1160      * <P>
  1160      * <P>
  1161      * This method throws an exception if there is an ambiguity, for example, if the
  1161      * This method throws an exception if there is an ambiguity, for example, if the
  1162      * object is of a class implementing more than one of the interfaces named above.
  1162      * object is of a class implementing more than one of the interfaces named above.
  1163      *<p>
  1163      * <p>
  1164      *<b>Note:</b> Not all databases allow for a non-typed Null to be sent to
  1164      *<b>Note:</b> Not all databases allow for a non-typed Null to be sent to
  1165      * the backend. For maximum portability, the <code>setNull</code> or the
  1165      * the backend. For maximum portability, the <code>setNull</code> or the
  1166      * <code>setObject(String parameterName, Object x, int sqlType)</code>
  1166      * <code>setObject(String parameterName, Object x, int sqlType)</code>
  1167      * method should be used
  1167      * method should be used
  1168      * instead of <code>setObject(String parameterName, Object x)</code>.
  1168      * instead of <code>setObject(String parameterName, Object x)</code>.
  1169      *<p>
  1169      *
  1170      * @param parameterName the name of the parameter
  1170      * @param parameterName the name of the parameter
  1171      * @param x the object containing the input parameter value
  1171      * @param x the object containing the input parameter value
  1172      * @exception SQLException if parameterName does not correspond to a named
  1172      * @exception SQLException if parameterName does not correspond to a named
  1173      * parameter; if a database access error occurs,
  1173      * parameter; if a database access error occurs,
  1174      * this method is called on a closed <code>CallableStatement</code> or if the given
  1174      * this method is called on a closed <code>CallableStatement</code> or if the given
  2023     /**
  2023     /**
  2024      * Retrieves the value of the designated <code>NCHAR</code>,
  2024      * Retrieves the value of the designated <code>NCHAR</code>,
  2025      * <code>NVARCHAR</code>
  2025      * <code>NVARCHAR</code>
  2026      * or <code>LONGNVARCHAR</code> parameter as
  2026      * or <code>LONGNVARCHAR</code> parameter as
  2027      * a <code>String</code> in the Java programming language.
  2027      * a <code>String</code> in the Java programming language.
  2028      *  <p>
  2028      * <p>
  2029      * For the fixed-length type JDBC <code>NCHAR</code>,
  2029      * For the fixed-length type JDBC <code>NCHAR</code>,
  2030      * the <code>String</code> object
  2030      * the <code>String</code> object
  2031      * returned has exactly the same value the SQL
  2031      * returned has exactly the same value the SQL
  2032      * <code>NCHAR</code> value had in the
  2032      * <code>NCHAR</code> value had in the
  2033      * database, including any padding added by the database.
  2033      * database, including any padding added by the database.