Interface BackendPreparedStatement


  • public interface BackendPreparedStatement
    Just an interface to decouple dependency from PreparedStatementWrapper.
    Author:
    harald
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void setBigDecimal​(int p, java.math.BigDecimal d)
      Sets the designated parameter to the given java.math.BigDecimal value.
      void setBoolean​(int p, boolean b)
      Sets the designated parameter to the given Java boolean value.
      void setBoolean​(int p, java.lang.Boolean b)
      Sets the designated parameter to the given Java Boolean value.
      void setByte​(int p, byte b)
      Sets the designated parameter to the given Java byte value.
      void setByte​(int p, java.lang.Byte b)
      Sets the designated parameter to the given Java Byte value.
      void setChar​(int p, char c)
      Sets the designated parameter to the given Java char value.
      void setCharacter​(int p, java.lang.Character c)
      Sets the designated parameter to the given Java Character value.
      void setCharacter​(int p, java.lang.Character c, boolean mapNull)
      Sets the designated parameter to the given Java Character value.
      void setDate​(int p, java.sql.Date d)
      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 setDate​(int p, java.sql.Date d, boolean mapNull)
      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 setDate​(int p, java.sql.Date d, java.util.Calendar timezone)
      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 setDate​(int p, java.sql.Date d, java.util.Calendar timezone, boolean mapNull)
      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 p, double d)
      Sets the designated parameter to the given Java double value.
      void setDouble​(int p, java.lang.Double d)
      Sets the designated parameter to the given Java Double value.
      void setFloat​(int p, float f)
      Sets the designated parameter to the given Java float value.
      void setFloat​(int p, java.lang.Float f)
      Sets the designated parameter to the given Java Float value.
      void setInt​(int p, int i)
      Sets the designated parameter to the given Java int value.
      void setInteger​(int p, java.lang.Integer i)
      Sets the designated parameter to the given Java Integer value.
      void setLargeString​(int p, java.lang.String s)
      Sets a very large string.
      This is usually converted to SQL CLOB.
      void setLargeString​(int p, java.lang.String s, boolean mapNull)
      Sets a very large string.
      This is usually converted to SQL CLOB.
      void setLocalDate​(int p, java.time.LocalDate d)
      Sets the designated parameter to the given java.time.LocalDate value using the default time zone of the virtual machine that is running the application.
      void setLocalDate​(int p, java.time.LocalDate d, boolean mapNull)
      Sets the designated parameter to the given java.time.LocalDate value using the default time zone of the virtual machine that is running the application.
      void setLocalDate​(int p, java.time.LocalDate d, java.util.Calendar timezone)
      Sets the designated parameter to the given java.time.LocalDate value using the default time zone of the virtual machine that is running the application.
      void setLocalDate​(int p, java.time.LocalDate d, java.util.Calendar timezone, boolean mapNull)
      Sets the designated parameter to the given java.time.LocalDate value using the default time zone of the virtual machine that is running the application.
      void setLocalDateTime​(int p, java.time.LocalDateTime ts)
      Sets the designated parameter to the given java.time.LocalDateTime value.
      void setLocalDateTime​(int p, java.time.LocalDateTime ts, boolean mapNull)
      Sets the designated parameter to the given java.time.LocalDateTime value.
      void setLocalDateTime​(int p, java.time.LocalDateTime ts, java.util.Calendar timezone)
      Sets the designated parameter to the given java.time.LocalDateTime value.
      void setLocalDateTime​(int p, java.time.LocalDateTime ts, java.util.Calendar timezone, boolean mapNull)
      Sets the designated parameter to the given java.time.LocalDateTime value.
      void setLocalTime​(int p, java.time.LocalTime t)
      Sets the designated parameter to the given java.time.LocalTime value.
      void setLocalTime​(int p, java.time.LocalTime t, java.util.Calendar timezone)
      Sets the designated parameter to the given java.time.LocalTime value.
      void setLong​(int p, long l)
      Sets the designated parameter to the given Java long value.
      void setLong​(int p, java.lang.Long l)
      Sets the designated parameter to the given Java Long value.
      void setNull​(int pos, int type)
      Sets the designated parameter to SQL NULL.
      void setShort​(int p, short s)
      Sets the designated parameter to the given Java short value.
      void setShort​(int p, java.lang.Short s)
      Sets the designated parameter to the given Java Short value.
      void setString​(int p, java.lang.String s)
      Sets the designated parameter to the given Java String value.
      void setString​(int p, java.lang.String s, boolean mapNull)
      Sets the designated parameter to the given Java String value.
      void setTime​(int p, java.sql.Time t)
      Sets the designated parameter to the given java.sql.Time value.
      void setTime​(int p, java.sql.Time t, java.util.Calendar timezone)
      Sets the designated parameter to the given java.sql.Time value.
      void setTimestamp​(int p, java.sql.Timestamp ts)
      Sets the designated parameter to the given java.sql.Timestamp value.
      void setTimestamp​(int p, java.sql.Timestamp ts, boolean mapNull)
      Sets the designated parameter to the given java.sql.Timestamp value.
      void setTimestamp​(int p, java.sql.Timestamp ts, java.util.Calendar timezone)
      Sets the designated parameter to the given java.sql.Timestamp value.
      void setTimestamp​(int p, java.sql.Timestamp ts, java.util.Calendar timezone, boolean mapNull)
      Sets the designated parameter to the given java.sql.Timestamp value.
    • Method Detail

      • setBoolean

        void setBoolean​(int p,
                        java.lang.Boolean b)
        Sets the designated parameter to the given Java Boolean value. The driver converts this to an SQL BIT or BOOLEAN value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        b - the parameter value, null if the value should be set to SQL NULL
      • setBoolean

        void setBoolean​(int p,
                        boolean b)
        Sets the designated parameter to the given Java boolean value. The driver converts this to an SQL BIT or BOOLEAN value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        b - the parameter value
      • setByte

        void setByte​(int p,
                     java.lang.Byte b)
        Sets the designated parameter to the given Java Byte value. The driver converts this to an SQL TINYINT value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        b - the parameter value, null if the value should be set to SQL NULL
      • setByte

        void setByte​(int p,
                     byte b)
        Sets the designated parameter to the given Java byte value. The driver converts this to an SQL TINYINT value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        b - the parameter value
      • setChar

        void setChar​(int p,
                     char c)
        Sets the designated parameter to the given Java char value. The driver converts this to an SQL VARCHAR when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        c - the parameter value
      • setCharacter

        void setCharacter​(int p,
                          java.lang.Character c)
        Sets the designated parameter to the given Java Character value. The driver converts this to an SQL VARCHAR when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        c - the parameter value, null if the value should be set to SQL NULL
      • setCharacter

        void setCharacter​(int p,
                          java.lang.Character c,
                          boolean mapNull)
        Sets the designated parameter to the given Java Character value. The driver converts this to an SQL VARCHAR when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        c - the parameter value, null if the value should be set to SQL NULL
        mapNull - true if null values should be mapped to BLANK, else SQL NULL
      • setDate

        void setDate​(int p,
                     java.sql.Date d)
        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. The driver converts this to an SQL DATE value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        d - the parameter value, null if the value should be set to SQL NULL
      • setDate

        void setDate​(int p,
                     java.sql.Date d,
                     boolean mapNull)
        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. The driver converts this to an SQL DATE value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        d - the parameter value
        mapNull - to map null values to 1.1.1970 (epochal time zero), else SQL NULL
      • setDate

        void setDate​(int p,
                     java.sql.Date d,
                     java.util.Calendar timezone)
        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. The driver converts this to an SQL DATE value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        d - the parameter value
        timezone - the calendar providing the timezone configuration
      • setDate

        void setDate​(int p,
                     java.sql.Date d,
                     java.util.Calendar timezone,
                     boolean mapNull)
        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. The driver converts this to an SQL DATE value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        d - the parameter value
        timezone - the calendar providing the timezone configuration
        mapNull - to map null values to 1.1.1970 (epochal time zero), else SQL NULL
      • setDouble

        void setDouble​(int p,
                       java.lang.Double d)
        Sets the designated parameter to the given Java Double value. The driver converts this to an SQL DOUBLE value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        d - the parameter value, null if the value should be set to SQL NULL
      • setDouble

        void setDouble​(int p,
                       double d)
        Sets the designated parameter to the given Java double value. The driver converts this to an SQL DOUBLE value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        d - the parameter value
      • setFloat

        void setFloat​(int p,
                      java.lang.Float f)
        Sets the designated parameter to the given Java Float value. The driver converts this to an SQL REAL value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        f - the parameter value, null if the value should be set to SQL NULL
      • setFloat

        void setFloat​(int p,
                      float f)
        Sets the designated parameter to the given Java float value. The driver converts this to an SQL REAL value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        f - the parameter value
      • setInt

        void setInt​(int p,
                    int i)
        Sets the designated parameter to the given Java int value. The driver converts this to an SQL INTEGER value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        i - the parameter value
      • setInteger

        void setInteger​(int p,
                        java.lang.Integer i)
        Sets the designated parameter to the given Java Integer value. The driver converts this to an SQL INTEGER value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        i - the parameter value, null if the value should be set to SQL NULL
      • setLocalDate

        void setLocalDate​(int p,
                          java.time.LocalDate d)
        Sets the designated parameter to the given java.time.LocalDate value using the default time zone of the virtual machine that is running the application. The driver converts this to an SQL DATE value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        d - the parameter value, null if the value should be set to SQL NULL
      • setLocalDate

        void setLocalDate​(int p,
                          java.time.LocalDate d,
                          boolean mapNull)
        Sets the designated parameter to the given java.time.LocalDate value using the default time zone of the virtual machine that is running the application. The driver converts this to an SQL DATE value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        d - the parameter value
        mapNull - to map null values to 1.1.1970 (epochal time zero), else SQL NULL
      • setLocalDate

        void setLocalDate​(int p,
                          java.time.LocalDate d,
                          java.util.Calendar timezone)
        Sets the designated parameter to the given java.time.LocalDate value using the default time zone of the virtual machine that is running the application. The driver converts this to an SQL DATE value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        d - the parameter value
        timezone - the calendar providing the timezone configuration
      • setLocalDate

        void setLocalDate​(int p,
                          java.time.LocalDate d,
                          java.util.Calendar timezone,
                          boolean mapNull)
        Sets the designated parameter to the given java.time.LocalDate value using the default time zone of the virtual machine that is running the application. The driver converts this to an SQL DATE value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        d - the parameter value
        timezone - the calendar providing the timezone configuration
        mapNull - to map null values to 1.1.1970 (epochal time zero), else SQL NULL
      • setLocalDateTime

        void setLocalDateTime​(int p,
                              java.time.LocalDateTime ts)
        Sets the designated parameter to the given java.time.LocalDateTime value. The driver converts this to an SQL TIMESTAMP value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        ts - the parameter value, null if the value should be set to SQL NULL
      • setLocalDateTime

        void setLocalDateTime​(int p,
                              java.time.LocalDateTime ts,
                              boolean mapNull)
        Sets the designated parameter to the given java.time.LocalDateTime value. The driver converts this to an SQL TIMESTAMP value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        ts - the parameter value
        mapNull - to map null values to 1.1.1970 00:00:00.000 (epochal time zero), else SQL NULL
      • setLocalDateTime

        void setLocalDateTime​(int p,
                              java.time.LocalDateTime ts,
                              java.util.Calendar timezone)
        Sets the designated parameter to the given java.time.LocalDateTime value. The driver converts this to an SQL TIMESTAMP value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        ts - the parameter value
        timezone - the calendar providing the timezone configuration else SQL NULL
      • setLocalDateTime

        void setLocalDateTime​(int p,
                              java.time.LocalDateTime ts,
                              java.util.Calendar timezone,
                              boolean mapNull)
        Sets the designated parameter to the given java.time.LocalDateTime value. The driver converts this to an SQL TIMESTAMP value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        ts - the parameter value
        timezone - the calendar providing the timezone configuration
        mapNull - to map null values to 1.1.1970 00:00:00.000 (epochal time zero), else SQL NULL
      • setLocalTime

        void setLocalTime​(int p,
                          java.time.LocalTime t)
        Sets the designated parameter to the given java.time.LocalTime value. The driver converts this to an SQL TIME value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        t - the parameter value, null if the value should be set to SQL NULL
      • setLocalTime

        void setLocalTime​(int p,
                          java.time.LocalTime t,
                          java.util.Calendar timezone)
        Sets the designated parameter to the given java.time.LocalTime value. The driver converts this to an SQL TIME value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        t - the parameter value, null if the value should be set to SQL NULL
        timezone - the calendar providing the timezone configuration
      • setLong

        void setLong​(int p,
                     java.lang.Long l)
        Sets the designated parameter to the given Java Long value. The driver converts this to an SQL BIGINT value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        l - the parameter value, null if the value should be set to SQL NULL
      • setLong

        void setLong​(int p,
                     long l)
        Sets the designated parameter to the given Java long value. The driver converts this to an SQL BIGINT value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        l - the parameter value
      • setNull

        void setNull​(int pos,
                     int type)
        Sets the designated parameter to SQL NULL.
        Parameters:
        pos - the first parameter is 1, the second is 2, ...
        type - the SQL type code defined in java.sql.Types
      • setShort

        void setShort​(int p,
                      java.lang.Short s)
        Sets the designated parameter to the given Java Short value. The driver converts this to an SQL SMALLINT value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        s - the parameter value, null if the value should be set to SQL NULL
      • setShort

        void setShort​(int p,
                      short s)
        Sets the designated parameter to the given Java short value. The driver converts this to an SQL SMALLINT value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        s - the parameter value
      • setString

        void setString​(int p,
                       java.lang.String s)
        Sets the designated parameter to the given Java String value. The driver converts this to an SQL VARCHAR or LONGVARCHAR value (depending on the argument's size relative to the driver's limits on VARCHAR values) when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        s - the parameter value, null if the value should be set to SQL NULL
      • setString

        void setString​(int p,
                       java.lang.String s,
                       boolean mapNull)
        Sets the designated parameter to the given Java String value. The driver converts this to an SQL VARCHAR or LONGVARCHAR value (depending on the argument's size relative to the driver's limits on VARCHAR values) when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        s - the parameter value
        mapNull - true if null values should be mapped to the empty string, else SQL NULL
      • setLargeString

        void setLargeString​(int p,
                            java.lang.String s,
                            boolean mapNull)
        Sets a very large string.
        This is usually converted to SQL CLOB.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        s - the parameter value
        mapNull - true if null values should be mapped to the empty string, else SQL NULL
      • setLargeString

        void setLargeString​(int p,
                            java.lang.String s)
        Sets a very large string.
        This is usually converted to SQL CLOB.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        s - the parameter value, null if the value should be set to SQL NULL
      • setTime

        void setTime​(int p,
                     java.sql.Time t)
        Sets the designated parameter to the given java.sql.Time value. The driver converts this to an SQL TIME value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        t - the parameter value, null if the value should be set to SQL NULL
      • setTime

        void setTime​(int p,
                     java.sql.Time t,
                     java.util.Calendar timezone)
        Sets the designated parameter to the given java.sql.Time value. The driver converts this to an SQL TIME value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        t - the parameter value, null if the value should be set to SQL NULL
        timezone - the calendar providing the timezone configuration
      • setTimestamp

        void setTimestamp​(int p,
                          java.sql.Timestamp ts)
        Sets the designated parameter to the given java.sql.Timestamp value. The driver converts this to an SQL TIMESTAMP value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        ts - the parameter value, null if the value should be set to SQL NULL
      • setTimestamp

        void setTimestamp​(int p,
                          java.sql.Timestamp ts,
                          boolean mapNull)
        Sets the designated parameter to the given java.sql.Timestamp value. The driver converts this to an SQL TIMESTAMP value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        ts - the parameter value
        mapNull - to map null values to 1.1.1970 00:00:00.000 (epochal time zero), else SQL NULL
      • setTimestamp

        void setTimestamp​(int p,
                          java.sql.Timestamp ts,
                          java.util.Calendar timezone)
        Sets the designated parameter to the given java.sql.Timestamp value. The driver converts this to an SQL TIMESTAMP value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        ts - the parameter value
        timezone - the calendar providing the timezone configuration else SQL NULL
      • setTimestamp

        void setTimestamp​(int p,
                          java.sql.Timestamp ts,
                          java.util.Calendar timezone,
                          boolean mapNull)
        Sets the designated parameter to the given java.sql.Timestamp value. The driver converts this to an SQL TIMESTAMP value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        ts - the parameter value
        timezone - the calendar providing the timezone configuration
        mapNull - to map null values to 1.1.1970 00:00:00.000 (epochal time zero), else SQL NULL
      • setBigDecimal

        void setBigDecimal​(int p,
                           java.math.BigDecimal d)
        Sets the designated parameter to the given java.math.BigDecimal value. The driver converts this to an SQL NUMERIC value when it sends it to the database.
        Parameters:
        p - the first parameter is 1, the second is 2, ...
        d - the parameter value, null if the value should be set to SQL NULL