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
    setAttributeSetDao(com.logicaldoc.core.metadata.AttributeSetDAO attributeSetDao)
     
    void
    setConfig(com.logicaldoc.util.config.ContextProperties config)
     
    void
    setDashletDao(com.logicaldoc.core.dashlet.DashletDAO dashletDao)
     
    void
    setFolderDao(com.logicaldoc.core.folder.FolderDAO folderDao)
     
    void
    setGenericDao(com.logicaldoc.core.generic.GenericDAO genericDao)
     
    void
    setGroupDao(com.logicaldoc.core.security.user.GroupDAO groupDao)
     
    void
    setMessageTemplateDao(com.logicaldoc.core.communication.MessageTemplateDAO messageTemplateDao)
     
    void
    setTemplateDao(com.logicaldoc.core.metadata.TemplateDAO templateDao)
     
    void
    setUserDao(com.logicaldoc.core.security.user.UserDAO userDao)
     
    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, 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, 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)
      Specified by:
      findByName in interface com.logicaldoc.core.security.TenantDAO
    • count

      public int count()
      Specified by:
      count in interface com.logicaldoc.core.security.TenantDAO
    • setFolderDao

      public void setFolderDao(com.logicaldoc.core.folder.FolderDAO folderDao)
    • 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
    • setGroupDao

      public void setGroupDao(com.logicaldoc.core.security.user.GroupDAO groupDao)
    • setUserDao

      public void setUserDao(com.logicaldoc.core.security.user.UserDAO userDao)
    • setConfig

      public void setConfig(com.logicaldoc.util.config.ContextProperties config)
    • setGenericDao

      public void setGenericDao(com.logicaldoc.core.generic.GenericDAO genericDao)
    • setTemplateDao

      public void setTemplateDao(com.logicaldoc.core.metadata.TemplateDAO templateDao)
    • 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
    • setMessageTemplateDao

      public void setMessageTemplateDao(com.logicaldoc.core.communication.MessageTemplateDAO messageTemplateDao)
    • setAttributeSetDao

      public void setAttributeSetDao(com.logicaldoc.core.metadata.AttributeSetDAO attributeSetDao)
    • getTenantName

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

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