Package org.alfresco.repo.domain.patch
Class AbstractAppliedPatchDAOImpl
java.lang.Object
org.alfresco.repo.domain.patch.AbstractAppliedPatchDAOImpl
- All Implemented Interfaces:
AppliedPatchDAO
- Direct Known Subclasses:
AppliedPatchDAOImpl
Abstract implementation for DAO alf_applied_patch.
- Since:
- 3.4
- Author:
- Derek Hulley
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateAppliedPatch(AppliedPatch appliedPatch) Creates and saves a new instance of the patch.protected abstract voidRetrieve an existing patchprotected abstract List<AppliedPatchEntity>protected abstract AppliedPatchEntityGet a list of all applied patchesgetAppliedPatches(Date from, Date to) Get a list of all patches applied between the given dates.voidsetAppliedOnDate(String id, Date appliedOnDate) Update the patch applied on date.voidupdateAppliedPatch(AppliedPatch appliedPatch) protected abstract voidupdateAppliedPatchEntity(AppliedPatchEntity appliedPatch)
-
Constructor Details
-
AbstractAppliedPatchDAOImpl
public AbstractAppliedPatchDAOImpl()
-
-
Method Details
-
createAppliedPatch
Description copied from interface:AppliedPatchDAOCreates and saves a new instance of the patch.- Specified by:
createAppliedPatchin interfaceAppliedPatchDAO- Parameters:
appliedPatch- the patch
-
updateAppliedPatch
- Specified by:
updateAppliedPatchin interfaceAppliedPatchDAO
-
getAppliedPatch
Description copied from interface:AppliedPatchDAORetrieve an existing patch- Specified by:
getAppliedPatchin interfaceAppliedPatchDAO- Parameters:
id- the patch unique ID- Returns:
- Returns the patch instance or null if one has not been persisted
-
getAppliedPatches
Description copied from interface:AppliedPatchDAOGet a list of all applied patches- Specified by:
getAppliedPatchesin interfaceAppliedPatchDAO- Returns:
- Returns a list of all applied patches
-
getAppliedPatches
Description copied from interface:AppliedPatchDAOGet a list of all patches applied between the given dates.- Specified by:
getAppliedPatchesin interfaceAppliedPatchDAO- 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
Description copied from interface:AppliedPatchDAOUpdate the patch applied on date.- Specified by:
setAppliedOnDatein interfaceAppliedPatchDAO- Parameters:
id- the patch IDappliedOnDate- the date applied
-
createAppliedPatchEntity
-
updateAppliedPatchEntity
-
getAppliedPatchEntity
-
getAppliedPatchEntities
-