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

📄 callablestatementwrapper.java

📁 在资料浩瀚的互联网中
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
            if (this.wrappedStmt != null) {                return ((CallableStatement) this.wrappedStmt).getObject(parameterIndex);            } 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#getBigDecimal(int)	 */	public BigDecimal getBigDecimal(int parameterIndex) throws SQLException {		try {            if (this.wrappedStmt != null) {                return ((CallableStatement) this.wrappedStmt).getBigDecimal(parameterIndex);            } 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#getObject(int, java.util.Map)	 */	public Object getObject(int parameterIndex, Map typeMap) throws SQLException {		try {            if (this.wrappedStmt != null) {                return ((CallableStatement) this.wrappedStmt).getObject(parameterIndex, typeMap);            } 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#getRef(int)	 */	public Ref getRef(int parameterIndex) throws SQLException {		try {            if (this.wrappedStmt != null) {                return ((CallableStatement) this.wrappedStmt).getRef(parameterIndex);            } 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#getBlob(int)	 */	public Blob getBlob(int parameterIndex) throws SQLException {		try {            if (this.wrappedStmt != null) {                return ((CallableStatement) this.wrappedStmt).getBlob(parameterIndex);            } 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#getClob(int)	 */	public Clob getClob(int parameterIndex) throws SQLException {		try {            if (this.wrappedStmt != null) {                return ((CallableStatement) this.wrappedStmt).getClob(parameterIndex);            } 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#getArray(int)	 */	public Array getArray(int parameterIndex) throws SQLException {		try {            if (this.wrappedStmt != null) {                return ((CallableStatement) this.wrappedStmt).getArray(parameterIndex);            } 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#getDate(int, java.util.Calendar)	 */	public Date getDate(int parameterIndex, Calendar cal) throws SQLException {		try {            if (this.wrappedStmt != null) {                return ((CallableStatement) this.wrappedStmt).getDate(parameterIndex, cal);            } 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#getTime(int, java.util.Calendar)	 */	public Time getTime(int parameterIndex, Calendar cal) throws SQLException {		try {            if (this.wrappedStmt != null) {                return ((CallableStatement) this.wrappedStmt).getTime(parameterIndex, cal);            } 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#getTimestamp(int, java.util.Calendar)	 */	public Timestamp getTimestamp(int parameterIndex, Calendar cal) throws SQLException {		try {            if (this.wrappedStmt != null) {                return ((CallableStatement) this.wrappedStmt).getTimestamp(parameterIndex, cal);            } 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#registerOutParameter(int, int, java.lang.String)	 */	public void registerOutParameter(int paramIndex, int sqlType, String typeName) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).registerOutParameter(paramIndex, 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#registerOutParameter(java.lang.String, int)	 */	public void registerOutParameter(String parameterName, int sqlType) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).registerOutParameter(parameterName, sqlType);            } 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#registerOutParameter(java.lang.String, int, int)	 */	public void registerOutParameter(String parameterName, int sqlType, int scale) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).registerOutParameter(parameterName, sqlType, 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#registerOutParameter(java.lang.String, int, java.lang.String)	 */	public void registerOutParameter(String parameterName, int sqlType, String typeName) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).registerOutParameter(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#getURL(int)	 */	public URL getURL(int parameterIndex) throws SQLException {		try {            if (this.wrappedStmt != null) {                return ((CallableStatement) this.wrappedStmt).getURL(parameterIndex);            } 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#setURL(java.lang.String, java.net.URL)	 */	public void setURL(String parameterName, URL val) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setURL(parameterName, val);            } 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)	 */	public void setNull(String parameterName, int sqlType) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setNull(parameterName, sqlType);            } 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#setBoolean(java.lang.String, boolean)	 */	public void setBoolean(String parameterName, boolean x) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setBoolean(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#setByte(java.lang.String, byte)	 */	public void setByte(String parameterName, byte x) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setByte(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#setShort(java.lang.String, short)	 */	public void setShort(String parameterName, short x) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setShort(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#setInt(java.lang.String, int)	 */	public void setInt(String parameterName, int x) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setInt(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#setLong(java.lang.String, long)	 */	public void setLong(String parameterName, long x) throws SQLException {		try {            if (this.wrappedStmt != null) {                ((CallableStatement) this.wrappedStmt).setLong(parameterName, x);

⌨️ 快捷键说明

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