📄 embedcallablestatement20.java
字号:
throws SQLException { throw Util.notImplemented(); } /** * JDBC 3.0 * * Retrieves the value of a JDBC DATE parameter as a java.sql.Date object, * using the given Calendar object to construct the date object. * * @param parameterName - the name of the parameter * @param cal - the Calendar object the driver will use to construct the date * @return the parameter value. If the value is SQL NULL, the result is null. * @exception SQLException Feature not implemented for now. */ public Date getDate(String parameterName, Calendar cal) throws SQLException { throw Util.notImplemented(); } /** * JDBC 3.0 * * Sets the designated parameter to the given java.sql.Time value. The driver * converts this to an SQL TIME value when it sends it to the database. * * @param parameterName - the name of the parameter * @param x - the parameter value * @exception SQLException Feature not implemented for now. */ public void setTime(String parameterName, Time x) throws SQLException { throw Util.notImplemented(); } /** * JDBC 3.0 * * Retrieves the value of a JDBC TIME parameter as ajava.sql.Time object * * @param parameterName - the name of the parameter * @return the parameter value. If the value is SQL NULL, the result is null. * @exception SQLException Feature not implemented for now. */ public Time getTime(String parameterName) throws SQLException { throw Util.notImplemented(); } /** * JDBC 3.0 * * Retrieves the value of a JDBC TIME parameter as a java.sql.Time object, * using the given Calendar object to construct the time object. * * @param parameterName - the name of the parameter * @param cal - the Calendar object the driver will use to construct the time * @return the parameter value. If the value is SQL NULL, the result is null. * @exception SQLException Feature not implemented for now. */ public Time getTime(String parameterName, Calendar cal) throws SQLException { throw Util.notImplemented(); } /** * JDBC 3.0 * * Sets the designated parameter to the given java.sql.Time value using the * Calendar object * * @param parameterName - the name of the parameter * @param x - the parameter value * @param cal - the Calendar object the driver will use to construct the time * @exception SQLException Feature not implemented for now. */ public void setTime(String parameterName, Time x, Calendar cal) throws SQLException { throw Util.notImplemented(); } /** * JDBC 3.0 * * Sets the designated parameter to the given java.sql.Timestamp value. The driver * converts this to an SQL TIMESTAMP value when it sends it to the database. * * @param parameterName - the name of the parameter * @param x - the parameter value * @exception SQLException Feature not implemented for now. */ public void setTimestamp(String parameterName, Timestamp x) throws SQLException { throw Util.notImplemented(); } /** * JDBC 3.0 * * Sets the designated parameter to the given java.sql.Timestamp value, using the * given Calendar object * * @param parameterName - the name of the parameter * @param x - the parameter value * @param cal - the Calendar object the driver will use to construct the timestamp. * @exception SQLException Feature not implemented for now. */ public void setTimestamp(String parameterName, Timestamp x, Calendar cal) throws SQLException { throw Util.notImplemented(); } /** * JDBC 3.0 * * Retrieves the value of a JDBC TIMESTAMP parameter as a java.sql.Timestamp object * * @param parameterName - the name of the parameter * @return the parameter value. If the value is SQL NULL, the result is null. * @exception SQLException Feature not implemented for now. */ public Timestamp getTimestamp(String parameterName) throws SQLException { throw Util.notImplemented(); } /** * JDBC 3.0 * * Retrieves the value of a JDBC TIMESTAMP parameter as a java.sql.Timestamp object, * using the given Calendar object to construct the Timestamp object. * * @param parameterName - the name of the parameter * @param cal - the Calendar object the driver will use to construct the Timestamp * @return the parameter value. If the value is SQL NULL, the result is null. * @exception SQLException Feature not implemented for now. */ public Timestamp getTimestamp(String parameterName, Calendar cal) throws SQLException { throw Util.notImplemented(); } /** * JDBC 3.0 * * Sets the designated parameter to the given input stream, which will have the * specified number of bytes. * * @param parameterName - the name of the parameter * @param x - the Java input stream that contains the ASCII parameter value * @param length - the number of bytes in the stream * @exception SQLException Feature not implemented for now. */ public void setAsciiStream(String parameterName, InputStream x, int length) throws SQLException { throw Util.notImplemented(); } /** * JDBC 3.0 * * Sets the designated parameter to the given input stream, which will have the * specified number of bytes. * * @param parameterName - the name of the parameter * @param x - the Java input stream that contains the binary parameter value * @param length - the number of bytes in the stream * @exception SQLException Feature not implemented for now. */ public void setBinaryStream(String parameterName, InputStream x, int length) throws SQLException { throw Util.notImplemented(); } /** * JDBC 3.0 * * Sets the designated parameter to the given Reader object, which is the given * number of characters long. * * @param parameterName - the name of the parameter * @param reader - the java.io.Reader object that contains the UNICODE data * @param length - the number of characters in the stream * @exception SQLException Feature not implemented for now. */ public void setCharacterStream(String parameterName, Reader reader, int length) throws SQLException { throw Util.notImplemented(); } /** * JDBC 3.0 * * Sets the value of the designated parameter with the given object. The second * argument must be an object type; for integral values, the java.lang equivalent * objects should be used. * * @param parameterName - the name of the parameter * @param x - the object containing the input parameter value * @param targetSqlType - the SQL type (as defined in java.sql.Types) to be sent to * the database. The scale argument may further qualify this type. * @param scale - for java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types, this * is the number of digits after the decimal point. For all other types, this value * will be ignored. * @exception SQLException Feature not implemented for now. */ public void setObject(String parameterName, Object x, int targetSqlType, int scale) throws SQLException { throw Util.notImplemented(); } /** * JDBC 3.0 * * Retrieves the value of a parameter as an Object in the java programming language. * * @param parameterName - the name of the parameter * @return a java.lang.Object holding the OUT parameter value * @exception SQLException Feature not implemented for now. */ public Object getObject(String parameterName) throws SQLException { throw Util.notImplemented(); } /** * JDBC 3.0 * * Returns an object representing the value of OUT parameter i and uses map for * the custom mapping of the parameter value. * * @param parameterName - the name of the parameter * @param map - the mapping from SQL type names to Java classes * @return a java.lang.Object holding the OUT parameter value * @exception SQLException Feature not implemented for now. */ public Object getObject(String parameterName, Map map) throws SQLException { if( map == null) throw Util.generateCsSQLException(SQLState.INVALID_API_PARAMETER,map,"map", "java.sql.CallableStatement.getObject"); if(!(map.isEmpty())) throw Util.notImplemented(); // Map is empty so call the normal getObject method. return getObject(parameterName); } /** * JDBC 3.0 * * Sets the value of the designated parameter with the given object. This method * is like the method setObject above, except that it assumes a scale of zero. * * @param parameterName - the name of the parameter * @param x - the object containing the input parameter value * @param targetSqlType - the SQL type (as defined in java.sql.Types) to be sent to * the database. * @exception SQLException Feature not implemented for now. */ public void setObject(String parameterName, Object x, int targetSqlType) throws SQLException { throw Util.notImplemented(); } /** * JDBC 3.0 * * Sets the value of the designated parameter with the given object. The second * parameter must be of type Object; therefore, the java.lang equivalent objects * should be used for built-in types. * * @param parameterName - the name of the parameter * @param x - the object containing the input parameter value * @exception SQLException Feature not implemented for now. */ public void setObject(String parameterName, Object x) throws SQLException { throw Util.notImplemented(); } /* ** Methods using BigDecimal, moved out of EmbedPreparedStatement ** to allow that class to support JSR169. */ /** * Set a parameter to a java.lang.BigDecimal value. * The driver converts this to a SQL NUMERIC value when * it sends it to the database. * * @param parameterIndex the first parameter is 1, the second is 2, ... * @param x the parameter value * @exception SQLException thrown on failure. */ public final void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException { checkStatus(); try { /* JDBC is one-based, DBMS is zero-based */ getParms().getParameterForSet(parameterIndex - 1).setValue(x); } catch (Throwable t) { throw EmbedResultSet.noStateChangeException(t); } } /** * @see CallableStatement#getBigDecimal * @exception SQLException NoOutputParameters thrown. */ public final BigDecimal getBigDecimal(int parameterIndex, int scale) throws SQLException { BigDecimal v = getBigDecimal(parameterIndex); if (v != null) v = v.setScale(scale, BigDecimal.ROUND_HALF_DOWN); return v; } /** Allow explict setObject conversions by sub-classes for classes not supported by this variant. In this case handle BigDecimal. @return true if the object was set successfully, false if no valid conversion exists. @exception SQLException value could not be set. */ boolean setObjectConvert(int parameterIndex, Object x) throws SQLException { if (x instanceof BigDecimal) { setBigDecimal(parameterIndex, (BigDecimal) x); return true; } return false; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -