Class DbTimestampJavaType<T>

    • Constructor Detail

      • DbTimestampJavaType

        public DbTimestampJavaType​(TemporalJavaType<T> delegate)
        Deprecated.
    • Method Detail

      • next

        public T next​(T current,
                      Long length,
                      Integer precision,
                      Integer scale,
                      SharedSessionContractImplementor session)
        Deprecated.
        Description copied from interface: VersionJavaType
        Increment the version.
        Specified by:
        next in interface VersionJavaType<T>
        Parameters:
        current - the current version
        length - The length of the type
        precision - The precision of the type
        scale - The scale of the type
        session - The session from which this request originates.
        Returns:
        an instance of the type
      • seed

        public T seed​(Long length,
                      Integer precision,
                      Integer scale,
                      SharedSessionContractImplementor session)
        Deprecated.
        Description copied from interface: VersionJavaType
        Generate an initial version.
        Specified by:
        seed in interface VersionJavaType<T>
        Parameters:
        length - The length of the type
        precision - The precision of the type
        scale - The scale of the type
        session - The session from which this request originates.
        Returns:
        an instance of the type
      • getRecommendedJdbcType

        public JdbcType getRecommendedJdbcType​(JdbcTypeIndicators indicators)
        Deprecated.
        Description copied from interface: JavaType
        Obtain the "recommended" SQL type descriptor for this Java type. The recommended aspect comes from the JDBC spec (mostly).
        Specified by:
        getRecommendedJdbcType in interface BasicJavaType<T>
        Specified by:
        getRecommendedJdbcType in interface JavaType<T>
        Parameters:
        indicators - Contextual information
        Returns:
        The recommended SQL type descriptor
      • getComparator

        public Comparator<T> getComparator()
        Deprecated.
        Description copied from interface: JavaType
        Retrieve the natural comparator for this type.
        Specified by:
        getComparator in interface JavaType<T>
      • extractHashCode

        public int extractHashCode​(T value)
        Deprecated.
        Description copied from interface: JavaType
        Extract a proper hash code for this value.
        Specified by:
        extractHashCode in interface JavaType<T>
        Parameters:
        value - The value for which to extract a hash code.
        Returns:
        The extracted hash code.
      • areEqual

        public boolean areEqual​(T one,
                                T another)
        Deprecated.
        Description copied from interface: JavaType
        Determine if two instances are equal
        Specified by:
        areEqual in interface JavaType<T>
        Parameters:
        one - One instance
        another - The other instance
        Returns:
        True if the two are considered equal; false otherwise.
      • extractLoggableRepresentation

        public String extractLoggableRepresentation​(T value)
        Deprecated.
        Description copied from interface: JavaType
        Extract a loggable representation of the value.
        Specified by:
        extractLoggableRepresentation in interface JavaType<T>
        Parameters:
        value - The value for which to extract a loggable representation.
        Returns:
        The loggable representation
      • unwrap

        public <X> X unwrap​(T value,
                            Class<X> type,
                            WrapperOptions options)
        Deprecated.
        Description copied from interface: JavaType
        Unwrap an instance of our handled Java type into the requested type.

        As an example, if this is a JavaType<Integer> and we are asked to unwrap the Integer value as a Long we would return something like Long.valueOf( value.longValue() ).

        Intended use is during PreparedStatement binding.

        Specified by:
        unwrap in interface JavaType<T>
        Type Parameters:
        X - The conversion type.
        Parameters:
        value - The value to unwrap
        type - The type as which to unwrap
        options - The options
        Returns:
        The unwrapped value.
      • wrap

        public <X> T wrap​(X value,
                          WrapperOptions options)
        Deprecated.
        Description copied from interface: JavaType
        Wrap a value as our handled Java type.

        Intended use is during ResultSet extraction.

        Specified by:
        wrap in interface JavaType<T>
        Type Parameters:
        X - The conversion type.
        Parameters:
        value - The value to wrap.
        options - The options
        Returns:
        The wrapped value.
      • getCheckCondition

        public String getCheckCondition​(String columnName,
                                        JdbcType sqlType,
                                        Dialect dialect)
        Deprecated.
        Description copied from interface: JavaType
        The check constraint that should be added to the column definition in generated DDL.
        Specified by:
        getCheckCondition in interface JavaType<T>
        Parameters:
        columnName - the name of the column
        sqlType - the JdbcType of the mapped column
        dialect - the SQL Dialect
        Returns:
        a check constraint condition or null
      • getPrecision

        public jakarta.persistence.TemporalType getPrecision()
        Deprecated.
        Description copied from interface: TemporalJavaType
        The precision represented by this type
        Specified by:
        getPrecision in interface TemporalJavaType<T>