Interface AppliedPatchDAO

All Known Implementing Classes:
AbstractAppliedPatchDAOImpl, AppliedPatchDAOImpl

public interface AppliedPatchDAO
Provides data access support for patch persistence in alf_applied_patch.
Since:
3.4
Author:
Derek Hulley
  • Method Details

    • createAppliedPatch

      void createAppliedPatch(AppliedPatch appliedPatch)
      Creates and saves a new instance of the patch.
      Parameters:
      appliedPatch - the patch
    • updateAppliedPatch

      void updateAppliedPatch(AppliedPatch appliedPatch)
    • getAppliedPatch

      AppliedPatch getAppliedPatch(String id)
      Retrieve an existing patch
      Parameters:
      id - the patch unique ID
      Returns:
      Returns the patch instance or null if one has not been persisted
    • getAppliedPatches

      List<AppliedPatch> getAppliedPatches()
      Get a list of all applied patches
      Returns:
      Returns a list of all applied patches
    • getAppliedPatches

      List<AppliedPatch> getAppliedPatches(Date from, Date to)
      Get a list of all patches applied between the given dates.
      Parameters:
      from - the lower date limit or null to ignore
      to - the upper date limit or null to ignore
      Returns:
      Returns applied patches for the date range, but also patches without a date
    • setAppliedOnDate

      void setAppliedOnDate(String id, Date appliedOnDate)
      Update the patch applied on date.
      Parameters:
      id - the patch ID
      appliedOnDate - the date applied