Interface AppliedPatchDAO

    • Method Detail

      • 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​(java.lang.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

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

        java.util.List<AppliedPatch> getAppliedPatches​(java.util.Date from,
                                                       java.util.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​(java.lang.String id,
                              java.util.Date appliedOnDate)
        Update the patch applied on date.
        Parameters:
        id - the patch ID
        appliedOnDate - the date applied