Package com.logicaldoc.core.contact
Class HibernateContactDAO
- java.lang.Object
-
- com.logicaldoc.core.HibernatePersistentObjectDAO<Contact>
-
- com.logicaldoc.core.contact.HibernateContactDAO
-
- All Implemented Interfaces:
ContactDAO
,PersistentObjectDAO<Contact>
public class HibernateContactDAO extends HibernatePersistentObjectDAO<Contact> implements ContactDAO
Hibernate implementation ofContactDAO
- Since:
- 4.0
- Author:
- Marco Meschieri - LogicalDOC
-
-
Field Summary
-
Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO
ENTITY
-
-
Constructor Summary
Constructors Constructor Description HibernateContactDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Contact>
findByUser(Long userId, String email)
Finds the contacts of the specified user.-
Methods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO
bulkUpdate, bulkUpdate, delete, 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, store
-
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, 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, store
-
-
-
-
Method Detail
-
findByUser
public List<Contact> findByUser(Long userId, String email)
Description copied from interface:ContactDAO
Finds the contacts of the specified user.- Specified by:
findByUser
in interfaceContactDAO
- Parameters:
userId
- The ID of the user or nullemail
- Optional email specification,- Returns:
- The collection of found Contacts
-
-