Package com.atlassian.crowd.dao.webhook
Class WebhookDAOHibernate
java.lang.Object
com.atlassian.crowd.util.persistence.hibernate.StatelessDao
com.atlassian.crowd.util.persistence.hibernate.HibernateDao<WebhookImpl>
com.atlassian.crowd.dao.webhook.WebhookDAOHibernate
- All Implemented Interfaces:
WebhookDAO
Persists Webhooks using Hibernate.
- Since:
- v2.7
-
Field Summary
Fields inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao
batchFinder, batchProcessor, logger, statelessSessionBatchProcessor, timeSourceFields inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
sessionFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAll()findByApplicationAndEndpointUrl(Application application, String endpointUrl) All subclasses of HibernateDao must implement this method forHibernateDao.load(Serializable)to work correctly.voidMethods inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao
createDeleteQuery, createDeleteQuery, createQuery, createQuery, executeHQLQuery, findAllInternal, findByProperties, findByPropertiesOptional, findByProperty, findByProperty, findByPropertyOptional, findByPropertyOrThrow, getCountByProperties, load, load, loadOptional, loadReference, loadReference, remove, removeByIdIfPresent, save, saveOrUpdate, session, setBatchFinder, setBatchProcessor, setClock, setStatelessSessionBatchProcessor, toPredicates, updateMethods inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
setSessionFactory, withStatelessSession
-
Constructor Details
-
WebhookDAOHibernate
-
-
Method Details
-
findById
- Specified by:
findByIdin interfaceWebhookDAO- Throws:
WebhookNotFoundException
-
findByApplicationAndEndpointUrl
public Webhook findByApplicationAndEndpointUrl(Application application, String endpointUrl) throws WebhookNotFoundException - Specified by:
findByApplicationAndEndpointUrlin interfaceWebhookDAO- Throws:
WebhookNotFoundException
-
add
- Specified by:
addin interfaceWebhookDAO
-
remove
- Specified by:
removein interfaceWebhookDAO- Throws:
WebhookNotFoundException
-
findAll
- Specified by:
findAllin interfaceWebhookDAO
-
update
- Specified by:
updatein interfaceWebhookDAO- Throws:
WebhookNotFoundException
-
getPersistentClass
Description copied from class:HibernateDaoAll subclasses of HibernateDao must implement this method forHibernateDao.load(Serializable)to work correctly.- Specified by:
getPersistentClassin classHibernateDao<WebhookImpl>- Returns:
- the entity class for this DAO
-