Class FieldNamedPreparedStatementImpl

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addBatch()
      Adds a set of parameters to this NamedPreparedStatement object's batch of commands.
      void clearParameters()
      Clears the current parameter values immediately.
      void close()
      Releases this Statement object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed.
      int[] executeBatch()
      Submits a batch of commands to the database for execution and if all commands execute successfully, returns an array of update counts.
      ResultSet executeQuery()
      Executes the SQL query in this NamedPreparedStatement object and returns the ResultSet object generated by the query.
      static String parseNamedStatement​(String sql, Map<String,​List<Integer>> paramMap)
      Parses a sql with named parameters.
      static FieldNamedPreparedStatement prepareStatement​(Connection connection, String sql, String[] fieldNames)
      Creates a NamedPreparedStatement object for sending parameterized SQL statements to the database.
      void setBigDecimal​(int fieldIndex, BigDecimal x)
      Sets the designated parameter to the given java.math.BigDecimal value.
      void setBoolean​(int fieldIndex, boolean x)
      Sets the designated parameter to the given Java boolean value.
      void setByte​(int fieldIndex, byte x)
      Sets the designated parameter to the given Java byte value.
      void setBytes​(int fieldIndex, byte[] x)
      Sets the designated parameter to the given Java array of bytes.
      void setDate​(int fieldIndex, Date x)
      Sets the designated parameter to the given java.sql.Date value using the default time zone of the virtual machine that is running the application.
      void setDouble​(int fieldIndex, double x)
      Sets the designated parameter to the given Java double value.
      void setFloat​(int fieldIndex, float x)
      Sets the designated parameter to the given Java float value.
      void setInt​(int fieldIndex, int x)
      Sets the designated parameter to the given Java int value.
      void setLong​(int fieldIndex, long x)
      Sets the designated parameter to the given Java long value.
      void setNull​(int fieldIndex, int sqlType)
      Sets the designated parameter to SQL NULL.
      void setObject​(int fieldIndex, Object x)
      Sets the value of the designated parameter using the given object.
      void setShort​(int fieldIndex, short x)
      Sets the designated parameter to the given Java short value.
      void setString​(int fieldIndex, String x)
      Sets the designated parameter to the given Java String value.
      void setTime​(int fieldIndex, Time x)
      Sets the designated parameter to the given java.sql.Time value.
      void setTimestamp​(int fieldIndex, Timestamp x)
      Sets the designated parameter to the given java.sql.Timestamp value.