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 void
create(SecretEntity entity)
Adds an instance ofSecretEntity
to the persistent store.void
create(Collection<? extends SecretEntity> entities)
Creates a collection ofSecretEntity
and 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 implementationSecretEntity
findByUserAndServer(long userId, long serverId)
Operation findByUserAndServerSecretEntity
findByUserAndServer(CriteriaSearchConfiguration criteria, long userId, long serverId)
CriteriaSearchConfiguration implementationSecretEntity
findByUserAndServer(String queryString, CriteriaSearchConfiguration criteria, long userId, long serverId)
Internal implementationServerEntityDao
getServerEntityDao()
Gets reference toserverEntityDao
.UserEntityDao
getUserEntityDao()
Gets reference tousuariEntityDao
.SecretEntity
load(Long id)
Loads an instance ofSecretEntity
from the persistent store.List<SecretEntity>
loadAll()
Loads all instances ofSecretEntity
from the persistent store.SecretEntity
newSecretEntity()
Creates an instance ofSecretEntity
.List<SecretEntity>
query(String queryString, Parameter[] parameters)
Query ofSecretEntity
from the persistent store.List<SecretEntity>
query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)
Query ofSecretEntity
from the persistent store.void
remove(SecretEntity entity)
Removes an instance ofSecretEntity
from the persistent store.void
remove(Long id)
Removes an instance ofSecretEntity
from the persistent store.void
remove(Collection<? extends SecretEntity> entities)
Removes a collection ofSecretEntity
from the persistent store.void
setServerEntityDao(ServerEntityDao serverEntityDao)
Sets reference toserverEntityDao
.void
setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao
.void
update(SecretEntity entity)
Updates an instance ofSecretEntity
at the persistent store.void
update(Collection<? extends SecretEntity> entities)
Updates a collection ofSecretEntity
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
-
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:
findByUserAndServer
in interfaceSecretEntityDao
- Parameters:
userId
-serverId
-- Returns:
-
findByUserAndServer
public SecretEntity findByUserAndServer(CriteriaSearchConfiguration criteria, long userId, long serverId)
CriteriaSearchConfiguration implementation- Specified by:
findByUserAndServer
in 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:
findByServer
in interfaceSecretEntityDao
- Parameters:
server
-- Returns:
-
findByServer
public List<SecretEntity> findByServer(CriteriaSearchConfiguration criteria, ServerEntity server)
CriteriaSearchConfiguration implementation- Specified by:
findByServer
in interfaceSecretEntityDao
-
findByServer
public List<SecretEntity> findByServer(String queryString, CriteriaSearchConfiguration criteria, ServerEntity server)
Internal implementation
-
newSecretEntity
public SecretEntity newSecretEntity()
Creates an instance ofSecretEntity
.- Specified by:
newSecretEntity
in interfaceSecretEntityDao
-
load
public SecretEntity load(Long id)
Loads an instance ofSecretEntity
from the persistent store.- Specified by:
load
in interfaceSecretEntityDao
-
loadAll
public List<SecretEntity> loadAll()
Loads all instances ofSecretEntity
from the persistent store.- Specified by:
loadAll
in interfaceSecretEntityDao
-
create
public void create(SecretEntity entity)
Adds an instance ofSecretEntity
to the persistent store.- Specified by:
create
in interfaceSecretEntityDao
-
update
public void update(SecretEntity entity)
Updates an instance ofSecretEntity
at the persistent store.- Specified by:
update
in interfaceSecretEntityDao
-
remove
public void remove(SecretEntity entity)
Removes an instance ofSecretEntity
from the persistent store.- Specified by:
remove
in interfaceSecretEntityDao
-
create
public void create(Collection<? extends SecretEntity> entities)
Creates a collection ofSecretEntity
and adds it to the persistent store.- Specified by:
create
in interfaceSecretEntityDao
-
update
public void update(Collection<? extends SecretEntity> entities)
Updates a collection ofSecretEntity
in the persistent store.- Specified by:
update
in interfaceSecretEntityDao
-
remove
public void remove(Collection<? extends SecretEntity> entities)
Removes a collection ofSecretEntity
from the persistent store.- Specified by:
remove
in interfaceSecretEntityDao
-
remove
public void remove(Long id)
Removes an instance ofSecretEntity
from the persistent store.- Specified by:
remove
in interfaceSecretEntityDao
-
query
public List<SecretEntity> query(String queryString, Parameter[] parameters)
Query ofSecretEntity
from the persistent store. parameter query HQL Query String parameter parameters HQL Parameters- Specified by:
query
in interfaceSecretEntityDao
-
query
public List<SecretEntity> query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)
Query ofSecretEntity
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 interfaceSecretEntityDao
-
-