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
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 IDfindRepositoryIdsByDeploymentProjectId
(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
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
-
Constructor Details
-
RssDeploymentProjectPermissionHibernateDaoImpl
public RssDeploymentProjectPermissionHibernateDaoImpl()
-
-
Method Details
-
findById
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
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
Description copied from interface:RssDeploymentProjectPermissionDao
SaveRssDeploymentProjectPermission
entity.- Specified by:
save
in interfaceRssDeploymentProjectPermissionDao
-
delete
Description copied from interface:RssDeploymentProjectPermissionDao
DeleteRssDeploymentProjectPermission
entity.- Specified by:
delete
in interfaceRssDeploymentProjectPermissionDao
-