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 void
create(LuceneIndexEntity entity)
Adds an instance ofLuceneIndexEntity
to the persistent store.void
create(Collection<? extends LuceneIndexEntity> entities)
Creates a collection ofLuceneIndexEntity
and adds it to the persistent store.LuceneIndexEntity
findByName(CriteriaSearchConfiguration criteria, String name)
CriteriaSearchConfiguration implementationLuceneIndexEntity
findByName(String name)
Operation findByNameLuceneIndexEntity
findByName(String queryString, CriteriaSearchConfiguration criteria, String name)
Internal implementationLuceneIndexPartEntityDao
getLuceneIndexPartEntityDao()
Gets reference toluceneIndexPartEntityDao
.TenantEntityDao
getTenantEntityDao()
Gets reference totenantEntityDao
.protected abstract void
handleLock(LuceneIndexEntity entity)
protected abstract void
handleRefresh(LuceneIndexEntity entity)
LuceneIndexEntity
load(Long id)
Loads an instance ofLuceneIndexEntity
from the persistent store.List<LuceneIndexEntity>
loadAll()
Loads all instances ofLuceneIndexEntity
from the persistent store.void
lock(LuceneIndexEntity entity)
Operation lockLuceneIndexEntity
newLuceneIndexEntity()
Creates an instance ofLuceneIndexEntity
.List<LuceneIndexEntity>
query(String queryString, Parameter[] parameters)
Query ofLuceneIndexEntity
from the persistent store.List<LuceneIndexEntity>
query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)
Query ofLuceneIndexEntity
from the persistent store.void
refresh(LuceneIndexEntity entity)
Operation refreshvoid
remove(LuceneIndexEntity entity)
Removes an instance ofLuceneIndexEntity
from the persistent store.void
remove(Long id)
Removes an instance ofLuceneIndexEntity
from the persistent store.void
remove(Collection<? extends LuceneIndexEntity> entities)
Removes a collection ofLuceneIndexEntity
from the persistent store.void
setLuceneIndexPartEntityDao(LuceneIndexPartEntityDao luceneIndexPartEntityDao)
Sets reference toluceneIndexPartEntityDao
.void
setTenantEntityDao(TenantEntityDao tenantEntityDao)
Sets reference totenantEntityDao
.void
update(LuceneIndexEntity entity)
Updates an instance ofLuceneIndexEntity
at the persistent store.void
update(Collection<? extends LuceneIndexEntity> entities)
Updates a collection ofLuceneIndexEntity
in 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:
findByName
in interfaceLuceneIndexEntityDao
- Parameters:
name
-- Returns:
-
findByName
public LuceneIndexEntity findByName(CriteriaSearchConfiguration criteria, String name)
CriteriaSearchConfiguration implementation- Specified by:
findByName
in 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:LuceneIndexEntityDao
Operation lock- Specified by:
lock
in 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:LuceneIndexEntityDao
Operation refresh- Specified by:
refresh
in 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:
newLuceneIndexEntity
in interfaceLuceneIndexEntityDao
-
load
public LuceneIndexEntity load(Long id)
Loads an instance ofLuceneIndexEntity
from the persistent store.- Specified by:
load
in interfaceLuceneIndexEntityDao
-
loadAll
public List<LuceneIndexEntity> loadAll()
Loads all instances ofLuceneIndexEntity
from the persistent store.- Specified by:
loadAll
in interfaceLuceneIndexEntityDao
-
create
public void create(LuceneIndexEntity entity)
Adds an instance ofLuceneIndexEntity
to the persistent store.- Specified by:
create
in interfaceLuceneIndexEntityDao
-
update
public void update(LuceneIndexEntity entity)
Updates an instance ofLuceneIndexEntity
at the persistent store.- Specified by:
update
in interfaceLuceneIndexEntityDao
-
remove
public void remove(LuceneIndexEntity entity)
Removes an instance ofLuceneIndexEntity
from the persistent store.- Specified by:
remove
in interfaceLuceneIndexEntityDao
-
create
public void create(Collection<? extends LuceneIndexEntity> entities)
Creates a collection ofLuceneIndexEntity
and adds it to the persistent store.- Specified by:
create
in interfaceLuceneIndexEntityDao
-
update
public void update(Collection<? extends LuceneIndexEntity> entities)
Updates a collection ofLuceneIndexEntity
in the persistent store.- Specified by:
update
in interfaceLuceneIndexEntityDao
-
remove
public void remove(Collection<? extends LuceneIndexEntity> entities)
Removes a collection ofLuceneIndexEntity
from the persistent store.- Specified by:
remove
in interfaceLuceneIndexEntityDao
-
remove
public void remove(Long id)
Removes an instance ofLuceneIndexEntity
from the persistent store.- Specified by:
remove
in interfaceLuceneIndexEntityDao
-
query
public List<LuceneIndexEntity> query(String queryString, Parameter[] parameters)
Query ofLuceneIndexEntity
from the persistent store. parameter query HQL Query String parameter parameters HQL Parameters- Specified by:
query
in interfaceLuceneIndexEntityDao
-
query
public List<LuceneIndexEntity> query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)
Query ofLuceneIndexEntity
from the persistent store. parameter query HQL Query String parameter parameters HQL Parameters parameter maxResults max number of rows to return- Specified by:
query
in interfaceLuceneIndexEntityDao
-
-