Package com.soffid.iam.model
Class TenantEntityDaoBase
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate3.support.HibernateDaoSupport
-
- com.soffid.iam.model.TenantEntityDaoBase
-
- All Implemented Interfaces:
TenantEntityDao,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
TenantEntityDaoImpl
public abstract class TenantEntityDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements TenantEntityDao
DAO Base for Entity TenantEntity
-
-
Constructor Summary
Constructors Constructor Description TenantEntityDaoBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreate(TenantEntity entity)Adds an instance ofTenantEntityto the persistent store.voidcreate(Collection<? extends TenantEntity> entities)Creates a collection ofTenantEntityand adds it to the persistent store.List<TenantEntity>findByCriteria(com.soffid.iam.api.TenantCriteria criteria)Operation findByCriteriaTenantEntityfindByName(CriteriaSearchConfiguration criteria, String name)CriteriaSearchConfiguration implementationTenantEntityfindByName(String name)Operation findByNameTenantEntityfindByName(String queryString, CriteriaSearchConfiguration criteria, String name)Internal implementationList<TenantEntity>findByServer(CriteriaSearchConfiguration criteria, String server)CriteriaSearchConfiguration implementationList<TenantEntity>findByServer(String server)Operation findByServerList<TenantEntity>findByServer(String queryString, CriteriaSearchConfiguration criteria, String server)Internal implementationTenantDisabledPermissionEntityDaogetTenantDisabledPermissionEntityDao()Gets reference totenantDisabledPermissionEntityDao.TenantServerEntityDaogetTenantServerEntityDao()Gets reference totenantServerEntityDao.TenantEntityload(Long id)Loads an instance ofTenantEntityfrom the persistent store.List<TenantEntity>loadAll()Loads all instances ofTenantEntityfrom the persistent store.TenantEntitynewTenantEntity()Creates an instance ofTenantEntity.List<TenantEntity>query(String queryString, Parameter[] parameters)Query ofTenantEntityfrom the persistent store.List<TenantEntity>query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)Query ofTenantEntityfrom the persistent store.voidremove(TenantEntity entity)Removes an instance ofTenantEntityfrom the persistent store.voidremove(Long id)Removes an instance ofTenantEntityfrom the persistent store.voidremove(Collection<? extends TenantEntity> entities)Removes a collection ofTenantEntityfrom the persistent store.voidsetTenantDisabledPermissionEntityDao(TenantDisabledPermissionEntityDao tenantDisabledPermissionEntityDao)Sets reference totenantDisabledPermissionEntityDao.voidsetTenantServerEntityDao(TenantServerEntityDao tenantServerEntityDao)Sets reference totenantServerEntityDao.TenantEntitytenantToEntity(com.soffid.iam.api.Tenant instance)Transforms fromTenantobjectvoidtenantToEntity(com.soffid.iam.api.Tenant source, TenantEntity target, boolean copyIfNull)Copy data fromTenantobjectList<TenantEntity>tenantToEntityList(Collection<com.soffid.iam.api.Tenant> instances)Transforms fromTenantlistcom.soffid.iam.api.TenanttoTenant(TenantEntity entity)Transforms toTenantobjectvoidtoTenant(TenantEntity source, com.soffid.iam.api.Tenant target)Copy data toTenantobjectList<com.soffid.iam.api.Tenant>toTenantList(Collection<TenantEntity> instances)Transforms toTenantlistvoidupdate(TenantEntity entity)Updates an instance ofTenantEntityat the persistent store.voidupdate(Collection<? extends TenantEntity> entities)Updates a collection ofTenantEntityin 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
-
setTenantDisabledPermissionEntityDao
public void setTenantDisabledPermissionEntityDao(TenantDisabledPermissionEntityDao tenantDisabledPermissionEntityDao)
Sets reference totenantDisabledPermissionEntityDao.
-
getTenantDisabledPermissionEntityDao
public TenantDisabledPermissionEntityDao getTenantDisabledPermissionEntityDao()
Gets reference totenantDisabledPermissionEntityDao.
-
setTenantServerEntityDao
public void setTenantServerEntityDao(TenantServerEntityDao tenantServerEntityDao)
Sets reference totenantServerEntityDao.
-
getTenantServerEntityDao
public TenantServerEntityDao getTenantServerEntityDao()
Gets reference totenantServerEntityDao.
-
findByName
public TenantEntity findByName(String name)
Operation findByName- Specified by:
findByNamein interfaceTenantEntityDao- Parameters:
name-- Returns:
-
findByName
public TenantEntity findByName(CriteriaSearchConfiguration criteria, String name)
CriteriaSearchConfiguration implementation- Specified by:
findByNamein interfaceTenantEntityDao
-
findByName
public TenantEntity findByName(String queryString, CriteriaSearchConfiguration criteria, String name)
Internal implementation
-
findByCriteria
public List<TenantEntity> findByCriteria(com.soffid.iam.api.TenantCriteria criteria)
Operation findByCriteria- Specified by:
findByCriteriain interfaceTenantEntityDao- Parameters:
criteria-- Returns:
-
findByServer
public List<TenantEntity> findByServer(String server)
Operation findByServer- Specified by:
findByServerin interfaceTenantEntityDao- Parameters:
server-- Returns:
-
findByServer
public List<TenantEntity> findByServer(CriteriaSearchConfiguration criteria, String server)
CriteriaSearchConfiguration implementation- Specified by:
findByServerin interfaceTenantEntityDao
-
findByServer
public List<TenantEntity> findByServer(String queryString, CriteriaSearchConfiguration criteria, String server)
Internal implementation
-
toTenant
public void toTenant(TenantEntity source, com.soffid.iam.api.Tenant target)
Copy data toTenantobject- Specified by:
toTenantin interfaceTenantEntityDao
-
toTenant
public com.soffid.iam.api.Tenant toTenant(TenantEntity entity)
Transforms toTenantobject- Specified by:
toTenantin interfaceTenantEntityDao
-
toTenantList
public List<com.soffid.iam.api.Tenant> toTenantList(Collection<TenantEntity> instances)
Transforms toTenantlist- Specified by:
toTenantListin interfaceTenantEntityDao
-
tenantToEntity
public void tenantToEntity(com.soffid.iam.api.Tenant source, TenantEntity target, boolean copyIfNull)Copy data fromTenantobject- Specified by:
tenantToEntityin interfaceTenantEntityDao
-
tenantToEntity
public TenantEntity tenantToEntity(com.soffid.iam.api.Tenant instance)
Transforms fromTenantobject- Specified by:
tenantToEntityin interfaceTenantEntityDao
-
tenantToEntityList
public List<TenantEntity> tenantToEntityList(Collection<com.soffid.iam.api.Tenant> instances)
Transforms fromTenantlist- Specified by:
tenantToEntityListin interfaceTenantEntityDao
-
newTenantEntity
public TenantEntity newTenantEntity()
Creates an instance ofTenantEntity.- Specified by:
newTenantEntityin interfaceTenantEntityDao
-
load
public TenantEntity load(Long id)
Loads an instance ofTenantEntityfrom the persistent store.- Specified by:
loadin interfaceTenantEntityDao
-
loadAll
public List<TenantEntity> loadAll()
Loads all instances ofTenantEntityfrom the persistent store.- Specified by:
loadAllin interfaceTenantEntityDao
-
create
public void create(TenantEntity entity)
Adds an instance ofTenantEntityto the persistent store.- Specified by:
createin interfaceTenantEntityDao
-
update
public void update(TenantEntity entity)
Updates an instance ofTenantEntityat the persistent store.- Specified by:
updatein interfaceTenantEntityDao
-
remove
public void remove(TenantEntity entity)
Removes an instance ofTenantEntityfrom the persistent store.- Specified by:
removein interfaceTenantEntityDao
-
create
public void create(Collection<? extends TenantEntity> entities)
Creates a collection ofTenantEntityand adds it to the persistent store.- Specified by:
createin interfaceTenantEntityDao
-
update
public void update(Collection<? extends TenantEntity> entities)
Updates a collection ofTenantEntityin the persistent store.- Specified by:
updatein interfaceTenantEntityDao
-
remove
public void remove(Collection<? extends TenantEntity> entities)
Removes a collection ofTenantEntityfrom the persistent store.- Specified by:
removein interfaceTenantEntityDao
-
remove
public void remove(Long id)
Removes an instance ofTenantEntityfrom the persistent store.- Specified by:
removein interfaceTenantEntityDao
-
query
public List<TenantEntity> query(String queryString, Parameter[] parameters)
Query ofTenantEntityfrom the persistent store. parameter query HQL Query String parameter parameters HQL Parameters- Specified by:
queryin interfaceTenantEntityDao
-
query
public List<TenantEntity> query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)
Query ofTenantEntityfrom the persistent store. parameter query HQL Query String parameter parameters HQL Parameters parameter maxResults max number of rows to return- Specified by:
queryin interfaceTenantEntityDao
-
-