⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jtdscallablestatement.java

📁 第三方的SQL Server and Sybase的jdbc dirver,速度更快
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
    public void setInt(String parameterName, int x) throws SQLException {        setInt(findParameter(parameterName, true), x);    }    public void setNull(String parameterName, int sqlType) throws SQLException {        setNull(findParameter(parameterName, true), sqlType);    }    public void registerOutParameter(String parameterName, int sqlType, int scale)        throws SQLException {        registerOutParameter(findParameter(parameterName, true), sqlType, scale);    }    public void setLong(String parameterName, long x) throws SQLException {        setLong(findParameter(parameterName, true), x);    }    public void setShort(String parameterName, short x) throws SQLException {        setShort(findParameter(parameterName, true), x);    }    public void setBoolean(String parameterName, boolean x) throws SQLException {        setBoolean(findParameter(parameterName, true), x);    }    public void setBytes(String parameterName, byte[] x) throws SQLException {        setBytes(findParameter(parameterName, true), x);    }    public BigDecimal getBigDecimal(int parameterIndex) throws SQLException {        return (BigDecimal) Support.convert(this,                getOutputValue(parameterIndex), java.sql.Types.DECIMAL, null);    }    public BigDecimal getBigDecimal(int parameterIndex, int scale) throws SQLException {        BigDecimal bd = (BigDecimal) Support.convert(this,                getOutputValue(parameterIndex), java.sql.Types.DECIMAL, null);        return bd.setScale(scale);    }    public URL getURL(int parameterIndex) throws SQLException {        String url = (String) Support.convert(this,                getOutputValue(parameterIndex), java.sql.Types.VARCHAR,                connection.getCharset());        try {            return new java.net.URL(url);        } catch (MalformedURLException e) {            throw new SQLException(Messages.get("error.resultset.badurl", url), "22000");        }    }    public Array getArray(int parameterIndex) throws SQLException {        notImplemented("CallableStatement.getArray");        return null;    }    public Blob getBlob(int parameterIndex) throws SQLException {        byte[] value = getBytes(parameterIndex);        if (value == null) {            return null;        }        return new BlobImpl(connection, value);    }    public Clob getClob(int parameterIndex) throws SQLException {        String value = getString(parameterIndex);        if (value == null) {            return null;        }        return new ClobImpl(connection, value);    }    public Date getDate(int parameterIndex) throws SQLException {        return (java.sql.Date) Support.convert(this,                getOutputValue(parameterIndex), java.sql.Types.DATE, null);    }    public Ref getRef(int parameterIndex) throws SQLException {        notImplemented("CallableStatement.getRef");        return null;    }    public Time getTime(int parameterIndex) throws SQLException {        return (Time) Support.convert(this, getOutputValue(parameterIndex), java.sql.Types.TIME, null);    }    public Timestamp getTimestamp(int parameterIndex) throws SQLException {        return (Timestamp) Support.convert(this, getOutputValue(parameterIndex), java.sql.Types.TIMESTAMP, null);    }    public void setAsciiStream(String parameterName, InputStream x, int length)        throws SQLException {        setAsciiStream(findParameter(parameterName, true), x, length);    }    public void setBinaryStream(String parameterName, InputStream x, int length)        throws SQLException {        setBinaryStream(findParameter(parameterName, true), x, length);    }    public void setCharacterStream(String parameterName, Reader reader, int length)        throws SQLException {        setCharacterStream(findParameter(parameterName, true), reader, length);    }    public Object getObject(String parameterName) throws SQLException {        return getObject(findParameter(parameterName, false));    }    public void setObject(String parameterName, Object x) throws SQLException {        setObject(findParameter(parameterName, true), x);    }    public void setObject(String parameterName, Object x, int targetSqlType)        throws SQLException {        setObject(findParameter(parameterName, true), x, targetSqlType);    }    public void setObject(String parameterName, Object x, int targetSqlType, int scale)        throws SQLException {        setObject(findParameter(parameterName, true), x, targetSqlType, scale);    }    public Object getObject(int parameterIndex, Map map) throws SQLException {        notImplemented("CallableStatement.getObject(int, Map)");        return null;    }    public String getString(String parameterName) throws SQLException {        return getString(findParameter(parameterName, false));    }    public void registerOutParameter(String parameterName, int sqlType, String typeName)        throws SQLException {        notImplemented("CallableStatement.registerOutParameter(String, int, String");    }    public void setNull(String parameterName, int sqlType, String typeName)        throws SQLException {        notImplemented("CallableStatement.setNull(String, int, String");    }    public void setString(String parameterName, String x) throws SQLException {        setString(findParameter(parameterName, true), x);    }    public BigDecimal getBigDecimal(String parameterName) throws SQLException {        return getBigDecimal(findParameter(parameterName, false));    }    public void setBigDecimal(String parameterName, BigDecimal x)        throws SQLException {        setBigDecimal(findParameter(parameterName, true), x);    }    public URL getURL(String parameterName) throws SQLException {        return getURL(findParameter(parameterName, false));    }    public void setURL(String parameterName, URL x) throws SQLException {        setObject(findParameter(parameterName, true), x);    }    public Array getArray(String parameterName) throws SQLException {        return getArray(findParameter(parameterName, false));    }    public Blob getBlob(String parameterName) throws SQLException {        return getBlob(findParameter(parameterName, false));    }    public Clob getClob(String parameterName) throws SQLException {        return getClob(findParameter(parameterName, false));    }    public Date getDate(String parameterName) throws SQLException {        return getDate(findParameter(parameterName, false));    }    public void setDate(String parameterName, Date x) throws SQLException {        setDate(findParameter(parameterName, true), x);    }    public Date getDate(int parameterIndex, Calendar cal) throws SQLException {        java.sql.Date date = getDate(parameterIndex);        if (date != null && cal != null) {            date = new java.sql.Date(Support.timeToZone(date, cal));        }        return date;    }    public Ref getRef(String parameterName) throws SQLException {        return getRef(findParameter(parameterName, false));    }    public Time getTime(String parameterName) throws SQLException {        return getTime(findParameter(parameterName, false));    }    public void setTime(String parameterName, Time x) throws SQLException {        setTime(findParameter(parameterName, true), x);    }    public Time getTime(int parameterIndex, Calendar cal) throws SQLException {        java.sql.Time time = getTime(parameterIndex);        if (time != null && cal != null) {            time = new java.sql.Time(Support.timeToZone(time, cal));        }        return time;    }    public Timestamp getTimestamp(String parameterName) throws SQLException {        return getTimestamp(findParameter(parameterName, false));    }    public void setTimestamp(String parameterName, Timestamp x) throws SQLException {        setTimestamp(findParameter(parameterName, true), x);    }    public Timestamp getTimestamp(int parameterIndex, Calendar cal)        throws SQLException {        Timestamp timestamp = getTimestamp(parameterIndex);        if (timestamp != null && cal != null) {            timestamp = new Timestamp(Support.timeToZone(timestamp, cal));        }        return timestamp;    }    public Object getObject(String parameterName, Map map) throws SQLException {         return getObject(findParameter(parameterName, false), map);    }    public Date getDate(String parameterName, Calendar cal) throws SQLException {        return getDate(findParameter(parameterName, false), cal);    }    public Time getTime(String parameterName, Calendar cal) throws SQLException {        return getTime(findParameter(parameterName, false), cal);    }    public Timestamp getTimestamp(String parameterName, Calendar cal)        throws SQLException {        return getTimestamp(findParameter(parameterName, false), cal);    }    public void setDate(String parameterName, Date x, Calendar cal)        throws SQLException {        setDate(findParameter(parameterName, true), x, cal);    }    public void setTime(String parameterName, Time x, Calendar cal)        throws SQLException {        setTime(findParameter(parameterName, true), x, cal);    }    public void setTimestamp(String parameterName, Timestamp x, Calendar cal)        throws SQLException {        setTimestamp(findParameter(parameterName, true), x, cal);    }}

⌨️ 快捷键说明

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