public class WebhookDAOHibernate extends HibernateDao implements WebhookDAO
batchFinder, batchProcessor, logger, sessionFactory| Constructor and Description |
|---|
WebhookDAOHibernate() |
| Modifier and Type | Method and Description |
|---|---|
Webhook |
add(Webhook webhook) |
Iterable<Webhook> |
findAll() |
Webhook |
findByApplicationAndEndpointUrl(Application application,
String endpointUrl) |
Webhook |
findById(Long webhookId) |
Class |
getPersistentClass()
All subclasses of HibernateDao must implement this method for
HibernateDao.load(long) to work correctly. |
void |
remove(Webhook webhook) |
Webhook |
update(Webhook webhook) |
createHibernateQuery, load, load, loadReference, loadReference, remove, save, saveOrUpdate, session, setBatchFinder, setBatchProcessor, setSessionFactory, updatepublic Webhook findById(Long webhookId) throws WebhookNotFoundException
findById in interface WebhookDAOWebhookNotFoundExceptionpublic Webhook findByApplicationAndEndpointUrl(Application application, String endpointUrl) throws WebhookNotFoundException
findByApplicationAndEndpointUrl in interface WebhookDAOWebhookNotFoundExceptionpublic Webhook add(Webhook webhook)
add in interface WebhookDAOpublic void remove(Webhook webhook) throws WebhookNotFoundException
remove in interface WebhookDAOWebhookNotFoundExceptionpublic Iterable<Webhook> findAll()
findAll in interface WebhookDAOpublic Webhook update(Webhook webhook) throws WebhookNotFoundException
update in interface WebhookDAOWebhookNotFoundExceptionpublic Class getPersistentClass()
HibernateDaoHibernateDao.load(long) to work correctly.getPersistentClass in class HibernateDaoCopyright © 2017 Atlassian. All rights reserved.