Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean delete​(long accountId, int code)  
      List<EmailAccount> findByType​(String type, Long tenantId)
      Gets all the accounts of a given type
      void setCacheManager​(EmailCacheManager cacheManager)  
      boolean store​(EmailAccount account)  
      • Methods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO

        bulkUpdate, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, getSessionFactory, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForObject, queryForRowSet, queryForString, setSessionFactory
      • Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO

        bulkUpdate, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForObject, queryForRowSet, queryForString
    • Method Detail

      • delete

        public boolean delete​(long accountId,
                              int code)
        Specified by:
        delete in interface com.logicaldoc.core.PersistentObjectDAO<EmailAccount>
        Overrides:
        delete in class com.logicaldoc.core.HibernatePersistentObjectDAO<EmailAccount>
      • store

        public boolean store​(EmailAccount account)
        Specified by:
        store in interface com.logicaldoc.core.PersistentObjectDAO<EmailAccount>
        Overrides:
        store in class com.logicaldoc.core.HibernatePersistentObjectDAO<EmailAccount>