Package com.soffid.iam.model
Class UserAccountEntityDaoBase
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate3.support.HibernateDaoSupport
-
- com.soffid.iam.model.UserAccountEntityDaoBase
-
- All Implemented Interfaces:
UserAccountEntityDao
,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
UserAccountEntityDaoImpl
public abstract class UserAccountEntityDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements UserAccountEntityDao
DAO Base for Entity UserAccountEntity
-
-
Constructor Summary
Constructors Constructor Description UserAccountEntityDaoBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
create(UserAccountEntity entity)
Adds an instance ofUserAccountEntity
to the persistent store.void
create(Collection<? extends UserAccountEntity> entities)
Creates a collection ofUserAccountEntity
and adds it to the persistent store.UserAccountEntity
findByAccountSystemAndName(CriteriaSearchConfiguration criteria, String account, String systemName, String user)
CriteriaSearchConfiguration implementationUserAccountEntity
findByAccountSystemAndName(String queryString, CriteriaSearchConfiguration criteria, String account, String systemName, String user)
Internal implementationUserAccountEntity
findByAccountSystemAndName(String account, String systemName, String user)
Operation findByAccountSystemAndNameList<UserAccountEntity>
findByUserAndDispatcher(CriteriaSearchConfiguration criteria, String user, String dispatcher)
CriteriaSearchConfiguration implementationList<UserAccountEntity>
findByUserAndDispatcher(String queryString, CriteriaSearchConfiguration criteria, String user, String dispatcher)
Internal implementationList<UserAccountEntity>
findByUserAndDispatcher(String user, String dispatcher)
Operation findByUserAndDispatcherAccountEntityDao
getAccountEntityDao()
Gets reference toaccountEntityDao
.TaskEntityDao
getTaskEntityDao()
Gets reference totasqueEntityDao
.UserEntityDao
getUserEntityDao()
Gets reference tousuariEntityDao
.protected abstract void
handlePropagateChanges(UserAccountEntity account)
UserAccountEntity
load(Long id)
Loads an instance ofUserAccountEntity
from the persistent store.List<UserAccountEntity>
loadAll()
Loads all instances ofUserAccountEntity
from the persistent store.UserAccountEntity
newUserAccountEntity()
Creates an instance ofUserAccountEntity
.void
propagateChanges(UserAccountEntity account)
Operation propagateChangesList<UserAccountEntity>
query(String queryString, Parameter[] parameters)
Query ofUserAccountEntity
from the persistent store.List<UserAccountEntity>
query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)
Query ofUserAccountEntity
from the persistent store.void
remove(UserAccountEntity entity)
Removes an instance ofUserAccountEntity
from the persistent store.void
remove(Long id)
Removes an instance ofUserAccountEntity
from the persistent store.void
remove(Collection<? extends UserAccountEntity> entities)
Removes a collection ofUserAccountEntity
from the persistent store.void
setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao
.void
setTaskEntityDao(TaskEntityDao tasqueEntityDao)
Sets reference totasqueEntityDao
.void
setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao
.com.soffid.iam.api.UserAccount
toUserAccount(UserAccountEntity entity)
Transforms toUserAccount
objectvoid
toUserAccount(UserAccountEntity source, com.soffid.iam.api.UserAccount target)
Copy data toUserAccount
objectList<com.soffid.iam.api.UserAccount>
toUserAccountList(Collection<UserAccountEntity> instances)
Transforms toUserAccount
listvoid
update(UserAccountEntity entity)
Updates an instance ofUserAccountEntity
at the persistent store.void
update(Collection<? extends UserAccountEntity> entities)
Updates a collection ofUserAccountEntity
in the persistent store.void
userAccountToEntity(com.soffid.iam.api.UserAccount source, UserAccountEntity target, boolean copyIfNull)
Copy data fromUserAccount
objectList<UserAccountEntity>
userAccountToEntityList(Collection<com.soffid.iam.api.UserAccount> instances)
Transforms fromUserAccount
list-
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.UserAccountEntityDao
userAccountToEntity
-
-
-
-
Method Detail
-
setAccountEntityDao
public void setAccountEntityDao(AccountEntityDao accountEntityDao)
Sets reference toaccountEntityDao
.
-
getAccountEntityDao
public AccountEntityDao getAccountEntityDao()
Gets reference toaccountEntityDao
.
-
setTaskEntityDao
public void setTaskEntityDao(TaskEntityDao tasqueEntityDao)
Sets reference totasqueEntityDao
.
-
getTaskEntityDao
public TaskEntityDao getTaskEntityDao()
Gets reference totasqueEntityDao
.
-
setUserEntityDao
public void setUserEntityDao(UserEntityDao usuariEntityDao)
Sets reference tousuariEntityDao
.
-
getUserEntityDao
public UserEntityDao getUserEntityDao()
Gets reference tousuariEntityDao
.
-
findByAccountSystemAndName
public UserAccountEntity findByAccountSystemAndName(String account, String systemName, String user)
Operation findByAccountSystemAndName- Specified by:
findByAccountSystemAndName
in interfaceUserAccountEntityDao
- Parameters:
account
-systemName
-user
-- Returns:
-
findByAccountSystemAndName
public UserAccountEntity findByAccountSystemAndName(CriteriaSearchConfiguration criteria, String account, String systemName, String user)
CriteriaSearchConfiguration implementation- Specified by:
findByAccountSystemAndName
in interfaceUserAccountEntityDao
-
findByAccountSystemAndName
public UserAccountEntity findByAccountSystemAndName(String queryString, CriteriaSearchConfiguration criteria, String account, String systemName, String user)
Internal implementation
-
findByUserAndDispatcher
public List<UserAccountEntity> findByUserAndDispatcher(String user, String dispatcher)
Operation findByUserAndDispatcher- Specified by:
findByUserAndDispatcher
in interfaceUserAccountEntityDao
- Parameters:
user
-dispatcher
-- Returns:
-
findByUserAndDispatcher
public List<UserAccountEntity> findByUserAndDispatcher(CriteriaSearchConfiguration criteria, String user, String dispatcher)
CriteriaSearchConfiguration implementation- Specified by:
findByUserAndDispatcher
in interfaceUserAccountEntityDao
-
findByUserAndDispatcher
public List<UserAccountEntity> findByUserAndDispatcher(String queryString, CriteriaSearchConfiguration criteria, String user, String dispatcher)
Internal implementation
-
propagateChanges
public void propagateChanges(UserAccountEntity account) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:UserAccountEntityDao
Operation propagateChanges- Specified by:
propagateChanges
in interfaceUserAccountEntityDao
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handlePropagateChanges
protected abstract void handlePropagateChanges(UserAccountEntity account) throws Exception
- Throws:
Exception
-
toUserAccount
public void toUserAccount(UserAccountEntity source, com.soffid.iam.api.UserAccount target)
Copy data toUserAccount
object- Specified by:
toUserAccount
in interfaceUserAccountEntityDao
-
toUserAccount
public com.soffid.iam.api.UserAccount toUserAccount(UserAccountEntity entity)
Transforms toUserAccount
object- Specified by:
toUserAccount
in interfaceUserAccountEntityDao
-
toUserAccountList
public List<com.soffid.iam.api.UserAccount> toUserAccountList(Collection<UserAccountEntity> instances)
Transforms toUserAccount
list- Specified by:
toUserAccountList
in interfaceUserAccountEntityDao
-
userAccountToEntity
public void userAccountToEntity(com.soffid.iam.api.UserAccount source, UserAccountEntity target, boolean copyIfNull)
Copy data fromUserAccount
object- Specified by:
userAccountToEntity
in interfaceUserAccountEntityDao
-
userAccountToEntityList
public List<UserAccountEntity> userAccountToEntityList(Collection<com.soffid.iam.api.UserAccount> instances)
Transforms fromUserAccount
list- Specified by:
userAccountToEntityList
in interfaceUserAccountEntityDao
-
newUserAccountEntity
public UserAccountEntity newUserAccountEntity()
Creates an instance ofUserAccountEntity
.- Specified by:
newUserAccountEntity
in interfaceUserAccountEntityDao
-
load
public UserAccountEntity load(Long id)
Loads an instance ofUserAccountEntity
from the persistent store.- Specified by:
load
in interfaceUserAccountEntityDao
-
loadAll
public List<UserAccountEntity> loadAll()
Loads all instances ofUserAccountEntity
from the persistent store.- Specified by:
loadAll
in interfaceUserAccountEntityDao
-
create
public void create(UserAccountEntity entity)
Adds an instance ofUserAccountEntity
to the persistent store.- Specified by:
create
in interfaceUserAccountEntityDao
-
update
public void update(UserAccountEntity entity)
Updates an instance ofUserAccountEntity
at the persistent store.- Specified by:
update
in interfaceUserAccountEntityDao
-
remove
public void remove(UserAccountEntity entity)
Removes an instance ofUserAccountEntity
from the persistent store.- Specified by:
remove
in interfaceUserAccountEntityDao
-
create
public void create(Collection<? extends UserAccountEntity> entities)
Creates a collection ofUserAccountEntity
and adds it to the persistent store.- Specified by:
create
in interfaceUserAccountEntityDao
-
update
public void update(Collection<? extends UserAccountEntity> entities)
Updates a collection ofUserAccountEntity
in the persistent store.- Specified by:
update
in interfaceUserAccountEntityDao
-
remove
public void remove(Collection<? extends UserAccountEntity> entities)
Removes a collection ofUserAccountEntity
from the persistent store.- Specified by:
remove
in interfaceUserAccountEntityDao
-
remove
public void remove(Long id)
Removes an instance ofUserAccountEntity
from the persistent store.- Specified by:
remove
in interfaceUserAccountEntityDao
-
query
public List<UserAccountEntity> query(String queryString, Parameter[] parameters)
Query ofUserAccountEntity
from the persistent store. parameter query HQL Query String parameter parameters HQL Parameters- Specified by:
query
in interfaceUserAccountEntityDao
-
query
public List<UserAccountEntity> query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)
Query ofUserAccountEntity
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 interfaceUserAccountEntityDao
-
-