Package com.logicaldoc.calendar
Class HibernateEventReferenceDAO
java.lang.Object
com.logicaldoc.core.HibernatePersistentObjectDAO<EventReference>
com.logicaldoc.calendar.HibernateEventReferenceDAO
- All Implemented Interfaces:
- EventReferenceDAO,- com.logicaldoc.core.PersistentObjectDAO<EventReference>
@Repository("eventReferenceDAO")
public class HibernateEventReferenceDAO
extends com.logicaldoc.core.HibernatePersistentObjectDAO<EventReference>
implements EventReferenceDAO
Hibernate implementation of the 
EventReferenceDAO.- Since:
- 8.9.4
- Author:
- Marco Meschieri - LogicalDOC
- 
Field SummaryFields inherited from interface com.logicaldoc.core.PersistentObjectDAOENTITY
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete(long id, int code) Finds 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 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, setSessionFactory, storeMethods 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, store
- 
Method Details- 
findByAKpublic EventReference findByAK(long userId, long eventId, String externalId) throws com.logicaldoc.core.PersistenceException Description copied from interface:EventReferenceDAOFinds a reference by the alternate key- Specified by:
- findByAKin interface- EventReferenceDAO
- 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
 
- 
findByUserAndEventpublic List<EventReference> findByUserAndEvent(long userId, long eventId) throws com.logicaldoc.core.PersistenceException Description copied from interface:EventReferenceDAOFinds the external references to given event of a given user- Specified by:
- findByUserAndEventin interface- EventReferenceDAO
- 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
 
- 
deletepublic void delete(long id, int code) throws com.logicaldoc.core.PersistenceException - Specified by:
- deletein interface- com.logicaldoc.core.PersistentObjectDAO<EventReference>
- Overrides:
- deletein class- com.logicaldoc.core.HibernatePersistentObjectDAO<EventReference>
- Throws:
- com.logicaldoc.core.PersistenceException
 
- 
findByExternalIdpublic List<EventReference> findByExternalId(String calendar, String externalId) throws com.logicaldoc.core.PersistenceException Description copied from interface:EventReferenceDAOFinds the external references to given external id- Specified by:
- findByExternalIdin interface- EventReferenceDAO
- 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
 
- 
findByEventpublic List<EventReference> findByEvent(long eventId) throws com.logicaldoc.core.PersistenceException Description copied from interface:EventReferenceDAOFinds the external references to given even- Specified by:
- findByEventin interface- EventReferenceDAO
- Parameters:
- eventId- identifier of the event
- Returns:
- the list of found references
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the data layer
 
 
-