Class JSR310LocalDateType

All Implemented Interfaces:
Type<LocalDate>

public class JSR310LocalDateType extends AbstractJSR310DateTimeType<LocalDate>
  • Constructor Details

    • JSR310LocalDateType

      public JSR310LocalDateType()
    • JSR310LocalDateType

      public JSR310LocalDateType(int type)
  • Method Details

    • getLiteral

      public String getLiteral(LocalDate value)
      Description copied from interface: Type
      Get the literal representation
      Specified by:
      getLiteral in interface Type<LocalDate>
      Overrides:
      getLiteral in class AbstractType<LocalDate>
      Parameters:
      value - value
      Returns:
      literal representation
    • getReturnedClass

      public Class<LocalDate> getReturnedClass()
      Description copied from interface: Type
      Get the returned type
      Returns:
      returned class
    • getValue

      @Nullable public @Nullable LocalDate getValue(ResultSet rs, int startIndex) throws SQLException
      Description copied from interface: Type
      Get the object from the result set
      Parameters:
      rs - result set
      startIndex - column index in result set
      Returns:
      value
      Throws:
      SQLException
    • setValue

      public void setValue(PreparedStatement st, int startIndex, LocalDate value) throws SQLException
      Description copied from interface: Type
      Set the object to the statement
      Parameters:
      st - statement
      startIndex - column index in statement
      value - value to be set
      Throws:
      SQLException