Class AbstractAutoSeekingCLI<T extends Auditable>

    • Constructor Detail

      • AbstractAutoSeekingCLI

        protected AbstractAutoSeekingCLI​(Class<T> entityClass)
    • Method Detail

      • addAutoOption

        protected void addAutoOption​(org.apache.commons.cli.Options options)
        Add the -auto option.

        The auto option value can be retrieved with isAutoSeek().

      • addLimitingDateOption

        protected void addLimitingDateOption​(org.apache.commons.cli.Options options)
        Add the -mdate option.

        The limiting date can be retrieved with getLimitingDate().

      • addForceOption

        protected void addForceOption​(org.apache.commons.cli.Options options)
      • isAutoSeek

        protected boolean isAutoSeek()
        Indicate if auto-seek is enabled.
      • getAutoSeekEventType

        protected Class<? extends AuditEventType> getAutoSeekEventType()
        Indicate the event to be used for auto-seeking.
      • getLimitingDate

        @Nullable
        protected Date getLimitingDate()
        Obtain the limiting date (i.e. starting date at which entities should be processed).
      • isForce

        protected boolean isForce()
        Check if forcing is enabled.
      • setForce

        protected void setForce()
        Enable the forcing mode.
      • noNeedToRun

        protected boolean noNeedToRun​(T auditable,
                                      @Nullable
                                      Class<? extends AuditEventType> eventClass)
        Check if the given auditable can be skipped.
        Parameters:
        auditable - auditable
        eventClass - can be null
        Returns:
        boolean