public abstract class AbstractAppliedPatchDAOImpl extends Object implements AppliedPatchDAO
Constructor and Description |
---|
AbstractAppliedPatchDAOImpl() |
Modifier and Type | Method and Description |
---|---|
void |
createAppliedPatch(AppliedPatch appliedPatch)
Creates and saves a new instance of the patch.
|
protected abstract void |
createAppliedPatchEntity(AppliedPatchEntity entity) |
AppliedPatch |
getAppliedPatch(String id)
Retrieve an existing patch
|
protected abstract List<AppliedPatchEntity> |
getAppliedPatchEntities() |
protected abstract AppliedPatchEntity |
getAppliedPatchEntity(String id) |
List<AppliedPatch> |
getAppliedPatches()
Get a list of all applied patches
|
List<AppliedPatch> |
getAppliedPatches(Date from,
Date to)
Get a list of all patches applied between the given dates.
|
void |
setAppliedOnDate(String id,
Date appliedOnDate)
Update the patch applied on date.
|
void |
updateAppliedPatch(AppliedPatch appliedPatch) |
protected abstract void |
updateAppliedPatchEntity(AppliedPatchEntity appliedPatch) |
public void createAppliedPatch(AppliedPatch appliedPatch)
AppliedPatchDAO
createAppliedPatch
in interface AppliedPatchDAO
appliedPatch
- the patchpublic void updateAppliedPatch(AppliedPatch appliedPatch)
updateAppliedPatch
in interface AppliedPatchDAO
public AppliedPatch getAppliedPatch(String id)
AppliedPatchDAO
getAppliedPatch
in interface AppliedPatchDAO
id
- the patch unique IDpublic List<AppliedPatch> getAppliedPatches()
AppliedPatchDAO
getAppliedPatches
in interface AppliedPatchDAO
public List<AppliedPatch> getAppliedPatches(Date from, Date to)
AppliedPatchDAO
getAppliedPatches
in interface AppliedPatchDAO
from
- the lower date limit or null to ignoreto
- the upper date limit or null to ignorepublic void setAppliedOnDate(String id, Date appliedOnDate)
AppliedPatchDAO
setAppliedOnDate
in interface AppliedPatchDAO
id
- the patch IDappliedOnDate
- the date appliedprotected abstract void createAppliedPatchEntity(AppliedPatchEntity entity)
protected abstract void updateAppliedPatchEntity(AppliedPatchEntity appliedPatch)
protected abstract AppliedPatchEntity getAppliedPatchEntity(String id)
protected abstract List<AppliedPatchEntity> getAppliedPatchEntities()
Copyright © 2005–2017 Alfresco Software. All rights reserved.