public class PlanHibernateDao<T extends Plan> extends BambooHibernateObjectDao<Plan> implements PlanDao
| Constructor and Description |
|---|
PlanHibernateDao(TransactionAndHibernateTemplate transactionTemplate) |
countAll, countWithRestriction, delete, deleteAll, execute, executeCountQuery, executeReturnInt, executeReturnLong, findAll, saveAllgetCacheAwareHibernateTemplatecheckDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountAll, countWithRestriction, delete, deleteAll, executeReturnInt, executeReturnLong, findAll, saveAllpublic PlanHibernateDao(TransactionAndHibernateTemplate transactionTemplate)
public <T extends Plan> T getPlanByKey(@NotNull PlanKey planKey, Class<T> aClass)
getPlanByKey in interface PlanDaopublic <T extends Plan> T getPlanByKey(@NotNull String planKey, Class<T> aClass)
getPlanByKey in interface PlanDao@Nullable public PlanIdentifier getPlanIdentifierForPermissionCheckingByKey(@NotNull String planKey)
getPlanIdentifierForPermissionCheckingByKey in interface PlanDaopublic Class<? extends Plan> getPlanClass(@NotNull PlanKey planKey)
getPlanClass in interface PlanDaopublic <E extends Plan> E findById(long id, @NotNull Class<E> aClass)
findById in interface com.atlassian.bamboo.persistence3.BambooObjectDao<Plan>findById in class BambooHibernateObjectDao<Plan>public boolean isChainNameConflicting(@NotNull
String projectKey,
long idOfChainBeingVerified,
@NotNull
String planName)
isChainNameConflicting in interface PlanDaopublic boolean isPlanKeyConflicting(@NotNull
PlanKey planKey)
isPlanKeyConflicting in interface PlanDao@Nullable public <T extends Plan> T getPlanByPartialKeyAndName(@NotNull PlanKey partialPlanKey, @NotNull String planName, Class<T> planType)
getPlanByPartialKeyAndName in interface PlanDaopublic <T extends Plan> int getPlanCount(Class<T> planType)
getPlanCount in interface PlanDao@NotNull public <T extends Plan> List<PlanKey> getPlanKeys(Class<T> planType)
getPlanKeys in interface PlanDao@NotNull public List<PlanKey> getJobKeys(@NotNull PlanKey chainKey)
getJobKeys in interface PlanDao@NotNull public <T extends Plan> List<T> findPlansByProject(@NotNull Project project, Class<T> planType)
findPlansByProject in interface PlanDao@NotNull public <T extends Plan> List<T> findAllPlansByProject(@NotNull Project project, Class<T> planType)
findAllPlansByProject in interface PlanDao@NotNull public <T extends Plan> List<T> findAllPlans(Class<T> planType)
findAllPlans in interface PlanDao@NotNull public <T extends Plan> List<T> findAllPlans(Class<T> planType, int firstResult, int maxResults)
findAllPlans in interface PlanDaopublic void setPlanDiscriminatorRegistry(PlanDiscriminatorRegistry planDiscriminatorRegistry)
public Set<ImmutableChain> filterFavouritedPlans(@NotNull Collection<? extends ImmutableChain> plans, @NotNull com.atlassian.user.User user)
filterFavouritedPlans in interface PlanDao@NotNull public <T extends Plan> Collection<T> getAllPlansMarkedForDeletion(Class<T> planType)
getAllPlansMarkedForDeletion in interface PlanDaopublic void save(@NotNull
Plan plan)
save in interface com.atlassian.bamboo.persistence3.BambooObjectDao<Plan>save in class BambooHibernateObjectDao<Plan>@NotNull public List<ChainBranch> getBranchesForChain(ImmutableChain chain)
getBranchesForChain in interface PlanDaopublic Collection<Job> getBranchesForJob(Job job)
getBranchesForJob in interface PlanDao@NotNull public List<ChainBranchIdentifier> getBranchIdentifiersForChain(@NotNull PlanIdentifier plan)
getBranchIdentifiersForChain in interface PlanDao@NotNull public <T extends Plan> List<PlanIdentifier> getPlanIdentifiersForProject(@NotNull ProjectIdentifier project, @NotNull Class<T> planType, boolean includeMarkedForDeletion)
getPlanIdentifiersForProject in interface PlanDaopublic int getBranchCount(@NotNull
ImmutablePlan plan)
getBranchCount in interface PlanDaopublic List<Pair<Number,Number>> getBranchesCount()
getBranchesCount in interface PlanDaopublic void markPlanForDeletion(PlanKey planKey)
markPlanForDeletion in interface PlanDaopublic void syncDeletionStatusOfJobs()
syncDeletionStatusOfJobs in interface PlanDaoCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.