Class MonetPreparedStatement

All Implemented Interfaces:
AutoCloseable, PreparedStatement, Statement, Wrapper
Direct Known Subclasses:
MonetCallableStatement

public class MonetPreparedStatement
extends MonetStatement
implements PreparedStatement
A PreparedStatement suitable for the MonetDB embedded database. An object that represents a precompiled SQL statement. A SQL statement is precompiled and stored in a PreparedStatement object. This object can then be used to efficiently execute this statement multiple times. Note: The setter methods (setShort, setString, and so on) for setting IN parameter values must specify types that are compatible with the defined SQL type of the input parameter. For instance, if the IN parameter has SQL type INTEGER, then the method setInt should be used. If arbitrary parameter type conversions are required, the method setObject should be used with a target SQL type.
  • Field Details

    • statementNative

      protected ByteBuffer statementNative
      The pointer to the C statement object
    • nParams

      protected int nParams
      Number of bind-able parameters
    • monetdbeTypes

      protected int[] monetdbeTypes
      Array of types of bind-able parameters
  • Constructor Details

    • MonetPreparedStatement

      public MonetPreparedStatement​(MonetConnection conn, String sql)
      Prepared statement constructor, calls monetdbe_prepare() and super-class Statement constructor. The prepared statement is destroyed if the monetdbe_prepare() call returned an error. The nParams, monetdbeTypes and statementNative variables are set within monetdbe_prepare();
      Parameters:
      conn - parent connection
      sql - query to prepare
  • Method Details

    • execute

      public boolean execute() throws SQLException
      Executes the SQL statement in this PreparedStatement object, which may be any kind of SQL statement. The execute method returns a boolean to indicate the form of the first result. You must then use the methods getResultSet or getUpdateCount to retrieve the result (either a ResultSet object or an int representing the update count). Multiple results may result from the SQL statement, but only the first one may be retrieved in the current version.
      Specified by:
      execute in interface PreparedStatement
      Returns:
      true if the first result is a ResultSet object; false if it is an update count or there are no results
      Throws:
      SQLException - if a database access error occurs or an argument is supplied to this method
    • execute

      public boolean execute​(String q) throws SQLException
      Override the execute from the Statement to throw a SQLException
      Specified by:
      execute in interface Statement
      Overrides:
      execute in class MonetStatement
      Parameters:
      q - any SQL statement
      Returns:
      true if the first result is a ResultSet object; false if it is an update count or there are no results
      Throws:
      SQLException - if a database access error occurs or this method is called on a closed Statement
    • executeQuery

      public ResultSet executeQuery() throws SQLException
      Executes the SQL query in this PreparedStatement object and returns the ResultSet object generated by the query.
      Specified by:
      executeQuery in interface PreparedStatement
      Returns:
      a ResultSet object that contains the data produced by the query; never null
      Throws:
      SQLException - if a database access error occurs; this method is called on a closed PreparedStatement or the SQL statement does not return a ResultSet object
    • executeQuery

      public ResultSet executeQuery​(String q) throws SQLException
      Override the executeQuery from the Statement to throw a SQLException
      Specified by:
      executeQuery in interface Statement
      Overrides:
      executeQuery in class MonetStatement
      Parameters:
      q - an SQL statement to be sent to the database, typically a static SQL SELECT statement
      Returns:
      a ResultSet object that contains the data produced by the given query; never null
      Throws:
      SQLException - if a database access error occurs or the given SQL statement produces anything other than a single ResultSet object
    • executeUpdate

      public int executeUpdate() throws SQLException
      Executes the SQL statement in this PreparedStatement object, which must be an SQL Data Manipulation Language (DML) statement, such as INSERT, UPDATE or DELETE; or an SQL statement that returns nothing, such as a DDL statement.
      Specified by:
      executeUpdate in interface PreparedStatement
      Returns:
      either (1) the row count for SQL Data Manipulation Language (DML) statements or (2) 0 for SQL statements that return nothing
      Throws:
      SQLException - if a database access error occurs; this method is called on a closed PreparedStatement or the SQL statement returns a ResultSet object
    • executeUpdate

      public int executeUpdate​(String q) throws SQLException
      Override the executeUpdate from the Statement to throw a SQLException
      Specified by:
      executeUpdate in interface Statement
      Overrides:
      executeUpdate in class MonetStatement
      Parameters:
      q - an SQL INSERT, UPDATE or DELETE statement or an SQL statement that returns nothing
      Returns:
      either the row count for INSERT, UPDATE or DELETE statements, or 0 for SQL statements that return nothing
      Throws:
      SQLException - if a database access error occurs or the given SQL statement produces a ResultSet object
    • addBatch

      public void addBatch() throws SQLException
      Adds a set of parameters to this PreparedStatement object's batch of commands.
      Specified by:
      addBatch in interface PreparedStatement
      Throws:
      SQLException - if a database access error occurs, this method is called on a closed PreparedStatement or an argument is supplied to this method
    • addBatch

      public void addBatch​(String q) throws SQLException
      Override the addBatch from the Statement to throw a SQLException
      Specified by:
      addBatch in interface Statement
      Overrides:
      addBatch in class MonetStatement
      Parameters:
      q - typically this is a SQL INSERT or UPDATE statement
      Throws:
      SQLException - if a database access error occurs, this method is called on a closed Statement, the driver does not support batch updatesor the method is called on a PreparedStatement or CallableStatement
    • executeBatch

      public int[] executeBatch() throws SQLException
      Submits a batch of different parameterized versions of the prepared query to the database for execution. If all commands execute successfully, returns an array of update counts. The int elements of the array that is returned are ordered to correspond to the commands in the batch, which are ordered according to the order in which they were added to the batch. This method overrides Statement's implementation, which batches different queries instead of different parameters for same prepared query.
      Specified by:
      executeBatch in interface Statement
      Overrides:
      executeBatch in class MonetStatement
      Returns:
      an array of update counts containing one element for each command in the batch. The elements of the array are ordered according to the order in which commands were added to the batch.
      Throws:
      SQLException - if a database access error occurs or this method is called on a closed PreparedStatement
      BatchUpdateException - if one of the commands sent to the database fails to execute properly or attempts to return a result set
    • executeLargeBatch

      public long[] executeLargeBatch() throws SQLException
      Submits a batch of different parameterized versions of the prepared query to the database for execution. If all commands execute successfully, returns an array of update counts. The int elements of the array that is returned are ordered to correspond to the commands in the batch, which are ordered according to the order in which they were added to the batch. This method overrides Statement's implementation, which batches different queries instead of different parameters for same prepared query. This method should be used when the returned row count may exceed Integer.MAX_VALUE.
      Specified by:
      executeLargeBatch in interface Statement
      Overrides:
      executeLargeBatch in class MonetStatement
      Returns:
      an array of update counts containing one element for each command in the batch. The elements of the array are ordered according to the order in which commands were added to the batch.
      Throws:
      SQLException - if a database access error occurs or this method is called on a closed PreparedStatement
      BatchUpdateException - if one of the commands sent to the database fails to execute properly or attempts to return a result set
    • clearBatch

      public void clearBatch() throws SQLException
      Empties this PreparedStatements object's current list of parameters. This method overrides Statement's implementation, which clears different batched queries instead of different batched parameters for same prepared query.
      Specified by:
      clearBatch in interface Statement
      Overrides:
      clearBatch in class MonetStatement
      Throws:
      SQLException - if this method is called on a closed PreparedStatement
    • executeLargeUpdate

      public long executeLargeUpdate() throws SQLException
      Executes the SQL statement in this PreparedStatement object, which may be any kind of SQL statement. The execute method returns a boolean to indicate the form of the first result. You must then use the methods getResultSet or getUpdateCount to retrieve the result (either a ResultSet object or an int representing the update count). Multiple results may result from the SQL statement, but only the first one may be retrieved in the current version. This method should be used when the returned row count may exceed Integer.MAX_VALUE.
      Specified by:
      executeLargeUpdate in interface PreparedStatement
      Returns:
      true if the first result is a ResultSet object; false if it is an update count or there are no results
      Throws:
      SQLException - if a database access error occurs or an argument is supplied to this method
    • getMetaData

      public ResultSetMetaData getMetaData() throws SQLException
      Retrieves a ResultSetMetaData object that contains information about the columns of the ResultSet object that will be returned when this PreparedStatement object is executed. Because a PreparedStatement object is precompiled, it is possible to know about the ResultSet object that it will return without having to execute it. Consequently, it is possible to invoke the method getMetaData on a PreparedStatement object rather than waiting to execute it and then invoking the ResultSet.getMetaData method on the ResultSet object that is returned. Not currently supported
      Specified by:
      getMetaData in interface PreparedStatement
      Returns:
      the description of a ResultSet object's columns or null if the driver cannot return a ResultSetMetaData object
      Throws:
      SQLException - if this method is called on a closed PreparedStatement
    • getParameterMetaData

      public ParameterMetaData getParameterMetaData() throws SQLException
      Retrieves the number, types and properties of this PreparedStatement object's parameters.
      Specified by:
      getParameterMetaData in interface PreparedStatement
      Returns:
      a ParameterMetaData object that contains information about the number, types and properties for each parameter marker of this PreparedStatement object
      Throws:
      SQLException - if this method is called on a closed PreparedStatement
    • clearParameters

      public void clearParameters() throws SQLException
      Clears the current parameter values immediately. Current version also cleans up the prepared statement, closing this object.
      Specified by:
      clearParameters in interface PreparedStatement
      Throws:
      SQLException - if this method is called on a closed PreparedStatement
    • setObject

      public void setObject​(int parameterIndex, Object x, int targetSqlType, int scaleOrLength) throws SQLException
      Sets the value of the designated parameter with the given object. The given Java object will be converted to the given targetSqlType before being sent to the database.
      Specified by:
      setObject in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the object containing the input parameter value
      targetSqlType - the SQL type (as defined in java.sql.Types) to be sent to the database
      scaleOrLength - for java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types, this is the number of digits after the decimal point
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setObject

      public void setObject​(int parameterIndex, Object x, SQLType targetSqlType, int scaleOrLength) throws SQLException
      Sets the value of the designated parameter with the given object. The given Java object will be converted to the given targetSqlType before being sent to the database.
      Specified by:
      setObject in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the object containing the input parameter value
      targetSqlType - the SQL type to be sent to the database
      scaleOrLength - for java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types, this is the number of digits after the decimal point
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setObject

      public void setObject​(int parameterIndex, Object x, SQLType targetSqlType) throws SQLException
      Sets the value of the designated parameter with the given object. The given Java object will be converted to the given targetSqlType before being sent to the database.
      Specified by:
      setObject in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the object containing the input parameter value
      targetSqlType - the SQL type to be sent to the database if a database access error occurs or this method is called on a closed PreparedStatement
      Throws:
      SQLException
    • setObject

      public void setObject​(int parameterIndex, Object x, int targetSqlType) throws SQLException
      Sets the value of the designated parameter with the given object. This method is similar to setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength), except that it assumes a scale of zero.
      Specified by:
      setObject in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the object containing the input parameter value
      targetSqlType - the SQL type (as defined in java.sql.Types) to be sent to the database
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setObject

      public void setObject​(int parameterIndex, Object x) throws SQLException
      Sets the value of the designated parameter using the given object. The JDBC specification specifies a standard mapping from Java Object types to SQL types. The given argument will be converted to the corresponding SQL type before being sent to the database.
      Specified by:
      setObject in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the object containing the input parameter value
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setNull

      public void setNull​(int parameterIndex, int sqlType) throws SQLException
      Sets the designated parameter to SQL NULL. Note: You must specify the parameter's SQL type.
      Specified by:
      setNull in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      sqlType - the SQL type code defined in java.sql.Types
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
      SQLFeatureNotSupportedException - - if sqlType is not supported
    • setBoolean

      public void setBoolean​(int parameterIndex, boolean x) throws SQLException
      Sets the designated parameter to the given Java boolean value.
      Specified by:
      setBoolean in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the parameter value
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setByte

      public void setByte​(int parameterIndex, byte x) throws SQLException
      Sets the designated parameter to the given Java byte value.
      Specified by:
      setByte in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the parameter value
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setShort

      public void setShort​(int parameterIndex, short x) throws SQLException
      Sets the designated parameter to the given Java short value.
      Specified by:
      setShort in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the parameter value
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setInt

      public void setInt​(int parameterIndex, int x) throws SQLException
      Sets the designated parameter to the given Java int value.
      Specified by:
      setInt in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the parameter value
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setLong

      public void setLong​(int parameterIndex, long x) throws SQLException
      Sets the designated parameter to the given Java long value.
      Specified by:
      setLong in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the parameter value
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setFloat

      public void setFloat​(int parameterIndex, float x) throws SQLException
      Sets the designated parameter to the given Java float value.
      Specified by:
      setFloat in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the parameter value
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setDouble

      public void setDouble​(int parameterIndex, double x) throws SQLException
      Sets the designated parameter to the given Java double value.
      Specified by:
      setDouble in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the parameter value
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setBigDecimal

      public void setBigDecimal​(int parameterIndex, BigDecimal x) throws SQLException
      Sets the designated parameter to the given Java java.math.BigDecimal value.
      Specified by:
      setBigDecimal in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the parameter value
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setBigInteger

      public void setBigInteger​(int parameterIndex, BigInteger x) throws SQLException
      Sets the designated parameter to the given Java java.math.BigInteger value.
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the parameter value
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setString

      public void setString​(int parameterIndex, String x) throws SQLException
      Sets the designated parameter to the given Java String value.
      Specified by:
      setString in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the parameter value
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setDate

      public void setDate​(int parameterIndex, Date x, Calendar cal) throws SQLException
      Sets the designated parameter to the given java.sql.Date value, using the given Calendar object. The driver uses the Calendar object to calculate the date taking into account a custom timezone.
      Specified by:
      setDate in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the parameter value
      cal - the Calendar object the driver will use to construct the date
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setTime

      public void setTime​(int parameterIndex, Time x, Calendar cal) throws SQLException
      Sets the designated parameter to the given java.sql.Time value, using the given Calendar object. The driver uses the Calendar object to calculate the date taking into account a custom timezone.
      Specified by:
      setTime in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the parameter value
      cal - the Calendar object the driver will use to construct the date
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setTimestamp

      public void setTimestamp​(int parameterIndex, Timestamp x, Calendar cal) throws SQLException
      Sets the designated parameter to the given java.sql.Timestamp value, using the given Calendar object. The driver uses the Calendar object to calculate the date taking into account a custom timezone.
      Specified by:
      setTimestamp in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the parameter value
      cal - the Calendar object the driver will use to construct the date
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setDate

      public void setDate​(int parameterIndex, Date x) throws SQLException
      Sets the designated parameter to the given Java java.sql.Date value.
      Specified by:
      setDate in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the parameter value
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setTime

      public void setTime​(int parameterIndex, Time x) throws SQLException
      Sets the designated parameter to the given Java java.sql.Time value.
      Specified by:
      setTime in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the parameter value
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setTimestamp

      public void setTimestamp​(int parameterIndex, Timestamp x) throws SQLException
      Sets the designated parameter to the given Java java.sql.Timestamp value.
      Specified by:
      setTimestamp in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the parameter value
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setBytes

      public void setBytes​(int parameterIndex, byte[] x) throws SQLException
      Sets the designated parameter to the given Java byte[] value.
      Specified by:
      setBytes in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the parameter value
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setURL

      public void setURL​(int parameterIndex, URL x) throws SQLException
      Sets the designated parameter to the given Java java.net.URL value.
      Specified by:
      setURL in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the parameter value
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setBlob

      public void setBlob​(int parameterIndex, Blob x) throws SQLException
      Sets the designated parameter to the given Java java.sql.Blob value.
      Specified by:
      setBlob in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the parameter value
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setClob

      public void setClob​(int parameterIndex, Clob x) throws SQLException
      Sets the designated parameter to the given Java java.sql.Clob value.
      Specified by:
      setClob in interface PreparedStatement
      Parameters:
      parameterIndex - Parameter index (starts at 1)
      x - the parameter value
      Throws:
      SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatement
    • setClob

      public void setClob​(int parameterIndex, Reader reader) throws SQLException
      Specified by:
      setClob in interface PreparedStatement
      Throws:
      SQLException
    • setClob

      public void setClob​(int parameterIndex, Reader reader, long length) throws SQLException
      Specified by:
      setClob in interface PreparedStatement
      Throws:
      SQLException
    • setNull

      public void setNull​(int parameterIndex, int sqlType, String typeName) throws SQLException
      Sets the designated parameter to SQL NULL. This version of the method setNull is supposed to be used for user-defined types and REF type parameters. Because MonetDBe currently doesn't support UDFs, this behaves similarly to setNull(int parameterIndex, int sqlType).
      Specified by:
      setNull in interface PreparedStatement
      Throws:
      SQLException
      See Also:
      setNull(int,int)
    • setNString

      public void setNString​(int parameterIndex, String value) throws SQLException
      Similar to setString(int,String).
      Specified by:
      setNString in interface PreparedStatement
      Throws:
      SQLException
      See Also:
      setString(int,String)
    • setCharacterStream

      public void setCharacterStream​(int parameterIndex, Reader reader, int length) throws SQLException
      Similar to setClob(int,Reader,long).
      Specified by:
      setCharacterStream in interface PreparedStatement
      Throws:
      SQLException
      See Also:
      setClob(int,Reader,long)
    • setCharacterStream

      public void setCharacterStream​(int parameterIndex, Reader reader, long length) throws SQLException
      Similar to setClob(int,Reader,long).
      Specified by:
      setCharacterStream in interface PreparedStatement
      Throws:
      SQLException
      See Also:
      setClob(int,Reader,long)
    • setCharacterStream

      public void setCharacterStream​(int parameterIndex, Reader reader) throws SQLException
      Similar to setClob(int,Reader).
      Specified by:
      setCharacterStream in interface PreparedStatement
      Throws:
      SQLException
      See Also:
      setClob(int,Reader)
    • setNCharacterStream

      public void setNCharacterStream​(int parameterIndex, Reader value) throws SQLException
      Similar to setClob(int,Reader).
      Specified by:
      setNCharacterStream in interface PreparedStatement
      Throws:
      SQLException
      See Also:
      setClob(int,Reader)
    • setNCharacterStream

      public void setNCharacterStream​(int parameterIndex, Reader value, long length) throws SQLException
      Similar to setClob(int,Reader,long).
      Specified by:
      setNCharacterStream in interface PreparedStatement
      Throws:
      SQLException
      See Also:
      setClob(int,Reader,long)
    • setAsciiStream

      public void setAsciiStream​(int parameterIndex, InputStream x, int length) throws SQLException
      Feature not supported.
      Specified by:
      setAsciiStream in interface PreparedStatement
      Throws:
      SQLFeatureNotSupportedException - This feature is not supported
      SQLException
    • setAsciiStream

      public void setAsciiStream​(int parameterIndex, InputStream x, long length) throws SQLException
      Feature not supported.
      Specified by:
      setAsciiStream in interface PreparedStatement
      Throws:
      SQLFeatureNotSupportedException - This feature is not supported
      SQLException
    • setAsciiStream

      public void setAsciiStream​(int parameterIndex, InputStream x) throws SQLException
      Feature not supported.
      Specified by:
      setAsciiStream in interface PreparedStatement
      Throws:
      SQLFeatureNotSupportedException - This feature is not supported
      SQLException
    • setUnicodeStream

      public void setUnicodeStream​(int parameterIndex, InputStream x, int length) throws SQLException
      Feature not supported.
      Specified by:
      setUnicodeStream in interface PreparedStatement
      Throws:
      SQLFeatureNotSupportedException - This feature is not supported
      SQLException
    • setBinaryStream

      public void setBinaryStream​(int parameterIndex, InputStream x, int length) throws SQLException
      Feature not supported.
      Specified by:
      setBinaryStream in interface PreparedStatement
      Throws:
      SQLFeatureNotSupportedException - This feature is not supported
      SQLException
    • setBinaryStream

      public void setBinaryStream​(int parameterIndex, InputStream x, long length) throws SQLException
      Feature not supported.
      Specified by:
      setBinaryStream in interface PreparedStatement
      Throws:
      SQLFeatureNotSupportedException - This feature is not supported
      SQLException
    • setBinaryStream

      public void setBinaryStream​(int parameterIndex, InputStream x) throws SQLException
      Feature not supported.
      Specified by:
      setBinaryStream in interface PreparedStatement
      Throws:
      SQLFeatureNotSupportedException - This feature is not supported
      SQLException
    • setBlob

      public void setBlob​(int parameterIndex, InputStream inputStream) throws SQLException
      Feature not supported.
      Specified by:
      setBlob in interface PreparedStatement
      Throws:
      SQLFeatureNotSupportedException - This feature is not supported
      SQLException
    • setBlob

      public void setBlob​(int parameterIndex, InputStream inputStream, long length) throws SQLException
      Feature not supported.
      Specified by:
      setBlob in interface PreparedStatement
      Throws:
      SQLFeatureNotSupportedException - This feature is not supported
      SQLException
    • setRef

      public void setRef​(int parameterIndex, Ref x) throws SQLException
      Feature not supported.
      Specified by:
      setRef in interface PreparedStatement
      Throws:
      SQLFeatureNotSupportedException - This feature is not supported
      SQLException
    • setSQLXML

      public void setSQLXML​(int parameterIndex, SQLXML xmlObject) throws SQLException
      Feature not supported.
      Specified by:
      setSQLXML in interface PreparedStatement
      Throws:
      SQLFeatureNotSupportedException - This feature is not supported
      SQLException
    • setArray

      public void setArray​(int parameterIndex, Array x) throws SQLException
      Feature not supported.
      Specified by:
      setArray in interface PreparedStatement
      Throws:
      SQLFeatureNotSupportedException - This feature is not supported
      SQLException
    • setRowId

      public void setRowId​(int parameterIndex, RowId x) throws SQLException
      Feature not supported.
      Specified by:
      setRowId in interface PreparedStatement
      Throws:
      SQLFeatureNotSupportedException - This feature is not supported
      SQLException
    • setNClob

      public void setNClob​(int parameterIndex, NClob value) throws SQLException
      Feature not supported.
      Specified by:
      setNClob in interface PreparedStatement
      Throws:
      SQLFeatureNotSupportedException - This feature is not supported
      SQLException
    • setNClob

      public void setNClob​(int parameterIndex, Reader reader, long length) throws SQLException
      Feature not supported.
      Specified by:
      setNClob in interface PreparedStatement
      Throws:
      SQLFeatureNotSupportedException - This feature is not supported
      SQLException
    • setNClob

      public void setNClob​(int parameterIndex, Reader reader) throws SQLException
      Feature not supported.
      Specified by:
      setNClob in interface PreparedStatement
      Throws:
      SQLFeatureNotSupportedException - This feature is not supported
      SQLException