Interface EventReferenceDAO

All Superinterfaces:
com.logicaldoc.core.PersistentObjectDAO<EventReference>
All Known Implementing Classes:
HibernateEventReferenceDAO

public interface EventReferenceDAO extends com.logicaldoc.core.PersistentObjectDAO<EventReference>
DAO for events reference.
Since:
6.7
Author:
Marco Meschieri - LogicalDOC
  • Field Summary

    Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO

    ENTITY
  • Method Summary

    Modifier and Type
    Method
    Description
    findByAK(long userId, long eventId, String externalId)
    Finds a reference by the alternate key
    findByEvent(long eventId)
    Finds the external references to given even
    findByExternalId(String calendar, String externalId)
    Finds the external references to given external id
    findByUserAndEvent(long userId, long eventId)
    Finds the external references to given event of a given user

    Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO

    bulkUpdate, delete, delete, deleteAll, deleteAll, 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, store
  • Method Details

    • findByAK

      EventReference findByAK(long userId, long eventId, String externalId) throws com.logicaldoc.core.PersistenceException
      Finds a reference by the alternate key
      Parameters:
      userId - identifier of the user
      eventId - identifier of the event
      externalId - external identifier of the user
      Returns:
      the reference
      Throws:
      com.logicaldoc.core.PersistenceException - Error in the data layer
    • findByEvent

      List<EventReference> findByEvent(long eventId) throws com.logicaldoc.core.PersistenceException
      Finds the external references to given even
      Parameters:
      eventId - identifier of the event
      Returns:
      the list of found references
      Throws:
      com.logicaldoc.core.PersistenceException - Error in the data layer
    • findByUserAndEvent

      List<EventReference> findByUserAndEvent(long userId, long eventId) throws com.logicaldoc.core.PersistenceException
      Finds the external references to given event of a given user
      Parameters:
      userId - identifier of the user
      eventId - identifier of the event
      Returns:
      the list of found references
      Throws:
      com.logicaldoc.core.PersistenceException - Error in the data layer
    • findByExternalId

      List<EventReference> findByExternalId(String calendar, String externalId) throws com.logicaldoc.core.PersistenceException
      Finds the external references to given external id
      Parameters:
      calendar - calendar specification
      externalId - external identifier of the event
      Returns:
      the list of found references
      Throws:
      com.logicaldoc.core.PersistenceException - Error in the data layer