Class RssDeploymentProjectPermissionHibernateDaoImpl
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate5.support.HibernateDaoSupport
-
- com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
-
- com.atlassian.bamboo.deployments.specs.RssDeploymentProjectPermissionHibernateDaoImpl
-
- All Implemented Interfaces:
RssDeploymentProjectPermissionDao
,org.springframework.beans.factory.InitializingBean
public class RssDeploymentProjectPermissionHibernateDaoImpl extends StatelessSessionHibernateDaoSupport implements RssDeploymentProjectPermissionDao
-
-
Constructor Summary
Constructors Constructor Description RssDeploymentProjectPermissionHibernateDaoImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(RssDeploymentProjectPermission entity)
DeleteRssDeploymentProjectPermission
entity.@NotNull List<RssDeploymentProjectPermission>
findByDeploymentProjectId(long projectId)
Search by deployment project ID.@Nullable RssDeploymentProjectPermission
findByDeploymentProjectIdAndRepositoryId(long deploymentProjectId, long repositoryId)
Search by deployment project ID and repository ID.@Nullable RssDeploymentProjectPermission
findById(long id)
Search by permission ID.@NotNull List<RssDeploymentProjectPermission>
findByRepositoryId(long repositoryId)
Search by repository ID@NotNull List<Long>
findRepositoryIdsByDeploymentProjectId(long deploymentProjectId)
TODO optimize and fetch this by "select REPOSITORY_ID from RssDeploymentProjectPermission where DEPLOYMENT_PROJECT_ID = :deploymentProjectId"void
save(RssDeploymentProjectPermission entity)
SaveRssDeploymentProjectPermission
entity.-
Methods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
getCacheAwareHibernateTemplate
-
-
-
-
Method Detail
-
findById
@Nullable public @Nullable RssDeploymentProjectPermission findById(long id)
Description copied from interface:RssDeploymentProjectPermissionDao
Search by permission ID.- Specified by:
findById
in interfaceRssDeploymentProjectPermissionDao
-
findByDeploymentProjectId
@NotNull public @NotNull List<RssDeploymentProjectPermission> findByDeploymentProjectId(long projectId)
Description copied from interface:RssDeploymentProjectPermissionDao
Search by deployment project ID.- Specified by:
findByDeploymentProjectId
in interfaceRssDeploymentProjectPermissionDao
-
findByRepositoryId
@NotNull public @NotNull List<RssDeploymentProjectPermission> findByRepositoryId(long repositoryId)
Description copied from interface:RssDeploymentProjectPermissionDao
Search by repository ID- Specified by:
findByRepositoryId
in interfaceRssDeploymentProjectPermissionDao
-
findByDeploymentProjectIdAndRepositoryId
@Nullable public @Nullable RssDeploymentProjectPermission findByDeploymentProjectIdAndRepositoryId(long deploymentProjectId, long repositoryId)
Description copied from interface:RssDeploymentProjectPermissionDao
Search by deployment project ID and repository ID. Returns single result or null.- Specified by:
findByDeploymentProjectIdAndRepositoryId
in interfaceRssDeploymentProjectPermissionDao
-
findRepositoryIdsByDeploymentProjectId
@NotNull public @NotNull List<Long> findRepositoryIdsByDeploymentProjectId(long deploymentProjectId)
TODO optimize and fetch this by "select REPOSITORY_ID from RssDeploymentProjectPermission where DEPLOYMENT_PROJECT_ID = :deploymentProjectId"- Specified by:
findRepositoryIdsByDeploymentProjectId
in interfaceRssDeploymentProjectPermissionDao
-
save
public void save(RssDeploymentProjectPermission entity)
Description copied from interface:RssDeploymentProjectPermissionDao
SaveRssDeploymentProjectPermission
entity.- Specified by:
save
in interfaceRssDeploymentProjectPermissionDao
-
delete
public void delete(RssDeploymentProjectPermission entity)
Description copied from interface:RssDeploymentProjectPermissionDao
DeleteRssDeploymentProjectPermission
entity.- Specified by:
delete
in interfaceRssDeploymentProjectPermissionDao
-
-