Class CalendarType

    • Constructor Detail

      • CalendarType

        public CalendarType()
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: Type
        Returns the abbreviated name of the type.
        Specified by:
        getName in interface Type
        Returns:
        String the Hibernate type name
      • next

        public java.util.Calendar next​(java.util.Calendar current,
                                       SharedSessionContractImplementor session)
        Description copied from interface: VersionType
        Increment the version.
        Specified by:
        next in interface VersionType<java.util.Calendar>
        Parameters:
        current - the current version
        session - The session from which this request originates.
        Returns:
        an instance of the type
      • seed

        public java.util.Calendar seed​(SharedSessionContractImplementor session)
        Description copied from interface: VersionType
        Generate an initial version.
        Specified by:
        seed in interface VersionType<java.util.Calendar>
        Parameters:
        session - The session from which this request originates.
        Returns:
        an instance of the type
      • getComparator

        public java.util.Comparator<java.util.Calendar> getComparator()
        Description copied from interface: VersionType
        Get a comparator for version values.
        Specified by:
        getComparator in interface VersionType<java.util.Calendar>
        Returns:
        The comparator to use to compare different version values.