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 Type
    Method
    Description
    int
     
    void
    delete(long tenantId, int code)
     
     
    com.logicaldoc.core.security.Tenant
     
    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 interface com.logicaldoc.core.PersistentObjectDAO<com.logicaldoc.core.security.Tenant>
      Overrides:
      delete in class com.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 interface com.logicaldoc.core.security.TenantDAO
      Throws:
      com.logicaldoc.core.PersistenceException
    • count

      public int count() throws com.logicaldoc.core.PersistenceException
      Specified by:
      count in interface com.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 interface com.logicaldoc.core.PersistentObjectDAO<com.logicaldoc.core.security.Tenant>
      Overrides:
      store in class com.logicaldoc.core.HibernatePersistentObjectDAO<com.logicaldoc.core.security.Tenant>
      Throws:
      com.logicaldoc.core.PersistenceException
    • findAllNames

      public Set<String> findAllNames() throws com.logicaldoc.core.PersistenceException
      Specified by:
      findAllNames in interface com.logicaldoc.core.security.TenantDAO
      Throws:
      com.logicaldoc.core.PersistenceException
    • getTenantName

      public String getTenantName(long tenantId) throws com.logicaldoc.core.PersistenceException
      Specified by:
      getTenantName in interface com.logicaldoc.core.security.TenantDAO
      Throws:
      com.logicaldoc.core.PersistenceException
    • setDashletDao

      public void setDashletDao(com.logicaldoc.core.dashlet.DashletDAO dashletDao)