Package com.logicaldoc.core.security
Class HibernateTenantDAO
java.lang.Object
com.logicaldoc.core.HibernatePersistentObjectDAO<com.logicaldoc.core.security.Tenant>
com.logicaldoc.core.security.HibernateTenantDAO
- All Implemented Interfaces:
com.logicaldoc.core.PersistentObjectDAO<com.logicaldoc.core.security.Tenant>
,com.logicaldoc.core.security.TenantDAO
public class HibernateTenantDAO
extends com.logicaldoc.core.HibernatePersistentObjectDAO<com.logicaldoc.core.security.Tenant>
implements com.logicaldoc.core.security.TenantDAO
-
Field Summary
Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO
ENTITY
-
Method Summary
Modifier and TypeMethodDescriptionint
count()
void
delete
(long tenantId, int code) com.logicaldoc.core.security.Tenant
findByName
(String name) getTenantName
(long tenantId) void
setDashletDao
(com.logicaldoc.core.dashlet.DashletDAO dashletDao) void
store
(com.logicaldoc.core.security.Tenant tenant) Methods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO
bulkUpdate, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, getSessionFactory, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, 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, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForRowSet, queryForString
-
Method Details
-
delete
public void delete(long tenantId, int code) throws com.logicaldoc.core.PersistenceException - Specified by:
delete
in interfacecom.logicaldoc.core.PersistentObjectDAO<com.logicaldoc.core.security.Tenant>
- Overrides:
delete
in classcom.logicaldoc.core.HibernatePersistentObjectDAO<com.logicaldoc.core.security.Tenant>
- Throws:
com.logicaldoc.core.PersistenceException
-
findByName
public com.logicaldoc.core.security.Tenant findByName(String name) throws com.logicaldoc.core.PersistenceException - Specified by:
findByName
in interfacecom.logicaldoc.core.security.TenantDAO
- Throws:
com.logicaldoc.core.PersistenceException
-
count
public int count() throws com.logicaldoc.core.PersistenceException- Specified by:
count
in interfacecom.logicaldoc.core.security.TenantDAO
- Throws:
com.logicaldoc.core.PersistenceException
-
store
public void store(com.logicaldoc.core.security.Tenant tenant) throws com.logicaldoc.core.PersistenceException - Specified by:
store
in interfacecom.logicaldoc.core.PersistentObjectDAO<com.logicaldoc.core.security.Tenant>
- Overrides:
store
in classcom.logicaldoc.core.HibernatePersistentObjectDAO<com.logicaldoc.core.security.Tenant>
- Throws:
com.logicaldoc.core.PersistenceException
-
findAllNames
- Specified by:
findAllNames
in interfacecom.logicaldoc.core.security.TenantDAO
- Throws:
com.logicaldoc.core.PersistenceException
-
getTenantName
- Specified by:
getTenantName
in interfacecom.logicaldoc.core.security.TenantDAO
- Throws:
com.logicaldoc.core.PersistenceException
-
setDashletDao
public void setDashletDao(com.logicaldoc.core.dashlet.DashletDAO dashletDao)
-