Interface TrackingEntryDao

All Known Implementing Classes:
TrackingEntryDaoImpl

@Transactional public interface TrackingEntryDao
  • Method Details

    • 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)
    • addUser

      AOTrackingEntry addUser(AOTrackingEntry entry, String username, @Nullable @Nullable String userWhoUpdated)
    • addResult

      AOTrackingEntry addResult(AOTrackingEntry entry, long resultId, int buildNumber)
    • removeUser

      void removeUser(AOTrackingUser responsible)
    • removeResult

      void removeResult(AOTrackingResult result)
    • removeTrackingEntry

      void removeTrackingEntry(AOTrackingEntry entry)
    • getActiveTrackingEntryForPlan

      AOTrackingEntry getActiveTrackingEntryForPlan(long id) throws MultipleActiveTrackingEntryException
      Gets the currently active tracking entry for a plan.
      Parameters:
      id - of the plan
      Returns:
      the open tracking entry if one (and only one) exists.
      Throws:
      MultipleActiveTrackingEntryException - if more than one active tracking entry is found
    • removeTrackingForPlan

      void removeTrackingForPlan(long idOfDeletedItem)
    • removeTrackingForResult

      void removeTrackingForResult(long idOfDeletedItem)
    • closeAllTrackingEntries

      void closeAllTrackingEntries(long planid)
    • getActiveTrackingEntries

      List<AOTrackingEntry> getActiveTrackingEntries()
    • getActiveTrackingEntriesForUser

      List<AOTrackingEntry> getActiveTrackingEntriesForUser(String username)
    • getActiveTrackingEntriesForUser

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

      void removeAllUsers(AOTrackingEntry entry)
    • getTrackingEntryWithBuildNumber

      AOTrackingEntry getTrackingEntryWithBuildNumber(long planId, int buildNumber)