public class RssProjectPermissionHibernateDaoImpl extends StatelessSessionHibernateDaoSupport implements RssProjectPermissionDao
Constructor and Description |
---|
RssProjectPermissionHibernateDaoImpl() |
Modifier and Type | Method and Description |
---|---|
void |
delete(RssProjectPermission entity)
Delete
RssProjectPermission entity. |
RssProjectPermission |
findById(long id)
Search by permission ID.
|
List<RssProjectPermission> |
findByProjectId(long projectId)
Search by build project ID.
|
RssProjectPermission |
findByProjectIdAndRepositoryId(long projectId,
long repositoryId)
Search by build project ID and repository ID.
|
List<RssProjectPermission> |
findByRepositoryId(long repositoryId)
Search by repository ID
|
List<Long> |
findRepositoryIdsByProjectId(long projectId)
TODO optimize and fetch this by "select REPOSITORY_ID from RssProjectPermissionImpl where PROJECT_ID = :projectId"
|
void |
save(RssProjectPermission entity)
Save new
RssProjectPermission entity |
getCacheAwareHibernateTemplate
public RssProjectPermissionHibernateDaoImpl()
@Nullable public RssProjectPermission findById(long id)
RssProjectPermissionDao
findById
in interface RssProjectPermissionDao
@NotNull public List<RssProjectPermission> findByProjectId(long projectId)
RssProjectPermissionDao
findByProjectId
in interface RssProjectPermissionDao
@NotNull public List<RssProjectPermission> findByRepositoryId(long repositoryId)
RssProjectPermissionDao
findByRepositoryId
in interface RssProjectPermissionDao
@Nullable public RssProjectPermission findByProjectIdAndRepositoryId(long projectId, long repositoryId)
RssProjectPermissionDao
findByProjectIdAndRepositoryId
in interface RssProjectPermissionDao
public List<Long> findRepositoryIdsByProjectId(long projectId)
findRepositoryIdsByProjectId
in interface RssProjectPermissionDao
public void save(RssProjectPermission entity)
RssProjectPermissionDao
RssProjectPermission
entitysave
in interface RssProjectPermissionDao
public void delete(RssProjectPermission entity)
RssProjectPermissionDao
RssProjectPermission
entity.delete
in interface RssProjectPermissionDao
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.