public class RssDeploymentProjectPermissionHibernateDaoImpl extends StatelessSessionHibernateDaoSupport implements RssDeploymentProjectPermissionDao
Constructor and Description |
---|
RssDeploymentProjectPermissionHibernateDaoImpl() |
Modifier and Type | Method and Description |
---|---|
void |
delete(RssDeploymentProjectPermission entity)
Delete
RssDeploymentProjectPermission entity. |
List<RssDeploymentProjectPermission> |
findByDeploymentProjectId(long projectId)
Search by deployment project ID.
|
RssDeploymentProjectPermission |
findByDeploymentProjectIdAndRepositoryId(long deploymentProjectId,
long repositoryId)
Search by deployment project ID and repository ID.
|
RssDeploymentProjectPermission |
findById(long id)
Search by permission ID.
|
List<RssDeploymentProjectPermission> |
findByRepositoryId(long repositoryId)
Search by repository ID
|
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)
Save
RssDeploymentProjectPermission entity. |
getCacheAwareHibernateTemplate
public RssDeploymentProjectPermissionHibernateDaoImpl()
@Nullable public RssDeploymentProjectPermission findById(long id)
RssDeploymentProjectPermissionDao
findById
in interface RssDeploymentProjectPermissionDao
@NotNull public List<RssDeploymentProjectPermission> findByDeploymentProjectId(long projectId)
RssDeploymentProjectPermissionDao
findByDeploymentProjectId
in interface RssDeploymentProjectPermissionDao
@NotNull public List<RssDeploymentProjectPermission> findByRepositoryId(long repositoryId)
RssDeploymentProjectPermissionDao
findByRepositoryId
in interface RssDeploymentProjectPermissionDao
@Nullable public RssDeploymentProjectPermission findByDeploymentProjectIdAndRepositoryId(long deploymentProjectId, long repositoryId)
RssDeploymentProjectPermissionDao
findByDeploymentProjectIdAndRepositoryId
in interface RssDeploymentProjectPermissionDao
@NotNull public List<Long> findRepositoryIdsByDeploymentProjectId(long deploymentProjectId)
findRepositoryIdsByDeploymentProjectId
in interface RssDeploymentProjectPermissionDao
public void save(RssDeploymentProjectPermission entity)
RssDeploymentProjectPermissionDao
RssDeploymentProjectPermission
entity.save
in interface RssDeploymentProjectPermissionDao
public void delete(RssDeploymentProjectPermission entity)
RssDeploymentProjectPermissionDao
RssDeploymentProjectPermission
entity.delete
in interface RssDeploymentProjectPermissionDao
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.