📄 callablestatementwrapper.java
字号:
* @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 SQLError.createSQLException( "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 SQLError.createSQLException( "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 SQLError.createSQLException( "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 SQLError.createSQLException( "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 SQLError.createSQLException( "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 SQLError.createSQLException( "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 SQLError.createSQLException( "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) */ public short getShort(String parameterName) throws SQLException { try { if (this.wrappedStmt != null) { return ((CallableStatement) this.wrappedStmt) .getShort(parameterName); } else { throw SQLError.createSQLException( "No operations allowed after statement closed", SQLError.SQL_STATE_GENERAL_ERROR); } } catch (SQLException sqlEx) { checkAndFireConnectionError(sqlEx); } return 0; } /* * (non-Javadoc) * * @see java.sql.CallableStatement#getInt(int) */ public int getInt(String parameterName) throws SQLException { try { if (this.wrappedStmt != null) { return ((CallableStatement) this.wrappedStmt) .getInt(parameterName); } else { throw SQLError.createSQLException( "No operations allowed after statement closed", SQLError.SQL_STATE_GENERAL_ERROR); } } catch (SQLException sqlEx) { checkAndFireConnectionError(sqlEx); } return 0; } /* * (non-Javadoc) * * @see java.sql.CallableStatement#getLong(int) */ public long getLong(String parameterName) throws SQLException { try { if (this.wrappedStmt != null) { return ((CallableStatement) this.wrappedStmt) .getLong(parameterName); } else { throw SQLError.createSQLException( "No operations allowed after statement closed", SQLError.SQL_STATE_GENERAL_ERROR); } } catch (SQLException sqlEx) { checkAndFireConnectionError(sqlEx); } return 0; } /* * (non-Javadoc) * * @see java.sql.CallableStatement#getFloat(int) */ public float getFloat(String parameterName) throws SQLException { try { if (this.wrappedStmt != null) { return ((CallableStatement) this.wrappedStmt) .getFloat(parameterName); } else { throw SQLError.createSQLException( "No operations allowed after statement closed", SQLError.SQL_STATE_GENERAL_ERROR); } } catch (SQLException sqlEx) { checkAndFireConnectionError(sqlEx); } return 0; } /* * (non-Javadoc) * * @see java.sql.CallableStatement#getDouble(int) */ public double getDouble(String parameterName) throws SQLException { try { if (this.wrappedStmt != null) { return ((CallableStatement) this.wrappedStmt) .getDouble(parameterName); } else { throw SQLError.createSQLException( "No operations allowed after statement closed", SQLError.SQL_STATE_GENERAL_ERROR); } } catch (SQLException sqlEx) { checkAndFireConnectionError(sqlEx); } return 0; } /* * (non-Javadoc) * * @see java.sql.CallableStatement#getBytes(int) */ public byte[] getBytes(String parameterName) throws SQLException { try { if (this.wrappedStmt != null) { return ((CallableStatement) this.wrappedStmt) .getBytes(parameterName); } else { throw SQLError.createSQLException( "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) */ public Date getDate(String parameterName) throws SQLException { try { if (this.wrappedStmt != null) { return ((CallableStatement) this.wrappedStmt) .getDate(parameterName); } else { throw SQLError.createSQLException( "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) */ public Time getTime(String parameterName) throws SQLException { try { if (this.wrappedStmt != null) { return ((CallableStatement) this.wrappedStmt) .getTime(parameterName); } else { throw SQLError.createSQLException( "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) */ public Timestamp getTimestamp(String parameterName) throws SQLException { try { if (this.wrappedStmt != null) { return ((CallableStatement) this.wrappedStmt) .getTimestamp(parameterName); } else { throw SQLError.createSQLException( "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) */ public Object getObject(String parameterName) throws SQLException { try { if (this.wrappedStmt != null) { return ((CallableStatement) this.wrappedStmt) .getObject(parameterName); } else { throw SQLError.createSQLException( "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(String parameterName) throws SQLException { try { if (this.wrappedStmt != null) { return ((CallableStatement) this.wrappedStmt) .getBigDecimal(parameterName); } else { throw SQLError.createSQLException( "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(String parameterName, Map typeMap) throws SQLException { try { if (this.wrappedStmt != null) { return ((CallableStatement) this.wrappedStmt).getObject( parameterName, typeMap); } else { throw SQLError.createSQLException( "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(String parameterName) throws SQLException { try { if (this.wrappedStmt != null) { return ((CallableStatement) this.wrappedStmt) .getRef(parameterName); } else { throw SQLError.createSQLException( "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(String parameterName) throws SQLException { try { if (this.wrappedStmt != null) { return ((CallableStatement) this.wrappedStmt) .getBlob(parameterName); } else { throw SQLError.createSQLException( "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(String parameterName) throws SQLException { try { if (this.wrappedStmt != null) { return ((CallableStatement) this.wrappedStmt) .getClob(parameterName); } else { throw SQLError.createSQLException( "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(String parameterName) throws SQLException { try { if (this.wrappedStmt != null) { return ((CallableStatement) this.wrappedStmt) .getArray(parameterName); } else { throw SQLError.createSQLException( "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(String parameterName, Calendar cal) throws SQLException { try { if (this.wrappedStmt != null) { return ((CallableStatement) this.wrappedStmt).getDate( parameterName, cal); } else { throw SQLError.createSQLException( "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(String parameterName, Calendar cal) throws SQLException { try { if (this.wrappedStmt != null) { return ((CallableStatement) this.wrappedStmt).getTime( parameterName, cal); } else { throw SQLError.createSQLException( "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(String parameterName, Calendar cal) throws SQLException { try { if (this.wrappedStmt != null) { return ((CallableStatement) this.wrappedStmt).getTimestamp( parameterName, cal); } else { throw SQLError.createSQLException( "No operations allowed after statement closed", SQLError.SQL_STATE_GENERAL_ERROR); } } catch (SQLException sqlEx) { checkAndFireConnectionError(sqlEx); } return null; } /* * (non-Javadoc) * * @see java.sql.CallableStatement#getURL(java.lang.String) */ public URL getURL(String parameterName) throws SQLException { try { if (this.wrappedStmt != null) { return ((CallableStatement) this.wrappedStmt) .getURL(parameterName); } else { throw SQLError.createSQLException( "No operations allowed after statement closed", SQLError.SQL_STATE_GENERAL_ERROR); } } catch (SQLException sqlEx) { checkAndFireConnectionError(sqlEx); } return null; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -