Package com.soffid.iam.model
Class LuceneIndexEntityDaoBase
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate3.support.HibernateDaoSupport
-
- com.soffid.iam.model.LuceneIndexEntityDaoBase
-
- All Implemented Interfaces:
LuceneIndexEntityDao,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
LuceneIndexEntityDaoImpl
public abstract class LuceneIndexEntityDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements LuceneIndexEntityDao
DAO Base for Entity LuceneIndexEntity
-
-
Constructor Summary
Constructors Constructor Description LuceneIndexEntityDaoBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcreate(LuceneIndexEntity entity)Adds an instance ofLuceneIndexEntityto the persistent store.voidcreate(Collection<? extends LuceneIndexEntity> entities)Creates a collection ofLuceneIndexEntityand adds it to the persistent store.LuceneIndexEntityfindByName(CriteriaSearchConfiguration criteria, String name)CriteriaSearchConfiguration implementationLuceneIndexEntityfindByName(String name)Operation findByNameLuceneIndexEntityfindByName(String queryString, CriteriaSearchConfiguration criteria, String name)Internal implementationLuceneIndexPartEntityDaogetLuceneIndexPartEntityDao()Gets reference toluceneIndexPartEntityDao.TenantEntityDaogetTenantEntityDao()Gets reference totenantEntityDao.protected abstract voidhandleLock(LuceneIndexEntity entity)protected abstract voidhandleRefresh(LuceneIndexEntity entity)LuceneIndexEntityload(Long id)Loads an instance ofLuceneIndexEntityfrom the persistent store.List<LuceneIndexEntity>loadAll()Loads all instances ofLuceneIndexEntityfrom the persistent store.voidlock(LuceneIndexEntity entity)Operation lockLuceneIndexEntitynewLuceneIndexEntity()Creates an instance ofLuceneIndexEntity.List<LuceneIndexEntity>query(String queryString, Parameter[] parameters)Query ofLuceneIndexEntityfrom the persistent store.List<LuceneIndexEntity>query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)Query ofLuceneIndexEntityfrom the persistent store.voidrefresh(LuceneIndexEntity entity)Operation refreshvoidremove(LuceneIndexEntity entity)Removes an instance ofLuceneIndexEntityfrom the persistent store.voidremove(Long id)Removes an instance ofLuceneIndexEntityfrom the persistent store.voidremove(Collection<? extends LuceneIndexEntity> entities)Removes a collection ofLuceneIndexEntityfrom the persistent store.voidsetLuceneIndexPartEntityDao(LuceneIndexPartEntityDao luceneIndexPartEntityDao)Sets reference toluceneIndexPartEntityDao.voidsetTenantEntityDao(TenantEntityDao tenantEntityDao)Sets reference totenantEntityDao.voidupdate(LuceneIndexEntity entity)Updates an instance ofLuceneIndexEntityat the persistent store.voidupdate(Collection<? extends LuceneIndexEntity> entities)Updates a collection ofLuceneIndexEntityin the persistent store.-
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
-
-
-
-
Method Detail
-
setLuceneIndexPartEntityDao
public void setLuceneIndexPartEntityDao(LuceneIndexPartEntityDao luceneIndexPartEntityDao)
Sets reference toluceneIndexPartEntityDao.
-
getLuceneIndexPartEntityDao
public LuceneIndexPartEntityDao getLuceneIndexPartEntityDao()
Gets reference toluceneIndexPartEntityDao.
-
setTenantEntityDao
public void setTenantEntityDao(TenantEntityDao tenantEntityDao)
Sets reference totenantEntityDao.
-
getTenantEntityDao
public TenantEntityDao getTenantEntityDao()
Gets reference totenantEntityDao.
-
findByName
public LuceneIndexEntity findByName(String name)
Operation findByName- Specified by:
findByNamein interfaceLuceneIndexEntityDao- Parameters:
name-- Returns:
-
findByName
public LuceneIndexEntity findByName(CriteriaSearchConfiguration criteria, String name)
CriteriaSearchConfiguration implementation- Specified by:
findByNamein interfaceLuceneIndexEntityDao
-
findByName
public LuceneIndexEntity findByName(String queryString, CriteriaSearchConfiguration criteria, String name)
Internal implementation
-
lock
public void lock(LuceneIndexEntity entity) throws es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:LuceneIndexEntityDaoOperation lock- Specified by:
lockin interfaceLuceneIndexEntityDao- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleLock
protected abstract void handleLock(LuceneIndexEntity entity) throws Exception
- Throws:
Exception
-
refresh
public void refresh(LuceneIndexEntity entity) throws es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:LuceneIndexEntityDaoOperation refresh- Specified by:
refreshin interfaceLuceneIndexEntityDao- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleRefresh
protected abstract void handleRefresh(LuceneIndexEntity entity) throws Exception
- Throws:
Exception
-
newLuceneIndexEntity
public LuceneIndexEntity newLuceneIndexEntity()
Creates an instance ofLuceneIndexEntity.- Specified by:
newLuceneIndexEntityin interfaceLuceneIndexEntityDao
-
load
public LuceneIndexEntity load(Long id)
Loads an instance ofLuceneIndexEntityfrom the persistent store.- Specified by:
loadin interfaceLuceneIndexEntityDao
-
loadAll
public List<LuceneIndexEntity> loadAll()
Loads all instances ofLuceneIndexEntityfrom the persistent store.- Specified by:
loadAllin interfaceLuceneIndexEntityDao
-
create
public void create(LuceneIndexEntity entity)
Adds an instance ofLuceneIndexEntityto the persistent store.- Specified by:
createin interfaceLuceneIndexEntityDao
-
update
public void update(LuceneIndexEntity entity)
Updates an instance ofLuceneIndexEntityat the persistent store.- Specified by:
updatein interfaceLuceneIndexEntityDao
-
remove
public void remove(LuceneIndexEntity entity)
Removes an instance ofLuceneIndexEntityfrom the persistent store.- Specified by:
removein interfaceLuceneIndexEntityDao
-
create
public void create(Collection<? extends LuceneIndexEntity> entities)
Creates a collection ofLuceneIndexEntityand adds it to the persistent store.- Specified by:
createin interfaceLuceneIndexEntityDao
-
update
public void update(Collection<? extends LuceneIndexEntity> entities)
Updates a collection ofLuceneIndexEntityin the persistent store.- Specified by:
updatein interfaceLuceneIndexEntityDao
-
remove
public void remove(Collection<? extends LuceneIndexEntity> entities)
Removes a collection ofLuceneIndexEntityfrom the persistent store.- Specified by:
removein interfaceLuceneIndexEntityDao
-
remove
public void remove(Long id)
Removes an instance ofLuceneIndexEntityfrom the persistent store.- Specified by:
removein interfaceLuceneIndexEntityDao
-
query
public List<LuceneIndexEntity> query(String queryString, Parameter[] parameters)
Query ofLuceneIndexEntityfrom the persistent store. parameter query HQL Query String parameter parameters HQL Parameters- Specified by:
queryin interfaceLuceneIndexEntityDao
-
query
public List<LuceneIndexEntity> query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)
Query ofLuceneIndexEntityfrom the persistent store. parameter query HQL Query String parameter parameters HQL Parameters parameter maxResults max number of rows to return- Specified by:
queryin interfaceLuceneIndexEntityDao
-
-