Package com.soffid.iam.model
Class ChallengeEntityDaoBase
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate3.support.HibernateDaoSupport
-
- com.soffid.iam.model.ChallengeEntityDaoBase
-
- All Implemented Interfaces:
ChallengeEntityDao
,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
ChallengeEntityDaoImpl
public abstract class ChallengeEntityDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements ChallengeEntityDao
DAO Base for Entity ChallengeEntity
-
-
Constructor Summary
Constructors Constructor Description ChallengeEntityDaoBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
challengeToEntity(com.soffid.iam.api.Challenge source, ChallengeEntity target, boolean copyIfNull)
Copy data fromChallenge
objectList<ChallengeEntity>
challengeToEntityList(Collection<com.soffid.iam.api.Challenge> instances)
Transforms fromChallenge
listvoid
create(ChallengeEntity entity)
Adds an instance ofChallengeEntity
to the persistent store.void
create(Collection<? extends ChallengeEntity> entities)
Creates a collection ofChallengeEntity
and adds it to the persistent store.ChallengeEntity
findByChallengeId(CriteriaSearchConfiguration criteria, String challengeId)
CriteriaSearchConfiguration implementationChallengeEntity
findByChallengeId(String challengeId)
Operation findByChallengeIdChallengeEntity
findByChallengeId(String queryString, CriteriaSearchConfiguration criteria, String challengeId)
Internal implementationCollection<ChallengeEntity>
findExpiredChallenges(CriteriaSearchConfiguration criteria, Date timeStamp)
CriteriaSearchConfiguration implementationCollection<ChallengeEntity>
findExpiredChallenges(String queryString, CriteriaSearchConfiguration criteria, Date timeStamp)
Internal implementationCollection<ChallengeEntity>
findExpiredChallenges(Date timeStamp)
Operation findExpiredChallengesAccountEntityDao
getAccountEntityDao()
Gets reference toaccountEntityDao
.HostEntityDao
getHostEntityDao()
Gets reference tomaquinaEntityDao
.TenantEntityDao
getTenantEntityDao()
Gets reference totenantEntityDao
.UserEntityDao
getUserEntityDao()
Gets reference tousuariEntityDao
.ChallengeEntity
load(Long id)
Loads an instance ofChallengeEntity
from the persistent store.List<ChallengeEntity>
loadAll()
Loads all instances ofChallengeEntity
from the persistent store.ChallengeEntity
newChallengeEntity()
Creates an instance ofChallengeEntity
.List<ChallengeEntity>
query(String queryString, Parameter[] parameters)
Query ofChallengeEntity
from the persistent store.List<ChallengeEntity>
query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)
Query ofChallengeEntity
from the persistent store.void
remove(ChallengeEntity entity)
Removes an instance ofChallengeEntity
from the persistent store.void
remove(Long id)
Removes an instance ofChallengeEntity
from the persistent store.void
remove(Collection<? extends ChallengeEntity> entities)
Removes a collection ofChallengeEntity
from the persistent store.void
setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao
.void
setHostEntityDao(HostEntityDao maquinaEntityDao)
Sets reference tomaquinaEntityDao
.void
setTenantEntityDao(TenantEntityDao tenantEntityDao)
Sets reference totenantEntityDao
.void
setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao
.com.soffid.iam.api.Challenge
toChallenge(ChallengeEntity entity)
Transforms toChallenge
objectvoid
toChallenge(ChallengeEntity source, com.soffid.iam.api.Challenge target)
Copy data toChallenge
objectList<com.soffid.iam.api.Challenge>
toChallengeList(Collection<ChallengeEntity> instances)
Transforms toChallenge
listvoid
update(ChallengeEntity entity)
Updates an instance ofChallengeEntity
at the persistent store.void
update(Collection<? extends ChallengeEntity> entities)
Updates a collection ofChallengeEntity
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.soffid.iam.model.ChallengeEntityDao
challengeToEntity
-
-
-
-
Method Detail
-
setAccountEntityDao
public void setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao
.
-
getAccountEntityDao
public AccountEntityDao getAccountEntityDao()
Gets reference toaccountEntityDao
.
-
setHostEntityDao
public void setHostEntityDao(HostEntityDao maquinaEntityDao)
Sets reference tomaquinaEntityDao
.
-
getHostEntityDao
public HostEntityDao getHostEntityDao()
Gets reference tomaquinaEntityDao
.
-
setTenantEntityDao
public void setTenantEntityDao(TenantEntityDao tenantEntityDao)
Sets reference totenantEntityDao
.
-
getTenantEntityDao
public TenantEntityDao getTenantEntityDao()
Gets reference totenantEntityDao
.
-
setUserEntityDao
public void setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao
.
-
getUserEntityDao
public UserEntityDao getUserEntityDao()
Gets reference tousuariEntityDao
.
-
findByChallengeId
public ChallengeEntity findByChallengeId(String challengeId)
Operation findByChallengeId- Specified by:
findByChallengeId
in interfaceChallengeEntityDao
- Parameters:
challengeId
-- Returns:
-
findByChallengeId
public ChallengeEntity findByChallengeId(CriteriaSearchConfiguration criteria, String challengeId)
CriteriaSearchConfiguration implementation- Specified by:
findByChallengeId
in interfaceChallengeEntityDao
-
findByChallengeId
public ChallengeEntity findByChallengeId(String queryString, CriteriaSearchConfiguration criteria, String challengeId)
Internal implementation
-
findExpiredChallenges
public Collection<ChallengeEntity> findExpiredChallenges(Date timeStamp)
Operation findExpiredChallenges- Specified by:
findExpiredChallenges
in interfaceChallengeEntityDao
- Parameters:
timeStamp
-- Returns:
-
findExpiredChallenges
public Collection<ChallengeEntity> findExpiredChallenges(CriteriaSearchConfiguration criteria, Date timeStamp)
CriteriaSearchConfiguration implementation- Specified by:
findExpiredChallenges
in interfaceChallengeEntityDao
-
findExpiredChallenges
public Collection<ChallengeEntity> findExpiredChallenges(String queryString, CriteriaSearchConfiguration criteria, Date timeStamp)
Internal implementation
-
toChallenge
public void toChallenge(ChallengeEntity source, com.soffid.iam.api.Challenge target)
Copy data toChallenge
object- Specified by:
toChallenge
in interfaceChallengeEntityDao
-
toChallenge
public com.soffid.iam.api.Challenge toChallenge(ChallengeEntity entity)
Transforms toChallenge
object- Specified by:
toChallenge
in interfaceChallengeEntityDao
-
toChallengeList
public List<com.soffid.iam.api.Challenge> toChallengeList(Collection<ChallengeEntity> instances)
Transforms toChallenge
list- Specified by:
toChallengeList
in interfaceChallengeEntityDao
-
challengeToEntity
public void challengeToEntity(com.soffid.iam.api.Challenge source, ChallengeEntity target, boolean copyIfNull)
Copy data fromChallenge
object- Specified by:
challengeToEntity
in interfaceChallengeEntityDao
-
challengeToEntityList
public List<ChallengeEntity> challengeToEntityList(Collection<com.soffid.iam.api.Challenge> instances)
Transforms fromChallenge
list- Specified by:
challengeToEntityList
in interfaceChallengeEntityDao
-
newChallengeEntity
public ChallengeEntity newChallengeEntity()
Creates an instance ofChallengeEntity
.- Specified by:
newChallengeEntity
in interfaceChallengeEntityDao
-
load
public ChallengeEntity load(Long id)
Loads an instance ofChallengeEntity
from the persistent store.- Specified by:
load
in interfaceChallengeEntityDao
-
loadAll
public List<ChallengeEntity> loadAll()
Loads all instances ofChallengeEntity
from the persistent store.- Specified by:
loadAll
in interfaceChallengeEntityDao
-
create
public void create(ChallengeEntity entity)
Adds an instance ofChallengeEntity
to the persistent store.- Specified by:
create
in interfaceChallengeEntityDao
-
update
public void update(ChallengeEntity entity)
Updates an instance ofChallengeEntity
at the persistent store.- Specified by:
update
in interfaceChallengeEntityDao
-
remove
public void remove(ChallengeEntity entity)
Removes an instance ofChallengeEntity
from the persistent store.- Specified by:
remove
in interfaceChallengeEntityDao
-
create
public void create(Collection<? extends ChallengeEntity> entities)
Creates a collection ofChallengeEntity
and adds it to the persistent store.- Specified by:
create
in interfaceChallengeEntityDao
-
update
public void update(Collection<? extends ChallengeEntity> entities)
Updates a collection ofChallengeEntity
in the persistent store.- Specified by:
update
in interfaceChallengeEntityDao
-
remove
public void remove(Collection<? extends ChallengeEntity> entities)
Removes a collection ofChallengeEntity
from the persistent store.- Specified by:
remove
in interfaceChallengeEntityDao
-
remove
public void remove(Long id)
Removes an instance ofChallengeEntity
from the persistent store.- Specified by:
remove
in interfaceChallengeEntityDao
-
query
public List<ChallengeEntity> query(String queryString, Parameter[] parameters)
Query ofChallengeEntity
from the persistent store. parameter query HQL Query String parameter parameters HQL Parameters- Specified by:
query
in interfaceChallengeEntityDao
-
query
public List<ChallengeEntity> query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)
Query ofChallengeEntity
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 interfaceChallengeEntityDao
-
-