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
@Repository("emailAccountDAO")
public class HibernateEmailAccountDAO
extends com.logicaldoc.core.HibernatePersistentObjectDAO<EmailAccount>
implements EmailAccountDAO
Hibernate implementation of 
EmailAccount- Since:
- 4.0
- Author:
- Alessandro Gasparini - LogicalDOC
- 
Field SummaryFields inherited from interface com.logicaldoc.core.PersistentObjectDAOENTITY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete(long accountId, int code) findByType(String type, Long tenantId) Gets all the accounts of a given typevoidstore(EmailAccount account) Methods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAObulkUpdate, delete, deleteAll, deleteAll, evict, evict, 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, queryForString, setSessionFactoryMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.logicaldoc.core.PersistentObjectDAObulkUpdate, delete, deleteAll, deleteAll, evict, evict, 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, queryForString
- 
Constructor Details- 
HibernateEmailAccountDAOpublic HibernateEmailAccountDAO()
 
- 
- 
Method Details- 
deletepublic void delete(long accountId, int code) throws com.logicaldoc.core.PersistenceException - Specified by:
- deletein interface- com.logicaldoc.core.PersistentObjectDAO<EmailAccount>
- Overrides:
- deletein class- com.logicaldoc.core.HibernatePersistentObjectDAO<EmailAccount>
- Throws:
- com.logicaldoc.core.PersistenceException
 
- 
store- Specified by:
- storein interface- com.logicaldoc.core.PersistentObjectDAO<EmailAccount>
- Overrides:
- storein class- com.logicaldoc.core.HibernatePersistentObjectDAO<EmailAccount>
- Throws:
- com.logicaldoc.core.PersistenceException
 
- 
findByTypeDescription copied from interface:EmailAccountDAOGets all the accounts of a given type- Specified by:
- findByTypein interface- EmailAccountDAO
- Parameters:
- type- The type
- tenantId- The tenant ID
- Returns:
- The list of the found accounts
 
 
-