Package com.soffid.iam.model
Class StatsEntityDaoBase
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate3.support.HibernateDaoSupport
-
- com.soffid.iam.model.StatsEntityDaoBase
-
- All Implemented Interfaces:
StatsEntityDao
,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
StatsEntityDaoImpl
public abstract class StatsEntityDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements StatsEntityDao
DAO Base for Entity StatsEntity
-
-
Constructor Summary
Constructors Constructor Description StatsEntityDaoBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
create(StatsEntity entity)
Adds an instance ofStatsEntity
to the persistent store.void
create(Collection<? extends StatsEntity> entities)
Creates a collection ofStatsEntity
and adds it to the persistent store.Collection<StatsEntity>
findByName(CriteriaSearchConfiguration criteria, String name, String since, String until)
CriteriaSearchConfiguration implementationCollection<StatsEntity>
findByName(String queryString, CriteriaSearchConfiguration criteria, String name, String since, String until)
Internal implementationCollection<StatsEntity>
findByName(String name, String since, String until)
Operation findByNameTenantEntityDao
getTenantEntityDao()
Gets reference totenantEntityDao
.protected abstract void
handlePurge(int days)
StatsEntity
load(Long id)
Loads an instance ofStatsEntity
from the persistent store.List<StatsEntity>
loadAll()
Loads all instances ofStatsEntity
from the persistent store.StatsEntity
newStatsEntity()
Creates an instance ofStatsEntity
.void
purge(int days)
Operation purgeList<StatsEntity>
query(String queryString, Parameter[] parameters)
Query ofStatsEntity
from the persistent store.List<StatsEntity>
query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)
Query ofStatsEntity
from the persistent store.void
remove(StatsEntity entity)
Removes an instance ofStatsEntity
from the persistent store.void
remove(Long id)
Removes an instance ofStatsEntity
from the persistent store.void
remove(Collection<? extends StatsEntity> entities)
Removes a collection ofStatsEntity
from the persistent store.void
setTenantEntityDao(TenantEntityDao tenantEntityDao)
Sets reference totenantEntityDao
.void
update(StatsEntity entity)
Updates an instance ofStatsEntity
at the persistent store.void
update(Collection<? extends StatsEntity> entities)
Updates a collection ofStatsEntity
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
-
setTenantEntityDao
public void setTenantEntityDao(TenantEntityDao tenantEntityDao)
Sets reference totenantEntityDao
.
-
getTenantEntityDao
public TenantEntityDao getTenantEntityDao()
Gets reference totenantEntityDao
.
-
findByName
public Collection<StatsEntity> findByName(String name, String since, String until)
Operation findByName- Specified by:
findByName
in interfaceStatsEntityDao
- Parameters:
name
-since
-until
-- Returns:
-
findByName
public Collection<StatsEntity> findByName(CriteriaSearchConfiguration criteria, String name, String since, String until)
CriteriaSearchConfiguration implementation- Specified by:
findByName
in interfaceStatsEntityDao
-
findByName
public Collection<StatsEntity> findByName(String queryString, CriteriaSearchConfiguration criteria, String name, String since, String until)
Internal implementation
-
purge
public void purge(int days) throws es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:StatsEntityDao
Operation purge- Specified by:
purge
in interfaceStatsEntityDao
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
newStatsEntity
public StatsEntity newStatsEntity()
Creates an instance ofStatsEntity
.- Specified by:
newStatsEntity
in interfaceStatsEntityDao
-
load
public StatsEntity load(Long id)
Loads an instance ofStatsEntity
from the persistent store.- Specified by:
load
in interfaceStatsEntityDao
-
loadAll
public List<StatsEntity> loadAll()
Loads all instances ofStatsEntity
from the persistent store.- Specified by:
loadAll
in interfaceStatsEntityDao
-
create
public void create(StatsEntity entity)
Adds an instance ofStatsEntity
to the persistent store.- Specified by:
create
in interfaceStatsEntityDao
-
update
public void update(StatsEntity entity)
Updates an instance ofStatsEntity
at the persistent store.- Specified by:
update
in interfaceStatsEntityDao
-
remove
public void remove(StatsEntity entity)
Removes an instance ofStatsEntity
from the persistent store.- Specified by:
remove
in interfaceStatsEntityDao
-
create
public void create(Collection<? extends StatsEntity> entities)
Creates a collection ofStatsEntity
and adds it to the persistent store.- Specified by:
create
in interfaceStatsEntityDao
-
update
public void update(Collection<? extends StatsEntity> entities)
Updates a collection ofStatsEntity
in the persistent store.- Specified by:
update
in interfaceStatsEntityDao
-
remove
public void remove(Collection<? extends StatsEntity> entities)
Removes a collection ofStatsEntity
from the persistent store.- Specified by:
remove
in interfaceStatsEntityDao
-
remove
public void remove(Long id)
Removes an instance ofStatsEntity
from the persistent store.- Specified by:
remove
in interfaceStatsEntityDao
-
query
public List<StatsEntity> query(String queryString, Parameter[] parameters)
Query ofStatsEntity
from the persistent store. parameter query HQL Query String parameter parameters HQL Parameters- Specified by:
query
in interfaceStatsEntityDao
-
query
public List<StatsEntity> query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)
Query ofStatsEntity
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 interfaceStatsEntityDao
-
-