public class ArtifactHibernateDao extends StatelessSessionHibernateDaoSupport implements ArtifactDao
| Constructor and Description |
|---|
ArtifactHibernateDao(TransactionAndHibernateTemplate transactionTemplate) |
| Modifier and Type | Method and Description |
|---|---|
List<MutableArtifact> |
findAll() |
Map<String,Long> |
findArtifactUsedStorageByLinkType() |
MutableArtifact |
findById(long id) |
List<MutableArtifact> |
findOrphanedArtifacts() |
List<MutableArtifact> |
findPlanArtifactsReferencedByVersion(PlanKey planKey) |
List<MutableArtifact> |
findPlanResultArtifactsReferencedByVersion(PlanResultKey planResultKey) |
boolean |
isReferencedByVersion(long artifactId) |
void |
removeAll(Collection<MutableArtifact> artifacts) |
void |
removeById(long id) |
void |
removeByPlanKey(PlanKey planKey) |
void |
removeByPlanResultKey(PlanResultKey planResultKey) |
void |
save(MutableArtifact artifact) |
void |
updatePlanKey(PlanKey originalPlanKey,
PlanKey newPlanKey) |
getCacheAwareHibernateTemplatepublic ArtifactHibernateDao(TransactionAndHibernateTemplate transactionTemplate)
public void save(MutableArtifact artifact)
save in interface ArtifactDaopublic List<MutableArtifact> findAll()
findAll in interface ArtifactDao@Nullable public MutableArtifact findById(long id)
findById in interface ArtifactDaopublic boolean isReferencedByVersion(long artifactId)
isReferencedByVersion in interface ArtifactDaopublic List<MutableArtifact> findPlanResultArtifactsReferencedByVersion(@NotNull PlanResultKey planResultKey)
findPlanResultArtifactsReferencedByVersion in interface ArtifactDaopublic List<MutableArtifact> findPlanArtifactsReferencedByVersion(@NotNull PlanKey planKey)
findPlanArtifactsReferencedByVersion in interface ArtifactDaopublic void removeById(long id)
removeById in interface ArtifactDaopublic void removeByPlanKey(@NotNull
PlanKey planKey)
removeByPlanKey in interface ArtifactDaopublic void removeByPlanResultKey(@NotNull
PlanResultKey planResultKey)
removeByPlanResultKey in interface ArtifactDaopublic List<MutableArtifact> findOrphanedArtifacts()
findOrphanedArtifacts in interface ArtifactDaopublic void removeAll(@NotNull
Collection<MutableArtifact> artifacts)
removeAll in interface ArtifactDaopublic void updatePlanKey(@NotNull
PlanKey originalPlanKey,
@NotNull
PlanKey newPlanKey)
updatePlanKey in interface ArtifactDao@NotNull public Map<String,Long> findArtifactUsedStorageByLinkType()
findArtifactUsedStorageByLinkType in interface ArtifactDaoCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.