Interface QuickFilterDao

    • Method Detail

      • findById

        @Nullable
        @Nullable QuickFilter findById​(long id)
      • findByName

        @Nullable
        @Nullable QuickFilter findByName​(@NotNull
                                         @NotNull String name)
      • findAll

        @NotNull
        @NotNull List<QuickFilter> findAll()
        Returns all quick filters ordered by their position.
        Returns:
        ordered list of quick filters
      • create

        void create​(@NotNull
                    @NotNull QuickFilter quickFilter)
        Creates a new quick filter. This method must be used instead of directly calling save(QuickFilter) to maintain database integrity related to quick filter positions. If the quick filter doesn't have a position defined, it will be assigned one. If instead it has a position defined, then other persisted quick filters will be repositioned accordingly.
        Parameters:
        quickFilter - entity to create, with or without defined position.
      • update

        void update​(@NotNull
                    @NotNull QuickFilter quickFilter,
                    int previousPosition)
        Updates a quick filter. This method must be used instead of directly calling save(QuickFilter) to maintain database integrity related to quick filter positions. After the update, other persisted quick filters will be repositioned if necessary.
        Parameters:
        quickFilter - entity to update
        previousPosition - previous position of the quick filter
      • scrollQuickFiltersForExport

        long scrollQuickFiltersForExport​(Consumer<QuickFilter> exportXmlConsumer)
        Scroll through all QuickFilter records and pass them to consumer