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, timeSource
Fields inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
sessionFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindAll()
findByApplicationAndEndpointUrl
(Application application, String endpointUrl) All subclasses of HibernateDao must implement this method forHibernateDao.load(Serializable)
to work correctly.void
Methods 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, update
Methods inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
setSessionFactory, withStatelessSession
-
Constructor Details
-
WebhookDAOHibernate
-
-
Method Details
-
findById
- Specified by:
findById
in interfaceWebhookDAO
- Throws:
WebhookNotFoundException
-
findByApplicationAndEndpointUrl
public Webhook findByApplicationAndEndpointUrl(Application application, String endpointUrl) throws WebhookNotFoundException - Specified by:
findByApplicationAndEndpointUrl
in interfaceWebhookDAO
- Throws:
WebhookNotFoundException
-
add
- Specified by:
add
in interfaceWebhookDAO
-
remove
- Specified by:
remove
in interfaceWebhookDAO
- Throws:
WebhookNotFoundException
-
findAll
- Specified by:
findAll
in interfaceWebhookDAO
-
update
- Specified by:
update
in interfaceWebhookDAO
- Throws:
WebhookNotFoundException
-
getPersistentClass
Description copied from class:HibernateDao
All subclasses of HibernateDao must implement this method forHibernateDao.load(Serializable)
to work correctly.- Specified by:
getPersistentClass
in classHibernateDao<WebhookImpl>
- Returns:
- the entity class for this DAO
-