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
-
-
Constructor Summary
Constructors Constructor Description RssProjectPermissionHibernateDaoImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 IDList<Long>
findRepositoryIdsByProjectId(long projectId)
TODO optimize and fetch this by "select REPOSITORY_ID from RssProjectPermissionImpl where PROJECT_ID = :projectId"void
save(RssProjectPermission entity)
Save newRssProjectPermission
entity-
Methods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
getCacheAwareHibernateTemplate
-
-
-
-
Method Detail
-
findById
@Nullable public @Nullable RssProjectPermission findById(long id)
Description copied from interface:RssProjectPermissionDao
Search by permission ID.- Specified by:
findById
in interfaceRssProjectPermissionDao
-
findByProjectId
@NotNull public @NotNull List<RssProjectPermission> findByProjectId(long projectId)
Description copied from interface:RssProjectPermissionDao
Search by build project ID.- Specified by:
findByProjectId
in interfaceRssProjectPermissionDao
-
findByRepositoryId
@NotNull public @NotNull List<RssProjectPermission> findByRepositoryId(long repositoryId)
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
public List<Long> findRepositoryIdsByProjectId(long projectId)
TODO optimize and fetch this by "select REPOSITORY_ID from RssProjectPermissionImpl where PROJECT_ID = :projectId"- Specified by:
findRepositoryIdsByProjectId
in interfaceRssProjectPermissionDao
-
save
public void save(RssProjectPermission entity)
Description copied from interface:RssProjectPermissionDao
Save newRssProjectPermission
entity- Specified by:
save
in interfaceRssProjectPermissionDao
-
delete
public void delete(RssProjectPermission entity)
Description copied from interface:RssProjectPermissionDao
DeleteRssProjectPermission
entity.- Specified by:
delete
in interfaceRssProjectPermissionDao
-
-