Class ScalarTypeJodaDateMidnight

    • Method Detail

      • toJdbcType

        public Object toJdbcType​(Object value)
        Description copied from interface: ScalarType
        Convert the value as necessary to the JDBC type.

        Note that this should also match the type as per the getJdbcType() method.

        This is typically used when the matching type is used in a where clause and we use this to ensure it is an appropriate jdbc type.

      • toBeanType

        public org.joda.time.DateMidnight toBeanType​(Object value)
        Description copied from interface: ScalarType
        Convert the value as necessary to the logical Bean type.

        The type as per the bean property.

        This is used to automatically convert id values (typically from a string to a int, long or UUID).