Package com.logicaldoc.email.dao
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 ofEmailAccount- Since:
- 4.0
- Author:
- Alessandro Gasparini - LogicalDOC
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(long accountId, int code)List<EmailAccount>findByType(String type, Long tenantId)Gets all the accounts of a given typevoidsetCacheManager(EmailCacheManager cacheManager)voidstore(EmailAccount account)-
Methods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO
bulkUpdate, bulkUpdate, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, getSessionFactory, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForLong, queryForObject, 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, bulkUpdate, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForString
-
-
-
-
Method Detail
-
setCacheManager
public void setCacheManager(EmailCacheManager cacheManager)
-
delete
public void delete(long accountId, int code) throws com.logicaldoc.core.PersistenceException- Specified by:
deletein interfacecom.logicaldoc.core.PersistentObjectDAO<EmailAccount>- Overrides:
deletein classcom.logicaldoc.core.HibernatePersistentObjectDAO<EmailAccount>- Throws:
com.logicaldoc.core.PersistenceException
-
store
public void store(EmailAccount account)
- Specified by:
storein interfacecom.logicaldoc.core.PersistentObjectDAO<EmailAccount>- Overrides:
storein classcom.logicaldoc.core.HibernatePersistentObjectDAO<EmailAccount>
-
findByType
public List<EmailAccount> findByType(String type, Long tenantId)
Description copied from interface:EmailAccountDAOGets all the accounts of a given type- Specified by:
findByTypein interfaceEmailAccountDAO- Parameters:
type- The typetenantId- The tenant ID- Returns:
- The list of the found accounts
-
-