Class HibernateEmailAccountDAO

java.lang.Object
com.logicaldoc.core.HibernatePersistentObjectDAO<EmailAccount>
com.logicaldoc.email.dao.HibernateEmailAccountDAO
All Implemented Interfaces:
com.logicaldoc.core.PersistentObjectDAO<EmailAccount>, EmailAccountDAO

public class HibernateEmailAccountDAO extends com.logicaldoc.core.HibernatePersistentObjectDAO<EmailAccount> implements EmailAccountDAO
Hibernate implementation of EmailAccount
Since:
4.0
Author:
Alessandro Gasparini - LogicalDOC
  • Field Summary Link icon

    Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO Link icon

    ENTITY
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    delete(long accountId, int code)
     
    findByType(String type, Long tenantId)
    Gets all the accounts of a given type
    void
     
    void
     

    Methods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO Link icon

    bulkUpdate, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, getSessionFactory, initialize, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, queryForString, setSessionFactory

    Methods inherited from class java.lang.Object Link icon

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO Link icon

    bulkUpdate, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, initialize, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, queryForString
  • Method Details Link icon

    • setCacheManager Link icon

      public void setCacheManager(EmailCacheManager cacheManager)
    • delete Link icon

      public void delete(long accountId, int code) throws com.logicaldoc.core.PersistenceException
      Specified by:
      delete in interface com.logicaldoc.core.PersistentObjectDAO<EmailAccount>
      Overrides:
      delete in class com.logicaldoc.core.HibernatePersistentObjectDAO<EmailAccount>
      Throws:
      com.logicaldoc.core.PersistenceException
    • store Link icon

      public void store(EmailAccount account)
      Specified by:
      store in interface com.logicaldoc.core.PersistentObjectDAO<EmailAccount>
      Overrides:
      store in class com.logicaldoc.core.HibernatePersistentObjectDAO<EmailAccount>
    • findByType Link icon

      public List<EmailAccount> findByType(String type, Long tenantId)
      Description copied from interface: EmailAccountDAO
      Gets all the accounts of a given type
      Specified by:
      findByType in interface EmailAccountDAO
      Parameters:
      type - The type
      tenantId - The tenant ID
      Returns:
      The list of the found accounts