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 voidchallengeToEntity(com.soffid.iam.api.Challenge source, ChallengeEntity target, boolean copyIfNull)Copy data fromChallengeobjectList<ChallengeEntity>challengeToEntityList(Collection<com.soffid.iam.api.Challenge> instances)Transforms fromChallengelistvoidcreate(ChallengeEntity entity)Adds an instance ofChallengeEntityto the persistent store.voidcreate(Collection<? extends ChallengeEntity> entities)Creates a collection ofChallengeEntityand adds it to the persistent store.ChallengeEntityfindByChallengeId(CriteriaSearchConfiguration criteria, String challengeId)CriteriaSearchConfiguration implementationChallengeEntityfindByChallengeId(String challengeId)Operation findByChallengeIdChallengeEntityfindByChallengeId(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 findExpiredChallengesAccountEntityDaogetAccountEntityDao()Gets reference toaccountEntityDao.HostEntityDaogetHostEntityDao()Gets reference tomaquinaEntityDao.TenantEntityDaogetTenantEntityDao()Gets reference totenantEntityDao.UserEntityDaogetUserEntityDao()Gets reference tousuariEntityDao.ChallengeEntityload(Long id)Loads an instance ofChallengeEntityfrom the persistent store.List<ChallengeEntity>loadAll()Loads all instances ofChallengeEntityfrom the persistent store.ChallengeEntitynewChallengeEntity()Creates an instance ofChallengeEntity.List<ChallengeEntity>query(String queryString, Parameter[] parameters)Query ofChallengeEntityfrom the persistent store.List<ChallengeEntity>query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)Query ofChallengeEntityfrom the persistent store.voidremove(ChallengeEntity entity)Removes an instance ofChallengeEntityfrom the persistent store.voidremove(Long id)Removes an instance ofChallengeEntityfrom the persistent store.voidremove(Collection<? extends ChallengeEntity> entities)Removes a collection ofChallengeEntityfrom the persistent store.voidsetAccountEntityDao(AccountEntityDao accountEntityDao)Sets reference toaccountEntityDao.voidsetHostEntityDao(HostEntityDao maquinaEntityDao)Sets reference tomaquinaEntityDao.voidsetTenantEntityDao(TenantEntityDao tenantEntityDao)Sets reference totenantEntityDao.voidsetUserEntityDao(UserEntityDao usuariEntityDao)Sets reference tousuariEntityDao.com.soffid.iam.api.ChallengetoChallenge(ChallengeEntity entity)Transforms toChallengeobjectvoidtoChallenge(ChallengeEntity source, com.soffid.iam.api.Challenge target)Copy data toChallengeobjectList<com.soffid.iam.api.Challenge>toChallengeList(Collection<ChallengeEntity> instances)Transforms toChallengelistvoidupdate(ChallengeEntity entity)Updates an instance ofChallengeEntityat the persistent store.voidupdate(Collection<? extends ChallengeEntity> entities)Updates a collection ofChallengeEntityin 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:
findByChallengeIdin interfaceChallengeEntityDao- Parameters:
challengeId-- Returns:
-
findByChallengeId
public ChallengeEntity findByChallengeId(CriteriaSearchConfiguration criteria, String challengeId)
CriteriaSearchConfiguration implementation- Specified by:
findByChallengeIdin interfaceChallengeEntityDao
-
findByChallengeId
public ChallengeEntity findByChallengeId(String queryString, CriteriaSearchConfiguration criteria, String challengeId)
Internal implementation
-
findExpiredChallenges
public Collection<ChallengeEntity> findExpiredChallenges(Date timeStamp)
Operation findExpiredChallenges- Specified by:
findExpiredChallengesin interfaceChallengeEntityDao- Parameters:
timeStamp-- Returns:
-
findExpiredChallenges
public Collection<ChallengeEntity> findExpiredChallenges(CriteriaSearchConfiguration criteria, Date timeStamp)
CriteriaSearchConfiguration implementation- Specified by:
findExpiredChallengesin 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 toChallengeobject- Specified by:
toChallengein interfaceChallengeEntityDao
-
toChallenge
public com.soffid.iam.api.Challenge toChallenge(ChallengeEntity entity)
Transforms toChallengeobject- Specified by:
toChallengein interfaceChallengeEntityDao
-
toChallengeList
public List<com.soffid.iam.api.Challenge> toChallengeList(Collection<ChallengeEntity> instances)
Transforms toChallengelist- Specified by:
toChallengeListin interfaceChallengeEntityDao
-
challengeToEntity
public void challengeToEntity(com.soffid.iam.api.Challenge source, ChallengeEntity target, boolean copyIfNull)Copy data fromChallengeobject- Specified by:
challengeToEntityin interfaceChallengeEntityDao
-
challengeToEntityList
public List<ChallengeEntity> challengeToEntityList(Collection<com.soffid.iam.api.Challenge> instances)
Transforms fromChallengelist- Specified by:
challengeToEntityListin interfaceChallengeEntityDao
-
newChallengeEntity
public ChallengeEntity newChallengeEntity()
Creates an instance ofChallengeEntity.- Specified by:
newChallengeEntityin interfaceChallengeEntityDao
-
load
public ChallengeEntity load(Long id)
Loads an instance ofChallengeEntityfrom the persistent store.- Specified by:
loadin interfaceChallengeEntityDao
-
loadAll
public List<ChallengeEntity> loadAll()
Loads all instances ofChallengeEntityfrom the persistent store.- Specified by:
loadAllin interfaceChallengeEntityDao
-
create
public void create(ChallengeEntity entity)
Adds an instance ofChallengeEntityto the persistent store.- Specified by:
createin interfaceChallengeEntityDao
-
update
public void update(ChallengeEntity entity)
Updates an instance ofChallengeEntityat the persistent store.- Specified by:
updatein interfaceChallengeEntityDao
-
remove
public void remove(ChallengeEntity entity)
Removes an instance ofChallengeEntityfrom the persistent store.- Specified by:
removein interfaceChallengeEntityDao
-
create
public void create(Collection<? extends ChallengeEntity> entities)
Creates a collection ofChallengeEntityand adds it to the persistent store.- Specified by:
createin interfaceChallengeEntityDao
-
update
public void update(Collection<? extends ChallengeEntity> entities)
Updates a collection ofChallengeEntityin the persistent store.- Specified by:
updatein interfaceChallengeEntityDao
-
remove
public void remove(Collection<? extends ChallengeEntity> entities)
Removes a collection ofChallengeEntityfrom the persistent store.- Specified by:
removein interfaceChallengeEntityDao
-
remove
public void remove(Long id)
Removes an instance ofChallengeEntityfrom the persistent store.- Specified by:
removein interfaceChallengeEntityDao
-
query
public List<ChallengeEntity> query(String queryString, Parameter[] parameters)
Query ofChallengeEntityfrom the persistent store. parameter query HQL Query String parameter parameters HQL Parameters- Specified by:
queryin interfaceChallengeEntityDao
-
query
public List<ChallengeEntity> query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)
Query ofChallengeEntityfrom the persistent store. parameter query HQL Query String parameter parameters HQL Parameters parameter maxResults max number of rows to return- Specified by:
queryin interfaceChallengeEntityDao
-
-