callablestatementproxy.java

来自「第三方的SQL Server and Sybase的jdbc dirver,速度」· Java 代码 · 共 1,484 行 · 第 1/4 页

JAVA
1,484 行
字号
     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public void setFloat(String parameterName, float x) throws SQLException {        validateConnection();        try {            _callableStatement.setFloat(parameterName, x);        } catch (SQLException sqlException) {            processSQLException(sqlException);        }    }    /**     * Delgates calls to the callable statement; SQLExceptions thrown from the     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public void setDouble(String parameterName, double x) throws SQLException {        validateConnection();        try {            _callableStatement.setDouble(parameterName, x);        } catch (SQLException sqlException) {            processSQLException(sqlException);        }    }    /**     * Delgates calls to the callable statement; SQLExceptions thrown from the     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public void setBigDecimal(String parameterName, BigDecimal x) throws SQLException {        validateConnection();        try {            _callableStatement.setBigDecimal(parameterName, x);        } catch (SQLException sqlException) {            processSQLException(sqlException);        }    }    /**     * Delgates calls to the callable statement; SQLExceptions thrown from the     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public void setString(String parameterName, String x) throws SQLException {        validateConnection();        try {            _callableStatement.setString(parameterName, x);        } catch (SQLException sqlException) {            processSQLException(sqlException);        }    }    /**     * Delgates calls to the callable statement; SQLExceptions thrown from the     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public void setBytes(String parameterName, byte[] x) throws SQLException {        validateConnection();        try {            _callableStatement.setBytes(parameterName, x);        } catch (SQLException sqlException) {            processSQLException(sqlException);        }    }    /**     * Delgates calls to the callable statement; SQLExceptions thrown from the     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public void setDate(String parameterName, Date x) throws SQLException {        validateConnection();        try {            _callableStatement.setDate(parameterName, x);        } catch (SQLException sqlException) {            processSQLException(sqlException);        }    }    /**     * Delgates calls to the callable statement; SQLExceptions thrown from the     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public void setTime(String parameterName, Time x) throws SQLException {        validateConnection();        try {            _callableStatement.setTime(parameterName, x);        } catch (SQLException sqlException) {            processSQLException(sqlException);        }    }    /**     * Delgates calls to the callable statement; SQLExceptions thrown from the     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public void setTimestamp(String parameterName, Timestamp x) throws SQLException {        validateConnection();        try {            _callableStatement.setTimestamp(parameterName, x);        } catch (SQLException sqlException) {            processSQLException(sqlException);        }    }    /**     * Delgates calls to the callable statement; SQLExceptions thrown from the     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public void setAsciiStream(String parameterName, java.io.InputStream x, int length) throws SQLException {        validateConnection();        try {            _callableStatement.setAsciiStream(parameterName, x, length);        } catch (SQLException sqlException) {            processSQLException(sqlException);        }    }    /**     * Delgates calls to the callable statement; SQLExceptions thrown from the     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public void setBinaryStream(String parameterName, java.io.InputStream x, int length) throws SQLException {        validateConnection();        try {            _callableStatement.setBinaryStream(parameterName, x, length);        } catch (SQLException sqlException) {            processSQLException(sqlException);        }    }    /**     * Delgates calls to the callable statement; SQLExceptions thrown from the     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public void setObject(String parameterName, Object x, int targetSqlType, int scale) throws SQLException {        validateConnection();        try {            _callableStatement.setObject(parameterName, x, targetSqlType, scale);        } catch (SQLException sqlException) {            processSQLException(sqlException);        }    }    /**     * Delgates calls to the callable statement; SQLExceptions thrown from the     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public void setObject(String parameterName, Object x, int targetSqlType) throws SQLException {        validateConnection();        try {            _callableStatement.setObject(parameterName, x, targetSqlType);        } catch (SQLException sqlException) {            processSQLException(sqlException);        }    }    /**     * Delgates calls to the callable statement; SQLExceptions thrown from the     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public void setObject(String parameterName, Object x) throws SQLException {        validateConnection();        try {            _callableStatement.setObject(parameterName, x);        } catch (SQLException sqlException) {            processSQLException(sqlException);        }    }    /**     * Delgates calls to the callable statement; SQLExceptions thrown from the     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public void setCharacterStream(String parameterName, java.io.Reader x, int length) throws SQLException {        validateConnection();        try {            _callableStatement.setCharacterStream(parameterName, x, length);        } catch (SQLException sqlException) {            processSQLException(sqlException);        }    }    /**     * Delgates calls to the callable statement; SQLExceptions thrown from the     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public void setDate(String parameterName, Date x, Calendar cal) throws SQLException {        validateConnection();        try {            _callableStatement.setDate(parameterName, x, cal);        } catch (SQLException sqlException) {            processSQLException(sqlException);        }    }    /**     * Delgates calls to the callable statement; SQLExceptions thrown from the     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public void setTime(String parameterName, Time x, Calendar cal) throws SQLException {        validateConnection();        try {            _callableStatement.setTime(parameterName, x, cal);        } catch (SQLException sqlException) {            processSQLException(sqlException);        }    }    /**     * Delgates calls to the callable statement; SQLExceptions thrown from the     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public void setTimestamp(String parameterName, Timestamp x, Calendar cal) throws SQLException {        validateConnection();        try {            _callableStatement.setTimestamp(parameterName, x, cal);        } catch (SQLException sqlException) {            processSQLException(sqlException);        }    }    /**     * Delgates calls to the callable statement; SQLExceptions thrown from the     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public void setNull(String parameterName, int sqlType, String typeName) throws SQLException {        validateConnection();        try {            _callableStatement.setNull(parameterName, sqlType, typeName);        } catch (SQLException sqlException) {            processSQLException(sqlException);        }    }    /**     * Delgates calls to the callable statement; SQLExceptions thrown from the     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public String getString(String parameterName) throws SQLException {        validateConnection();        try {            return _callableStatement.getString(parameterName);        } catch (SQLException sqlException) {            processSQLException(sqlException);        }                return null;    }    /**     * Delgates calls to the callable statement; SQLExceptions thrown from the     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public boolean getBoolean(String parameterName) throws SQLException {        validateConnection();        try {            return _callableStatement.getBoolean(parameterName);        } catch (SQLException sqlException) {            processSQLException(sqlException);        }                return false;    }    /**     * Delgates calls to the callable statement; SQLExceptions thrown from the     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public byte getByte(String parameterName) throws SQLException  {        validateConnection();        try {            return _callableStatement.getByte(parameterName);        } catch (SQLException sqlException) {            processSQLException(sqlException);        }                return Byte.MIN_VALUE;    }    /**     * Delgates calls to the callable statement; SQLExceptions thrown from the     * callable statement will cause an event to be fired on the connection     * pool listeners.     *     * @throws SQLException if an error occurs     */    public short getShort(String parameterName) throws SQLException {        validateConnection();

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?