Class AbstractTemporalLiteral

    • Constructor Detail

      • AbstractTemporalLiteral

        protected AbstractTemporalLiteral​(java.util.Date value)
        Construct an abstract temporal literal with given date.
        Parameters:
        value - Date value for the temporal literal.
      • AbstractTemporalLiteral

        protected AbstractTemporalLiteral​(java.util.Calendar value)
        Construct an abstract temporal literal with given calendar.
        Parameters:
        value - Calendar value for the temporal literal.
    • Method Detail

      • createInstance

        public static AbstractTemporalLiteral createInstance​(TemporalType temporalType,
                                                             java.util.Date value)
        Factory method to create a temporal literal for the date given that matches the temporal type given.
        Parameters:
        temporalType - Temporal type of the temporal literal to return.
        value - Date value for the temporal literal.
        Returns:
        Temporal literal.
      • createInstance

        public static AbstractTemporalLiteral createInstance​(TemporalType temporalType,
                                                             java.util.Calendar value)
        Factory method to create a temporal literal for the calendar given that matches the temporal type given.
        Parameters:
        temporalType - Temporal type of the temporal literal to return.
        value - Calendar value for the temporal literal.
        Returns:
        Temporal literal.
      • getValue

        public final java.util.Date getValue()
        Get date value of the temporal literal.
        Returns:
        Date value of the temporal literal.