Package com.logicaldoc.calendar
Interface EventReferenceDAO
- All Superinterfaces:
com.logicaldoc.core.PersistentObjectDAO<EventReference>
- All Known Implementing Classes:
HibernateEventReferenceDAO
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 TypeMethodDescriptionFinds a reference by the alternate keyfindByEvent
(long eventId) Finds the external references to given evenfindByExternalId
(String calendar, String externalId) Finds the external references to given external idfindByUserAndEvent
(long userId, long eventId) Finds the external references to given event of a given userMethods inherited from interface com.logicaldoc.core.PersistentObjectDAO
bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForRowSet, 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 usereventId
- identifier of the eventexternalId
- external identifier of the user- Returns:
- the reference
- Throws:
com.logicaldoc.core.PersistenceException
- Error in the data layer
-
findByEvent
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 usereventId
- 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 specificationexternalId
- external identifier of the event- Returns:
- the list of found references
- Throws:
com.logicaldoc.core.PersistenceException
- Error in the data layer
-