Interface ContactDAO

All Superinterfaces:
PersistentObjectDAO<Contact>
All Known Implementing Classes:
HibernateContactDAO

public interface ContactDAO extends PersistentObjectDAO<Contact>
Instances of this class is a DAO-service for Contact business entities.
Since:
6.8
Author:
Marco Meschieri - LogicalDOC
  • Method Details

    • get

      static ContactDAO get()
      Gets the object available in the application context
      Returns:
      the instance of this object in the application context
    • findByUser

      List<Contact> findByUser(Long userId, String email) throws PersistenceException
      Finds the contacts of the specified user.
      Parameters:
      userId - The ID of the user or null
      email - Optional email specification,
      Returns:
      The collection of found Contacts
      Throws:
      PersistenceException - Error in the database