Package org.alfresco.repo.domain.patch
Interface AppliedPatchDAO
-
- All Known Implementing Classes:
AbstractAppliedPatchDAOImpl,AppliedPatchDAOImpl
public interface AppliedPatchDAOProvides data access support for patch persistence in alf_applied_patch.- Since:
- 3.4
- Author:
- Derek Hulley
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreateAppliedPatch(AppliedPatch appliedPatch)Creates and saves a new instance of the patch.AppliedPatchgetAppliedPatch(java.lang.String id)Retrieve an existing patchjava.util.List<AppliedPatch>getAppliedPatches()Get a list of all applied patchesjava.util.List<AppliedPatch>getAppliedPatches(java.util.Date from, java.util.Date to)Get a list of all patches applied between the given dates.voidsetAppliedOnDate(java.lang.String id, java.util.Date appliedOnDate)Update the patch applied on date.voidupdateAppliedPatch(AppliedPatch appliedPatch)
-
-
-
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 ignoreto- 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 IDappliedOnDate- the date applied
-
-