Class ReportsUtils

java.lang.Object
io.jmix.reports.util.ReportsUtils

@Component("report_ReportsUtils") public class ReportsUtils extends Object
  • Field Details

    • MAX_REPORT_NAME_LENGTH

      protected static final int MAX_REPORT_NAME_LENGTH
      See Also:
    • timeSource

      @Autowired protected TimeSource timeSource
    • transaction

      @Autowired protected org.springframework.transaction.support.TransactionTemplate transaction
    • em

      protected jakarta.persistence.EntityManager em
    • dataManager

      @Autowired protected DataManager dataManager
    • entityStates

      @Autowired protected EntityStates entityStates
  • Constructor Details

    • ReportsUtils

      public ReportsUtils()
  • Method Details

    • generateReportName

      public String generateReportName(String sourceName)
    • reloadReportIfNeeded

      public Report reloadReportIfNeeded(Report report, String fetchPlanName)
    • currentDateOrTime

      public Date currentDateOrTime(ParameterType parameterType)
    • truncateToDay

      protected Date truncateToDay(Date date)
    • truncateToTime

      protected Date truncateToTime(Date date)
    • generateReportName

      protected String generateReportName(String sourceName, int iteration)