userpreparedstatement.java
来自「RESIN 3.2 最新源码」· Java 代码 · 共 811 行 · 第 1/2 页
JAVA
811 行
* Sets the parameter as a date */ public void setDate(int index, Date value) throws SQLException { try { _pstmt.setDate(index, value); } catch (RuntimeException e) { killPool(); throw e; } catch (SQLException e) { killPool(); throw e; } } /** * Sets the parameter as a time */ public void setDate(int index, Date value, Calendar cal) throws SQLException { try { _pstmt.setDate(index, value, cal); } catch (RuntimeException e) { killPool(); throw e; } catch (SQLException e) { killPool(); throw e; } } /** * Sets the parameter as a time */ public void setTime(int index, Time value) throws SQLException { try { _pstmt.setTime(index, value); } catch (RuntimeException e) { killPool(); throw e; } catch (SQLException e) { killPool(); throw e; } } /** * Sets the parameter as a time */ public void setTime(int index, Time value, Calendar cal) throws SQLException { try { _pstmt.setTime(index, value, cal); } catch (RuntimeException e) { killPool(); throw e; } catch (SQLException e) { killPool(); throw e; } } /** * Sets the parameter as a timestamp */ public void setTimestamp(int index, Timestamp value) throws SQLException { try { _pstmt.setTimestamp(index, value); } catch (RuntimeException e) { killPool(); throw e; } catch (SQLException e) { killPool(); throw e; } } /** * Sets the parameter as a timestamp */ public void setTimestamp(int index, Timestamp value, Calendar cal) throws SQLException { try { _pstmt.setTimestamp(index, value, cal); } catch (RuntimeException e) { killPool(); throw e; } catch (SQLException e) { killPool(); throw e; } } /** * Sets the parameter as an ascii stream. */ public void setAsciiStream(int index, InputStream value, int length) throws SQLException { try { _pstmt.setAsciiStream(index, value, length); } catch (RuntimeException e) { killPool(); throw e; } catch (SQLException e) { killPool(); throw e; } } /** * Sets the parameter as a unicode stream. */ public void setUnicodeStream(int index, InputStream value, int length) throws SQLException { try { _pstmt.setUnicodeStream(index, value, length); } catch (RuntimeException e) { killPool(); throw e; } catch (SQLException e) { killPool(); throw e; } } /** * Sets the parameter as a binary stream. */ public void setBinaryStream(int index, InputStream value, int length) throws SQLException { try { _pstmt.setBinaryStream(index, value, length); } catch (RuntimeException e) { killPool(); throw e; } catch (SQLException e) { killPool(); throw e; } } /** * Sets the parameter as an character stream. */ public void setCharacterStream(int index, Reader value, int length) throws SQLException { try { _pstmt.setCharacterStream(index, value, length); } catch (RuntimeException e) { killPool(); throw e; } catch (SQLException e) { killPool(); throw e; } } /** * Sets the parameter as an object with the given type and scale. */ public void setObject(int index, Object value, int type, int scale) throws SQLException { try { _pstmt.setObject(index, value, type, scale); } catch (RuntimeException e) { killPool(); throw e; } catch (SQLException e) { killPool(); throw e; } } /** * Sets the parameter as an object with the given type. */ public void setObject(int index, Object value, int type) throws SQLException { try { _pstmt.setObject(index, value, type); } catch (RuntimeException e) { killPool(); throw e; } catch (SQLException e) { killPool(); throw e; } } /** * Sets the parameter as a object. */ public void setObject(int index, Object value) throws SQLException { try { _pstmt.setObject(index, value); } catch (RuntimeException e) { killPool(); throw e; } catch (SQLException e) { killPool(); throw e; } } /** * Sets teh parameter as a ref. */ public void setRef(int index, Ref value) throws SQLException { try { _pstmt.setRef(index, value); } catch (RuntimeException e) { killPool(); throw e; } catch (SQLException e) { killPool(); throw e; } } /** * Sets the parameter as a blob. */ public void setBlob(int index, Blob value) throws SQLException { try { _pstmt.setBlob(index, value); } catch (RuntimeException e) { killPool(); throw e; } catch (SQLException e) { killPool(); throw e; } } /** * Sets the parameter as a clob. */ public void setClob(int index, Clob value) throws SQLException { try { _pstmt.setClob(index, value); } catch (RuntimeException e) { killPool(); throw e; } catch (SQLException e) { killPool(); throw e; } } /** * Sets the parameter as an array */ public void setArray(int index, Array value) throws SQLException { try { _pstmt.setArray(index, value); } catch (RuntimeException e) { killPool(); throw e; } catch (SQLException e) { killPool(); throw e; } } /** * Sets the parameter as a URL. */ public void setURL(int index, URL value) throws SQLException { try { _pstmt.setURL(index, value); } catch (RuntimeException e) { killPool(); throw e; } catch (SQLException e) { killPool(); throw e; } } /** * Closes the prepared statement. */ public void close() throws SQLException { synchronized (this) { if (_isClosed) return; _isClosed = true; } clearParameters(); if (_cacheItem == null) super.close(); else if (! isPoolable()) _cacheItem.destroy(); else _cacheItem.toIdle(); } public String toString() { return "UserPreparedStatement[" + _pstmt + "]"; } public void setRowId(int parameterIndex, RowId x) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); } public void setNString(int parameterIndex, String value) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); } public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); } public void setNClob(int parameterIndex, NClob value) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); } public void setClob(int parameterIndex, Reader reader, long length) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); } public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); } public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); } public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); } public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); } public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); } public void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); } public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); } public void setBinaryStream(int parameterIndex, InputStream x) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); } public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); } public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); } public void setClob(int parameterIndex, Reader reader) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); } public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); } public void setNClob(int parameterIndex, Reader reader) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?