Package com.logicaldoc.core.security.dao
Class HibernateTenantDAO
- java.lang.Object
-
- com.logicaldoc.core.HibernatePersistentObjectDAO<Tenant>
-
- com.logicaldoc.core.security.dao.HibernateTenantDAO
-
- All Implemented Interfaces:
PersistentObjectDAO<Tenant>
,TenantDAO
public class HibernateTenantDAO extends HibernatePersistentObjectDAO<Tenant> implements TenantDAO
-
-
Field Summary
-
Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO
ENTITY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
count()
Counts the total number of tenantsSet<String>
findAllNames()
Retrieves all the tenant namesTenant
findByName(String name)
Finds a tenant by nameString
getTenantName(long tenantId)
Retrieves the tenant's namevoid
setAttributeSetDao(AttributeSetDAO attributeSetDao)
void
setConf(ContextProperties conf)
void
setDashletDao(DashletDAO dashletDao)
void
setFolderDao(FolderDAO folderDao)
void
setGenericDao(GenericDAO genericDao)
void
setGroupDao(GroupDAO groupDao)
void
setMessageTemplateDao(MessageTemplateDAO messageTemplateDao)
void
setTemplateDao(TemplateDAO templateDao)
void
setUserDao(UserDAO userDao)
void
store(Tenant entity)
This method persists the entity object-
Methods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO
bulkUpdate, bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, getSessionFactory, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForString, setSessionFactory
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO
bulkUpdate, bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForString
-
-
-
-
Method Detail
-
findByName
public Tenant findByName(String name)
Description copied from interface:TenantDAO
Finds a tenant by name- Specified by:
findByName
in interfaceTenantDAO
- Parameters:
name
- name of wanted tenant- Returns:
- Wanted tenant or null
-
count
public int count()
Description copied from interface:TenantDAO
Counts the total number of tenants
-
setFolderDao
public void setFolderDao(FolderDAO folderDao)
-
setGroupDao
public void setGroupDao(GroupDAO groupDao)
-
setUserDao
public void setUserDao(UserDAO userDao)
-
setConf
public void setConf(ContextProperties conf)
-
setGenericDao
public void setGenericDao(GenericDAO genericDao)
-
setTemplateDao
public void setTemplateDao(TemplateDAO templateDao)
-
setDashletDao
public void setDashletDao(DashletDAO dashletDao)
-
findAllNames
public Set<String> findAllNames()
Description copied from interface:TenantDAO
Retrieves all the tenant names- Specified by:
findAllNames
in interfaceTenantDAO
- Returns:
- the collection of all the tenant names
-
setMessageTemplateDao
public void setMessageTemplateDao(MessageTemplateDAO messageTemplateDao)
-
store
public void store(Tenant entity)
Description copied from interface:PersistentObjectDAO
This method persists the entity object- Specified by:
store
in interfacePersistentObjectDAO<Tenant>
- Overrides:
store
in classHibernatePersistentObjectDAO<Tenant>
- Parameters:
entity
- entity to be stored
-
setAttributeSetDao
public void setAttributeSetDao(AttributeSetDAO attributeSetDao)
-
getTenantName
public String getTenantName(long tenantId)
Description copied from interface:TenantDAO
Retrieves the tenant's name- Specified by:
getTenantName
in interfaceTenantDAO
- Parameters:
tenantId
- identifier of the tenant- Returns:
- name of the tenant
-
-