Package com.soffid.iam.model
Class SecretEntityDaoBase
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate3.support.HibernateDaoSupport
-
- com.soffid.iam.model.SecretEntityDaoBase
-
- All Implemented Interfaces:
SecretEntityDao,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
SecretEntityDaoImpl
public abstract class SecretEntityDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements SecretEntityDao
DAO Base for Entity SecretEntity
-
-
Constructor Summary
Constructors Constructor Description SecretEntityDaoBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreate(SecretEntity entity)Adds an instance ofSecretEntityto the persistent store.voidcreate(Collection<? extends SecretEntity> entities)Creates a collection ofSecretEntityand adds it to the persistent store.List<SecretEntity>findByServer(CriteriaSearchConfiguration criteria, ServerEntity server)CriteriaSearchConfiguration implementationList<SecretEntity>findByServer(ServerEntity server)Operation findByServerList<SecretEntity>findByServer(String queryString, CriteriaSearchConfiguration criteria, ServerEntity server)Internal implementationSecretEntityfindByUserAndServer(long userId, long serverId)Operation findByUserAndServerSecretEntityfindByUserAndServer(CriteriaSearchConfiguration criteria, long userId, long serverId)CriteriaSearchConfiguration implementationSecretEntityfindByUserAndServer(String queryString, CriteriaSearchConfiguration criteria, long userId, long serverId)Internal implementationServerEntityDaogetServerEntityDao()Gets reference toserverEntityDao.UserEntityDaogetUserEntityDao()Gets reference tousuariEntityDao.SecretEntityload(Long id)Loads an instance ofSecretEntityfrom the persistent store.List<SecretEntity>loadAll()Loads all instances ofSecretEntityfrom the persistent store.SecretEntitynewSecretEntity()Creates an instance ofSecretEntity.List<SecretEntity>query(String queryString, Parameter[] parameters)Query ofSecretEntityfrom the persistent store.List<SecretEntity>query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)Query ofSecretEntityfrom the persistent store.voidremove(SecretEntity entity)Removes an instance ofSecretEntityfrom the persistent store.voidremove(Long id)Removes an instance ofSecretEntityfrom the persistent store.voidremove(Collection<? extends SecretEntity> entities)Removes a collection ofSecretEntityfrom the persistent store.voidsetServerEntityDao(ServerEntityDao serverEntityDao)Sets reference toserverEntityDao.voidsetUserEntityDao(UserEntityDao usuariEntityDao)Sets reference tousuariEntityDao.voidupdate(SecretEntity entity)Updates an instance ofSecretEntityat the persistent store.voidupdate(Collection<? extends SecretEntity> entities)Updates a collection ofSecretEntityin 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
-
setServerEntityDao
public void setServerEntityDao(ServerEntityDao serverEntityDao)
Sets reference toserverEntityDao.
-
getServerEntityDao
public ServerEntityDao getServerEntityDao()
Gets reference toserverEntityDao.
-
setUserEntityDao
public void setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao.
-
getUserEntityDao
public UserEntityDao getUserEntityDao()
Gets reference tousuariEntityDao.
-
findByUserAndServer
public SecretEntity findByUserAndServer(long userId, long serverId)
Operation findByUserAndServer- Specified by:
findByUserAndServerin interfaceSecretEntityDao- Parameters:
userId-serverId-- Returns:
-
findByUserAndServer
public SecretEntity findByUserAndServer(CriteriaSearchConfiguration criteria, long userId, long serverId)
CriteriaSearchConfiguration implementation- Specified by:
findByUserAndServerin interfaceSecretEntityDao
-
findByUserAndServer
public SecretEntity findByUserAndServer(String queryString, CriteriaSearchConfiguration criteria, long userId, long serverId)
Internal implementation
-
findByServer
public List<SecretEntity> findByServer(ServerEntity server)
Operation findByServer- Specified by:
findByServerin interfaceSecretEntityDao- Parameters:
server-- Returns:
-
findByServer
public List<SecretEntity> findByServer(CriteriaSearchConfiguration criteria, ServerEntity server)
CriteriaSearchConfiguration implementation- Specified by:
findByServerin interfaceSecretEntityDao
-
findByServer
public List<SecretEntity> findByServer(String queryString, CriteriaSearchConfiguration criteria, ServerEntity server)
Internal implementation
-
newSecretEntity
public SecretEntity newSecretEntity()
Creates an instance ofSecretEntity.- Specified by:
newSecretEntityin interfaceSecretEntityDao
-
load
public SecretEntity load(Long id)
Loads an instance ofSecretEntityfrom the persistent store.- Specified by:
loadin interfaceSecretEntityDao
-
loadAll
public List<SecretEntity> loadAll()
Loads all instances ofSecretEntityfrom the persistent store.- Specified by:
loadAllin interfaceSecretEntityDao
-
create
public void create(SecretEntity entity)
Adds an instance ofSecretEntityto the persistent store.- Specified by:
createin interfaceSecretEntityDao
-
update
public void update(SecretEntity entity)
Updates an instance ofSecretEntityat the persistent store.- Specified by:
updatein interfaceSecretEntityDao
-
remove
public void remove(SecretEntity entity)
Removes an instance ofSecretEntityfrom the persistent store.- Specified by:
removein interfaceSecretEntityDao
-
create
public void create(Collection<? extends SecretEntity> entities)
Creates a collection ofSecretEntityand adds it to the persistent store.- Specified by:
createin interfaceSecretEntityDao
-
update
public void update(Collection<? extends SecretEntity> entities)
Updates a collection ofSecretEntityin the persistent store.- Specified by:
updatein interfaceSecretEntityDao
-
remove
public void remove(Collection<? extends SecretEntity> entities)
Removes a collection ofSecretEntityfrom the persistent store.- Specified by:
removein interfaceSecretEntityDao
-
remove
public void remove(Long id)
Removes an instance ofSecretEntityfrom the persistent store.- Specified by:
removein interfaceSecretEntityDao
-
query
public List<SecretEntity> query(String queryString, Parameter[] parameters)
Query ofSecretEntityfrom the persistent store. parameter query HQL Query String parameter parameters HQL Parameters- Specified by:
queryin interfaceSecretEntityDao
-
query
public List<SecretEntity> query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)
Query ofSecretEntityfrom the persistent store. parameter query HQL Query String parameter parameters HQL Parameters parameter maxResults max number of rows to return- Specified by:
queryin interfaceSecretEntityDao
-
-