|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.alfresco.repo.admin.patch.hibernate.HibernatePatchDaoServiceImpl
public class HibernatePatchDaoServiceImpl
Hibernate-specific implementation for managing patch persistence.
| Field Summary | |
|---|---|
static java.lang.String |
QUERY_GET_ALL_APPLIED_PATCHES
|
static java.lang.String |
QUERY_GET_APPLIED_PATCHES_BY_DATE
|
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
HibernatePatchDaoServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
detach(AppliedPatch appliedPatch)
Detaches the given instance from the persistence engine. |
AppliedPatch |
getAppliedPatch(java.lang.String id)
Retrieve an existing patch |
java.util.List |
getAppliedPatches()
Get a list of all applied patches |
java.util.List |
getAppliedPatches(java.util.Date fromDate,
java.util.Date toDate)
Get a list of all patches applied between the given dates. |
AppliedPatch |
newAppliedPatch(java.lang.String id)
Creates and saves a new instance of the patch. |
void |
setAppliedOnDate(java.lang.String id,
java.util.Date appliedOnDate)
Update the patch applied on date. |
| Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
|---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
|---|
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String QUERY_GET_ALL_APPLIED_PATCHES
public static final java.lang.String QUERY_GET_APPLIED_PATCHES_BY_DATE
| Constructor Detail |
|---|
public HibernatePatchDaoServiceImpl()
| Method Detail |
|---|
public AppliedPatch newAppliedPatch(java.lang.String id)
PatchDaoService
newAppliedPatch in interface PatchDaoServiceid - the unique key
public AppliedPatch getAppliedPatch(java.lang.String id)
PatchDaoService
getAppliedPatch in interface PatchDaoServiceid - the patch unique ID
public void detach(AppliedPatch appliedPatch)
PatchDaoService
detach in interface PatchDaoServiceappliedPatch - the object to detach from persistencepublic java.util.List getAppliedPatches()
PatchDaoService
getAppliedPatches in interface PatchDaoServiceHibernatePatchDaoServiceImpl.QUERY_GET_ALL_APPLIED_PATCHES
public java.util.List getAppliedPatches(java.util.Date fromDate,
java.util.Date toDate)
PatchDaoService
getAppliedPatches in interface PatchDaoServicefromDate - the lower date limit or null to ignoretoDate - the upper date limit or null to ignore
HibernatePatchDaoServiceImpl.QUERY_GET_APPLIED_PATCHES_BY_DATE
public void setAppliedOnDate(java.lang.String id,
java.util.Date appliedOnDate)
PatchDaoService
setAppliedOnDate in interface PatchDaoServiceid - the patch IDappliedOnDate - the date applied
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||