Class JdbcValue

java.lang.Object
org.springframework.data.jdbc.core.mapping.JdbcValue

public class JdbcValue extends Object
Wraps a value with the JDBCType that should be used to pass it as a bind parameter to a PreparedStatement. Register a converter from any type to JdbcValue in order to control the value and the JDBCType as which a value should get passed to the JDBC driver.
Since:
2.4
Author:
Jens Schauder
  • Constructor Details

    • JdbcValue

      protected JdbcValue(@Nullable Object value, SQLType jdbcType)
  • Method Details

    • of

      public static JdbcValue of(@Nullable Object value, @Nullable SQLType jdbcType)
    • getValue

      public @Nullable Object getValue()
    • getJdbcType

      public SQLType getJdbcType()
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object