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 void
create(TenantEntity entity)
Adds an instance ofTenantEntity
to the persistent store.void
create(Collection<? extends TenantEntity> entities)
Creates a collection ofTenantEntity
and adds it to the persistent store.List<TenantEntity>
findByCriteria(com.soffid.iam.api.TenantCriteria criteria)
Operation findByCriteriaTenantEntity
findByName(CriteriaSearchConfiguration criteria, String name)
CriteriaSearchConfiguration implementationTenantEntity
findByName(String name)
Operation findByNameTenantEntity
findByName(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 implementationTenantDisabledPermissionEntityDao
getTenantDisabledPermissionEntityDao()
Gets reference totenantDisabledPermissionEntityDao
.TenantServerEntityDao
getTenantServerEntityDao()
Gets reference totenantServerEntityDao
.TenantEntity
load(Long id)
Loads an instance ofTenantEntity
from the persistent store.List<TenantEntity>
loadAll()
Loads all instances ofTenantEntity
from the persistent store.TenantEntity
newTenantEntity()
Creates an instance ofTenantEntity
.List<TenantEntity>
query(String queryString, Parameter[] parameters)
Query ofTenantEntity
from the persistent store.List<TenantEntity>
query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)
Query ofTenantEntity
from the persistent store.void
remove(TenantEntity entity)
Removes an instance ofTenantEntity
from the persistent store.void
remove(Long id)
Removes an instance ofTenantEntity
from the persistent store.void
remove(Collection<? extends TenantEntity> entities)
Removes a collection ofTenantEntity
from the persistent store.void
setTenantDisabledPermissionEntityDao(TenantDisabledPermissionEntityDao tenantDisabledPermissionEntityDao)
Sets reference totenantDisabledPermissionEntityDao
.void
setTenantServerEntityDao(TenantServerEntityDao tenantServerEntityDao)
Sets reference totenantServerEntityDao
.TenantEntity
tenantToEntity(com.soffid.iam.api.Tenant instance)
Transforms fromTenant
objectvoid
tenantToEntity(com.soffid.iam.api.Tenant source, TenantEntity target, boolean copyIfNull)
Copy data fromTenant
objectList<TenantEntity>
tenantToEntityList(Collection<com.soffid.iam.api.Tenant> instances)
Transforms fromTenant
listcom.soffid.iam.api.Tenant
toTenant(TenantEntity entity)
Transforms toTenant
objectvoid
toTenant(TenantEntity source, com.soffid.iam.api.Tenant target)
Copy data toTenant
objectList<com.soffid.iam.api.Tenant>
toTenantList(Collection<TenantEntity> instances)
Transforms toTenant
listvoid
update(TenantEntity entity)
Updates an instance ofTenantEntity
at the persistent store.void
update(Collection<? extends TenantEntity> entities)
Updates a collection ofTenantEntity
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
-
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:
findByName
in interfaceTenantEntityDao
- Parameters:
name
-- Returns:
-
findByName
public TenantEntity findByName(CriteriaSearchConfiguration criteria, String name)
CriteriaSearchConfiguration implementation- Specified by:
findByName
in 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:
findByCriteria
in interfaceTenantEntityDao
- Parameters:
criteria
-- Returns:
-
findByServer
public List<TenantEntity> findByServer(String server)
Operation findByServer- Specified by:
findByServer
in interfaceTenantEntityDao
- Parameters:
server
-- Returns:
-
findByServer
public List<TenantEntity> findByServer(CriteriaSearchConfiguration criteria, String server)
CriteriaSearchConfiguration implementation- Specified by:
findByServer
in 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 toTenant
object- Specified by:
toTenant
in interfaceTenantEntityDao
-
toTenant
public com.soffid.iam.api.Tenant toTenant(TenantEntity entity)
Transforms toTenant
object- Specified by:
toTenant
in interfaceTenantEntityDao
-
toTenantList
public List<com.soffid.iam.api.Tenant> toTenantList(Collection<TenantEntity> instances)
Transforms toTenant
list- Specified by:
toTenantList
in interfaceTenantEntityDao
-
tenantToEntity
public void tenantToEntity(com.soffid.iam.api.Tenant source, TenantEntity target, boolean copyIfNull)
Copy data fromTenant
object- Specified by:
tenantToEntity
in interfaceTenantEntityDao
-
tenantToEntity
public TenantEntity tenantToEntity(com.soffid.iam.api.Tenant instance)
Transforms fromTenant
object- Specified by:
tenantToEntity
in interfaceTenantEntityDao
-
tenantToEntityList
public List<TenantEntity> tenantToEntityList(Collection<com.soffid.iam.api.Tenant> instances)
Transforms fromTenant
list- Specified by:
tenantToEntityList
in interfaceTenantEntityDao
-
newTenantEntity
public TenantEntity newTenantEntity()
Creates an instance ofTenantEntity
.- Specified by:
newTenantEntity
in interfaceTenantEntityDao
-
load
public TenantEntity load(Long id)
Loads an instance ofTenantEntity
from the persistent store.- Specified by:
load
in interfaceTenantEntityDao
-
loadAll
public List<TenantEntity> loadAll()
Loads all instances ofTenantEntity
from the persistent store.- Specified by:
loadAll
in interfaceTenantEntityDao
-
create
public void create(TenantEntity entity)
Adds an instance ofTenantEntity
to the persistent store.- Specified by:
create
in interfaceTenantEntityDao
-
update
public void update(TenantEntity entity)
Updates an instance ofTenantEntity
at the persistent store.- Specified by:
update
in interfaceTenantEntityDao
-
remove
public void remove(TenantEntity entity)
Removes an instance ofTenantEntity
from the persistent store.- Specified by:
remove
in interfaceTenantEntityDao
-
create
public void create(Collection<? extends TenantEntity> entities)
Creates a collection ofTenantEntity
and adds it to the persistent store.- Specified by:
create
in interfaceTenantEntityDao
-
update
public void update(Collection<? extends TenantEntity> entities)
Updates a collection ofTenantEntity
in the persistent store.- Specified by:
update
in interfaceTenantEntityDao
-
remove
public void remove(Collection<? extends TenantEntity> entities)
Removes a collection ofTenantEntity
from the persistent store.- Specified by:
remove
in interfaceTenantEntityDao
-
remove
public void remove(Long id)
Removes an instance ofTenantEntity
from the persistent store.- Specified by:
remove
in interfaceTenantEntityDao
-
query
public List<TenantEntity> query(String queryString, Parameter[] parameters)
Query ofTenantEntity
from the persistent store. parameter query HQL Query String parameter parameters HQL Parameters- Specified by:
query
in interfaceTenantEntityDao
-
query
public List<TenantEntity> query(String queryString, Parameter[] parameters, CriteriaSearchConfiguration criteria)
Query ofTenantEntity
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 interfaceTenantEntityDao
-
-