Class CustomDateInterval

java.lang.Object
io.jmix.flowuidata.dateinterval.model.CustomDateInterval
All Implemented Interfaces:
BaseDateInterval, Function<String,String>

public class CustomDateInterval extends Object implements BaseDateInterval
DTO class describes a date interval with a custom date range.
  • Field Details

    • propertyPath

      protected String propertyPath
    • datatype

      protected String datatype
    • start

      protected final Object start
    • end

      protected final Object end
  • Constructor Details

  • Method Details

    • getType

      public BaseDateInterval.Type getType()
      Specified by:
      getType in interface BaseDateInterval
      Returns:
      type of date interval
    • getPropertyPath

      public String getPropertyPath()
      Returns:
      property name that is used to generate the parameter name in the query
    • getDatatype

      public String getDatatype()
      Returns:
      datatype ID of the property
    • getStart

      public Object getStart()
      Returns:
      date interval start date
    • getEnd

      public Object getEnd()
      Returns:
      date interval end date
    • apply

      public String apply(String property)
      Specified by:
      apply in interface BaseDateInterval
      Specified by:
      apply in interface Function<String,String>
      Parameters:
      property - entity property
      Returns:
      formatted JPQL string operation
    • getStartParameterName

      public String getStartParameterName()
      Returns:
      parameter name of the start date in a query
    • getEndParameterName

      public String getEndParameterName()
      Returns:
      parameter name of the end date in a query