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

📄 callablestatementwrapper.java

📁 在资料浩瀚的互联网中
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }	}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#setFloat(java.lang.String, float)	 */	public void setFloat(String parameterName, float x) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setFloat(parameterName, x);            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }	}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#setDouble(java.lang.String, double)	 */	public void setDouble(String parameterName, double x) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setDouble(parameterName, x);            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }	}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#setBigDecimal(java.lang.String, java.math.BigDecimal)	 */	public void setBigDecimal(String parameterName, BigDecimal x) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setBigDecimal(parameterName, x);            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }	}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#setString(java.lang.String, java.lang.String)	 */	public void setString(String parameterName, String x) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setString(parameterName, x);            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }	}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#setBytes(java.lang.String, byte[])	 */	public void setBytes(String parameterName, byte[] x) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setBytes(parameterName, x);            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }	}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#setDate(java.lang.String, java.sql.Date)	 */	public void setDate(String parameterName, Date x) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setDate(parameterName, x);            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }	}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#setTime(java.lang.String, java.sql.Time)	 */	public void setTime(String parameterName, Time x) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setTime(parameterName, x);            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }	}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#setTimestamp(java.lang.String, java.sql.Timestamp)	 */	public void setTimestamp(String parameterName, Timestamp x) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setTimestamp(parameterName, x);            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }	}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#setAsciiStream(java.lang.String, java.io.InputStream, int)	 */	public void setAsciiStream(String parameterName, InputStream x, int length) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setAsciiStream(parameterName, x, length);            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }			}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#setBinaryStream(java.lang.String, java.io.InputStream, int)	 */	public void setBinaryStream(String parameterName, InputStream x, int length) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setBinaryStream(parameterName, x, length);            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }	}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#setObject(java.lang.String, java.lang.Object, int, int)	 */	public void setObject(String parameterName, Object x, int targetSqlType, int scale) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setObject(parameterName, x, targetSqlType, scale);            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }	}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#setObject(java.lang.String, java.lang.Object, int)	 */	public void setObject(String parameterName, Object x, int targetSqlType) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setObject(parameterName, x, targetSqlType);            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }	}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#setObject(java.lang.String, java.lang.Object)	 */	public void setObject(String parameterName, Object x) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setObject(parameterName, x);            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }	}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#setCharacterStream(java.lang.String, java.io.Reader, int)	 */	public void setCharacterStream(String parameterName, Reader reader, int length) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setCharacterStream(parameterName, reader, length);            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }	}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#setDate(java.lang.String, java.sql.Date, java.util.Calendar)	 */	public void setDate(String parameterName, Date x, Calendar cal) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setDate(parameterName, x, cal);            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }	}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#setTime(java.lang.String, java.sql.Time, java.util.Calendar)	 */	public void setTime(String parameterName, Time x, Calendar cal) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setTime(parameterName, x, cal);            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }	}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#setTimestamp(java.lang.String, java.sql.Timestamp, java.util.Calendar)	 */	public void setTimestamp(String parameterName, Timestamp x, Calendar cal) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setTimestamp(parameterName, x, cal);            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }	}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#setNull(java.lang.String, int, java.lang.String)	 */	public void setNull(String parameterName, int sqlType, String typeName) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setNull(parameterName, sqlType, typeName);            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }	}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#getString(int)	 */	public String getString(String parameterName) throws SQLException {		try {            if (this.wrappedStmt != null) {                return ((CallableStatement) this.wrappedStmt).getString(parameterName);            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }		return null;	}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#getBoolean(int)	 */	public boolean getBoolean(String parameterName) throws SQLException {		try {            if (this.wrappedStmt != null) {                return ((CallableStatement) this.wrappedStmt).getBoolean(parameterName);            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }		return false;	}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#getByte(int)	 */	public byte getByte(String parameterName) throws SQLException {		try {            if (this.wrappedStmt != null) {                return ((CallableStatement) this.wrappedStmt).getByte(parameterName);            } else {                throw new SQLException("No operations allowed after statement closed",                    SQLError.SQL_STATE_GENERAL_ERROR);            }        } catch (SQLException sqlEx) {            checkAndFireConnectionError(sqlEx);        }        		return 0;	}	/* (non-Javadoc)	 * @see java.sql.CallableStatement#getShort(int)	 */

⌨️ 快捷键说明

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