List of usage examples for java.sql SQLFeatureNotSupportedException SQLFeatureNotSupportedException
public SQLFeatureNotSupportedException(Throwable cause)
SQLFeatureNotSupportedException
object with a given cause
. From source file:lasige.steeldb.jdbc.BFTRowSet.java
/** * Sets the designated parameter to SQL <code>NULL</code>. * * <P><B>Note:</B> You must specify the parameter's SQL type. * * @param parameterName the name of the parameter * @param sqlType the SQL type code defined in <code>java.sql.Types</code> * @exception SQLException if a database access error occurs or * this method is called on a closed <code>CallableStatement</code> * @exception SQLFeatureNotSupportedException if the JDBC driver does not support * this method/*from ww w .j a v a 2 s .co m*/ * @since 1.4 */ public void setNull(String parameterName, int sqlType) throws SQLException { throw new SQLFeatureNotSupportedException( resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString()); }
From source file:lasige.steeldb.jdbc.BFTRowSet.java
/** * Sets the designated parameter to SQL <code>NULL</code>. * This version of the method <code>setNull</code> should * be used for user-defined types and REF type parameters. Examples * of user-defined types include: STRUCT, DISTINCT, JAVA_OBJECT, and * named array types./*from ww w .j a va2 s. c o m*/ * * <P><B>Note:</B> To be portable, applications must give the * SQL type code and the fully-qualified SQL type name when specifying * a NULL user-defined or REF parameter. In the case of a user-defined type * the name is the type name of the parameter itself. For a REF * parameter, the name is the type name of the referenced type. If * a JDBC driver does not need the type code or type name information, * it may ignore it. * * Although it is intended for user-defined and Ref parameters, * this method may be used to set a null parameter of any JDBC type. * If the parameter does not have a user-defined or REF type, the given * typeName is ignored. * * * @param parameterName the name of the parameter * @param sqlType a value from <code>java.sql.Types</code> * @param typeName the fully-qualified name of an SQL user-defined type; * ignored if the parameter is not a user-defined type or * SQL <code>REF</code> value * @exception SQLException if a database access error occurs or * this method is called on a closed <code>CallableStatement</code> * @exception SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.4 */ public void setNull(String parameterName, int sqlType, String typeName) throws SQLException { throw new SQLFeatureNotSupportedException( resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString()); }
From source file:lasige.steeldb.jdbc.BFTRowSet.java
/** * Sets the designated parameter to the given Java <code>boolean</code> value. * The driver converts this//w w w . ja v a 2 s .c o m * to an SQL <code>BIT</code> or <code>BOOLEAN</code> value when it sends it to the database. * * @param parameterName the name of the parameter * @param x the parameter value * @exception SQLException if a database access error occurs or * this method is called on a closed <code>CallableStatement</code> * @see #getBoolean * @exception SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @since 1.4 */ public void setBoolean(String parameterName, boolean x) throws SQLException { throw new SQLFeatureNotSupportedException( resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString()); }
From source file:lasige.steeldb.jdbc.BFTRowSet.java
/** * Sets the designated parameter to the given Java <code>byte</code> value. * The driver converts this// w ww .j a va 2 s .co m * to an SQL <code>TINYINT</code> value when it sends it to the database. * * @param parameterName the name of the parameter * @param x the parameter value * @exception SQLException if a database access error occurs or * this method is called on a closed <code>CallableStatement</code> * @exception SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @see #getByte * @since 1.4 */ public void setByte(String parameterName, byte x) throws SQLException { throw new SQLFeatureNotSupportedException( resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString()); }
From source file:lasige.steeldb.jdbc.BFTRowSet.java
/** * Sets the designated parameter to the given Java <code>short</code> value. * The driver converts this// w w w . j a v a 2 s .c o m * to an SQL <code>SMALLINT</code> value when it sends it to the database. * * @param parameterName the name of the parameter * @param x the parameter value * @exception SQLException if a database access error occurs or * this method is called on a closed <code>CallableStatement</code> * @exception SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @see #getShort * @since 1.4 */ public void setShort(String parameterName, short x) throws SQLException { throw new SQLFeatureNotSupportedException( resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString()); }
From source file:lasige.steeldb.jdbc.BFTRowSet.java
/** * Sets the designated parameter to the given Java <code>int</code> value. * The driver converts this// w w w . j av a2 s . co m * to an SQL <code>INTEGER</code> value when it sends it to the database. * * @param parameterName the name of the parameter * @param x the parameter value * @exception SQLException if a database access error occurs or * this method is called on a closed <code>CallableStatement</code> * @exception SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @see #getInt * @since 1.4 */ public void setInt(String parameterName, int x) throws SQLException { throw new SQLFeatureNotSupportedException( resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString()); }
From source file:lasige.steeldb.jdbc.BFTRowSet.java
/** * Sets the designated parameter to the given Java <code>long</code> value. * The driver converts this//from w w w . j av a 2 s .c om * to an SQL <code>BIGINT</code> value when it sends it to the database. * * @param parameterName the name of the parameter * @param x the parameter value * @exception SQLException if a database access error occurs or * this method is called on a closed <code>CallableStatement</code> * @exception SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @see #getLong * @since 1.4 */ public void setLong(String parameterName, long x) throws SQLException { throw new SQLFeatureNotSupportedException( resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString()); }
From source file:lasige.steeldb.jdbc.BFTRowSet.java
/** * Sets the designated parameter to the given Java <code>float</code> value. * The driver converts this/* ww w .j a va 2 s . c o m*/ * to an SQL <code>FLOAT</code> value when it sends it to the database. * * @param parameterName the name of the parameter * @param x the parameter value * @exception SQLException if a database access error occurs or * this method is called on a closed <code>CallableStatement</code> * @exception SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @see #getFloat * @since 1.4 */ public void setFloat(String parameterName, float x) throws SQLException { throw new SQLFeatureNotSupportedException( resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString()); }
From source file:lasige.steeldb.jdbc.BFTRowSet.java
/** * Sets the designated parameter to the given Java <code>double</code> value. * The driver converts this//from w w w .j a v a2s .co m * to an SQL <code>DOUBLE</code> value when it sends it to the database. * * @param parameterName the name of the parameter * @param x the parameter value * @exception SQLException if a database access error occurs or * this method is called on a closed <code>CallableStatement</code> * @exception SQLFeatureNotSupportedException if the JDBC driver does not support * this method * @see #getDouble * @since 1.4 */ public void setDouble(String parameterName, double x) throws SQLException { throw new SQLFeatureNotSupportedException( resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString()); }