public class WebhookDAOHibernate extends HibernateDao implements WebhookDAO
batchFinder, batchProcessor, logger, statelessSessionBatchProcessor, timeSource
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<WebhookImpl> |
getPersistentClass()
All subclasses of HibernateDao must implement this method for
#load(long) to work correctly. |
void |
remove(Webhook webhook) |
Webhook |
update(Webhook webhook) |
createHibernateQuery, load, load, loadReference, loadReference, remove, save, saveOrUpdate, session, setBatchFinder, setBatchProcessor, setClock, setStatelessSessionBatchProcessor, update
setSessionFactory, withStatelessSession
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
#load(long)
to work correctly.getPersistentClass
in class HibernateDao
Copyright © 2017 Atlassian. All rights reserved.