public class WebhookDAOHibernate extends HibernateDao<WebhookImpl> implements WebhookDAO
batchFinder, batchProcessor, logger, statelessSessionBatchProcessor, timeSource
sessionFactory
Constructor and Description |
---|
WebhookDAOHibernate(ApplicationDAO applicationDAO) |
Modifier and Type | Method and Description |
---|---|
Webhook |
add(Webhook webhook) |
Iterable<Webhook> |
findAll() |
Webhook |
findByApplicationAndEndpointUrl(Application application,
String endpointUrl) |
Webhook |
findById(Long webhookId) |
Class<WebhookImpl> |
getPersistentClass()
All subclasses of HibernateDao must implement this method for
HibernateDao.load(Serializable) to work
correctly. |
void |
remove(Webhook webhook) |
Webhook |
update(Webhook webhook) |
createDeleteQuery, createDeleteQuery, createQuery, createQuery, executeHQLQuery, 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
setSessionFactory, withStatelessSession
public WebhookDAOHibernate(ApplicationDAO applicationDAO)
public Webhook findById(Long webhookId) throws WebhookNotFoundException
findById
in interface WebhookDAO
WebhookNotFoundException
public Webhook findByApplicationAndEndpointUrl(Application application, String endpointUrl) throws WebhookNotFoundException
findByApplicationAndEndpointUrl
in interface WebhookDAO
WebhookNotFoundException
public Webhook add(Webhook webhook)
add
in interface WebhookDAO
public void remove(Webhook webhook) throws WebhookNotFoundException
remove
in interface WebhookDAO
WebhookNotFoundException
public Iterable<Webhook> findAll()
findAll
in interface WebhookDAO
public Webhook update(Webhook webhook) throws WebhookNotFoundException
update
in interface WebhookDAO
WebhookNotFoundException
public Class<WebhookImpl> getPersistentClass()
HibernateDao
HibernateDao.load(Serializable)
to work
correctly.getPersistentClass
in class HibernateDao<WebhookImpl>
Copyright © 2020 Atlassian. All rights reserved.