📄 jdbcpreparedstatement.java
字号:
* The JDBC type specified by <code>sqlType</code> for an OUT
* parameter determines the Java type that must be used
* in the <code>get</code> method to read the value of that parameter.
* <p>
* This version of <code>registerOutParameter</code> should be
* used when the parameter is of JDBC type <code>NUMERIC</code>
* or <code>DECIMAL</code>.
* @param parameterIndex the first parameter is 1, the second is 2,
* and so on
* @param sqlType SQL type code defined by <code>java.sql.Types</code>.
* @param scale the desired number of digits to the right of the
* decimal point. It must be greater than or equal to zero.
* @exception SQLException if a database access error occurs
*/
public void registerOutParameter(int parameterIndex, int sqlType,
int scale) throws SQLException {
throw getNotSupported();
}
/**
* Indicates whether or not the last OUT parameter read had the value of
* SQL NULL. Note that this method should be called only after
* calling the <code>get</code> method; otherwise, there is no value to use
* in determining whether it is <code>null</code> or not.
* @return <code>true</code> if the last parameter read was SQL NULL;
* <code>false</code> otherwise.
* @exception SQLException if a database access error occurs
*/
public boolean wasNull() throws SQLException {
throw getNotSupported();
}
/**
* Retrieves the value of a JDBC <code>CHAR</code>, <code>VARCHAR</code>,
* or <code>LONGVARCHAR</code> parameter as a <code>String</code> in
* the Java programming language.
* <p>
* For the fixed-length type JDBC CHAR, the <code>String</code> object
* returned has exactly the same value the JDBC CHAR value had in the
* database, including any padding added by the database.
* @param parameterIndex the first parameter is 1, the second is 2,
* and so on
* @return the parameter value. If the value is SQL NULL, the result
* is <code>null</code>.
* @exception SQLException if a database access error occurs
*/
public String getString(int parameterIndex) throws SQLException {
throw getNotSupported();
}
/**
* Gets the value of a JDBC BIT parameter as a <code>boolean</code>
* in the Java programming language.
* @param parameterIndex the first parameter is 1, the second is 2,
* and so on
* @return the parameter value. If the value is SQL NULL, the result
* is <code>false</code>.
* @exception SQLException if a database access error occurs
*/
public boolean getBoolean(int parameterIndex) throws SQLException {
throw getNotSupported();
}
/**
* Method declaration
*
*
* @param parameterIndex
*
* @return
*
* @throws SQLException
*/
public byte getByte(int parameterIndex) throws SQLException {
throw getNotSupported();
}
/**
* Method declaration
*
*
* @param parameterIndex
*
* @return
*
* @throws SQLException
*/
public short getShort(int parameterIndex) throws SQLException {
throw getNotSupported();
}
/**
* Method declaration
*
*
* @param parameterIndex
*
* @return
*
* @throws SQLException
*/
public int getInt(int parameterIndex) throws SQLException {
throw getNotSupported();
}
/**
* Method declaration
*
*
* @param parameterIndex
*
* @return
*
* @throws SQLException
*/
public long getLong(int parameterIndex) throws SQLException {
throw getNotSupported();
}
/**
* Method declaration
*
*
* @param parameterIndex
*
* @return
*
* @throws SQLException
*/
public float getFloat(int parameterIndex) throws SQLException {
throw getNotSupported();
}
/**
* Method declaration
*
*
* @param parameterIndex
*
* @return
*
* @throws SQLException
*/
public double getDouble(int parameterIndex) throws SQLException {
throw getNotSupported();
}
/**
* Method declaration
*
*
* @param parameterIndex
* @param scale
*
* @return
*
* @throws SQLException
*/
public BigDecimal getBigDecimal(int parameterIndex,
int scale) throws SQLException {
throw getNotSupported();
}
/**
* Method declaration
*
*
* @param parameterIndex
*
* @return
*
* @throws SQLException
*/
public byte[] getBytes(int parameterIndex) throws SQLException {
throw getNotSupported();
}
/**
* Method declaration
*
*
* @param parameterIndex
*
* @return
*
* @throws SQLException
*/
public java.sql.Date getDate(int parameterIndex) throws SQLException {
throw getNotSupported();
}
/**
* Method declaration
*
*
* @param parameterIndex
*
* @return
*
* @throws SQLException
*/
public Time getTime(int parameterIndex) throws SQLException {
throw getNotSupported();
}
/**
* Method declaration
*
*
* @param parameterIndex
*
* @return
*
* @throws SQLException
*/
public Timestamp getTimestamp(int parameterIndex) throws SQLException {
throw getNotSupported();
}
/**
* Method declaration
*
*
* @param parameterIndex
*
* @return
*
* @throws SQLException
*/
public Object getObject(int parameterIndex) throws SQLException {
throw getNotSupported();
}
/**
* Method declaration
*
*
* @param parameterIndex
*
* @return
*
* @throws SQLException
*/
//#ifdef JAVA2
public BigDecimal getBigDecimal(int parameterIndex) throws SQLException {
throw getNotSupported();
}
//#endif JAVA2
/**
* Method declaration
*
*
* @param i
* @param map
*
* @return
*
* @throws SQLException
*/
//#ifdef JAVA2
public Object getObject(int i, Map map) throws SQLException {
throw getNotSupported();
}
//#endif JAVA2
/**
* JDBC 2.0
*
* Sets a REF(<structured-type>) parameter.
*
* @param i the first parameter is 1, the second is 2, ...
* @param x an object representing data of an SQL REF Type
* @exception SQLException if a database access error occurs
*/
//#ifdef JAVA2
public Ref getRef(int i) throws SQLException {
throw getNotSupported();
}
//#endif JAVA2
/**
* Method declaration
*
*
* @param i
*
* @return
*
* @throws SQLException
*/
//#ifdef JAVA2
public Blob getBlob(int i) throws SQLException {
throw getNotSupported();
}
//#endif JAVA2
/**
* Method declaration
*
*
* @param i
*
* @return
*
* @throws SQLException
*/
//#ifdef JAVA2
public Clob getClob(int i) throws SQLException {
throw getNotSupported();
}
//#endif JAVA2
/**
* Method declaration
*
*
* @param i
*
* @return
*
* @throws SQLException
*/
//#ifdef JAVA2
public Array getArray(int i) throws SQLException {
throw getNotSupported();
}
//#endif JAVA2
/**
* Method declaration
*
*
* @param parameterIndex
* @param cal
*
* @return
*
* @throws SQLException
*/
//#ifdef JAVA2
public java.sql.Date getDate(int parameterIndex,
Calendar cal) throws SQLException {
throw getNotSupported();
}
//#endif JAVA2
/**
* Method declaration
*
*
* @param parameterIndex
* @param cal
*
* @return
*
* @throws SQLException
*/
//#ifdef JAVA2
public Time getTime(int parameterIndex,
Calendar cal) throws SQLException {
throw getNotSupported();
}
//#endif JAVA2
/**
* Method declaration
*
*
* @param parameterIndex
* @param cal
*
* @return
*
* @throws SQLException
*/
//#ifdef JAVA2
public Timestamp getTimestamp(int parameterIndex,
Calendar cal) throws SQLException {
throw getNotSupported();
}
//#endif JAVA2
/**
* Method declaration
*
*
* @param paramIndex
* @param sqlType
* @param typeName
*
* @throws SQLException
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -