Package com.atlassian.bamboo.specs
Class RssProjectPermissionHibernateDaoImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
com.atlassian.bamboo.specs.RssProjectPermissionHibernateDaoImpl
- All Implemented Interfaces:
RssProjectPermissionDao
,org.springframework.beans.factory.InitializingBean
public class RssProjectPermissionHibernateDaoImpl
extends StatelessSessionHibernateDaoSupport
implements RssProjectPermissionDao
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(RssProjectPermission entity) DeleteRssProjectPermission
entity.@Nullable RssProjectPermission
findById
(long id) Search by permission ID.@NotNull List<RssProjectPermission>
findByProjectId
(long projectId) Search by build project ID.@Nullable RssProjectPermission
findByProjectIdAndRepositoryId
(long projectId, long repositoryId) Search by build project ID and repository ID.@NotNull List<RssProjectPermission>
findByRepositoryId
(long repositoryId) Search by repository IDfindRepositoryIdsByProjectId
(long projectId) TODO optimize and fetch this by "select REPOSITORY_ID from RssProjectPermissionImpl where PROJECT_ID = :projectId"void
save
(RssProjectPermission entity) Save newRssProjectPermission
entityMethods 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
-
RssProjectPermissionHibernateDaoImpl
public RssProjectPermissionHibernateDaoImpl()
-
-
Method Details
-
findById
Description copied from interface:RssProjectPermissionDao
Search by permission ID.- Specified by:
findById
in interfaceRssProjectPermissionDao
-
findByProjectId
Description copied from interface:RssProjectPermissionDao
Search by build project ID.- Specified by:
findByProjectId
in interfaceRssProjectPermissionDao
-
findByRepositoryId
Description copied from interface:RssProjectPermissionDao
Search by repository ID- Specified by:
findByRepositoryId
in interfaceRssProjectPermissionDao
-
findByProjectIdAndRepositoryId
@Nullable public @Nullable RssProjectPermission findByProjectIdAndRepositoryId(long projectId, long repositoryId) Description copied from interface:RssProjectPermissionDao
Search by build project ID and repository ID. Returns single result or null.- Specified by:
findByProjectIdAndRepositoryId
in interfaceRssProjectPermissionDao
-
findRepositoryIdsByProjectId
TODO optimize and fetch this by "select REPOSITORY_ID from RssProjectPermissionImpl where PROJECT_ID = :projectId"- Specified by:
findRepositoryIdsByProjectId
in interfaceRssProjectPermissionDao
-
save
Description copied from interface:RssProjectPermissionDao
Save newRssProjectPermission
entity- Specified by:
save
in interfaceRssProjectPermissionDao
-
delete
Description copied from interface:RssProjectPermissionDao
DeleteRssProjectPermission
entity.- Specified by:
delete
in interfaceRssProjectPermissionDao
-