Class NowValueHolder

    • Constructor Detail

      • NowValueHolder

        public NowValueHolder()
    • Method Detail

      • getType

        public QName getType()
        Description copied from interface: IValueHolder
        The type of data this value holder holds.
        Specified by:
        getType in interface IValueHolder<Date>
        Returns:
        XSD_TYPE.DATETIME.
      • getValue

        public Date getValue()
        Get the current time with fractional seconds set to zero.

        Note that subsequent calls to getValue will return the same value.

        Specified by:
        getValue in interface IValueHolder<Date>
        Returns:
        A java.sql.Timestamp that represents the current time with fractional seconds set to zero.
      • getRawValue

        public Object getRawValue()
        Get the current time with fractional seconds in millisecond resolution.

        Note that subsequent calls to getValue will return the same value.

        Specified by:
        getRawValue in interface IValueHolder<Date>
        Returns:
        A java.sql.Timestamp that represents the current time.
      • hasValue

        public boolean hasValue()
        Description copied from interface: IValueHolder
        Check if this value holder currently holds data or not.
        Specified by:
        hasValue in interface IValueHolder<Date>
        Returns:
        Always true.