Interface TrackingEntryDao

  • All Known Implementing Classes:
    TrackingEntryDaoImpl

    @Transactional
    public interface TrackingEntryDao
    • Method Detail

      • saveTrackingEntry

        void saveTrackingEntry​(@NotNull
                               @NotNull AOTrackingEntry trackingEntry)
        Save changes for an existing tracking entry Do NOT use to create brand new objects
        Parameters:
        trackingEntry - to save
      • createTrackingEntry

        @NotNull
        @NotNull AOTrackingEntry createTrackingEntry​(long planId,
                                                     boolean active)
        Create a new tracking entry for the plan.
        Parameters:
        planId - plan tracking entry belongs to
        active - whether the tracking entry currently active or not
        Returns:
        created tracking entry
      • getTrackingEntryById

        @Nullable
        @Nullable AOTrackingEntry getTrackingEntryById​(int id)
        Find tracking entry by database ID
        Parameters:
        id - of tracking entry to find
        Returns:
        tracking entry with id if exists, otherwise null
      • getTrackingEntryForResult

        @Nullable
        @Nullable AOTrackingEntry getTrackingEntryForResult​(Long resultId)
      • removeTrackingForPlan

        void removeTrackingForPlan​(long idOfDeletedItem)
      • removeTrackingForResult

        void removeTrackingForResult​(long idOfDeletedItem)
      • closeAllTrackingEntries

        void closeAllTrackingEntries​(long planid)
      • getActiveTrackingEntriesForUser

        List<AOTrackingEntry> getActiveTrackingEntriesForUser​(String username,
                                                              int start,
                                                              int limit)
      • getTrackingEntryWithBuildNumber

        AOTrackingEntry getTrackingEntryWithBuildNumber​(long planId,
                                                        int buildNumber)