Class ConsumedSubscriptionHibernateDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<ConsumedSubscription>
com.atlassian.bamboo.plan.artifact.ConsumedSubscriptionHibernateDao
- All Implemented Interfaces:
BambooObjectDao<ConsumedSubscription>
,ConsumedSubscriptionDao
,org.springframework.beans.factory.InitializingBean
public class ConsumedSubscriptionHibernateDao
extends BambooHibernateObjectDao<ConsumedSubscription>
implements ConsumedSubscriptionDao
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<? extends ConsumedSubscription>
findAll()
Find all artifact subscriptions@NotNull List<ConsumedSubscription>
findConsumedSubscriptionsByResultSummary
(@NotNull ResultsSummary resultsSummary) Get list of artifact subscriptions associated with a planlong
scrollConsumedSubscriptionsForExport
(@NotNull Consumer<ConsumedSubscription> consumer) Scroll through all ConsumedSubscription records and pass them to consumerMethods inherited from class com.atlassian.bamboo.persistence3.BambooHibernateObjectDao
convertSearchTermToLikeExpression, countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAll
Methods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
getCacheAwareHibernateTemplate
Methods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
-
Constructor Details
-
ConsumedSubscriptionHibernateDao
public ConsumedSubscriptionHibernateDao()
-
-
Method Details
-
findAll
Description copied from interface:ConsumedSubscriptionDao
Find all artifact subscriptions- Specified by:
findAll
in interfaceConsumedSubscriptionDao
- Returns:
- Collection of all artifact subscriptions
-
findConsumedSubscriptionsByResultSummary
@NotNull public @NotNull List<ConsumedSubscription> findConsumedSubscriptionsByResultSummary(@NotNull @NotNull ResultsSummary resultsSummary) Description copied from interface:ConsumedSubscriptionDao
Get list of artifact subscriptions associated with a plan- Specified by:
findConsumedSubscriptionsByResultSummary
in interfaceConsumedSubscriptionDao
- Parameters:
resultsSummary
- resultSummary which consumed artifact subscriptions should be retrieved- Returns:
- list of consumed artifact subscriptions
-
scrollConsumedSubscriptionsForExport
public long scrollConsumedSubscriptionsForExport(@NotNull @NotNull Consumer<ConsumedSubscription> consumer) Description copied from interface:ConsumedSubscriptionDao
Scroll through all ConsumedSubscription records and pass them to consumer- Specified by:
scrollConsumedSubscriptionsForExport
in interfaceConsumedSubscriptionDao
-