Package com.epam.ta.reportportal.dao
Interface ProjectRepositoryCustom
-
- All Superinterfaces:
FilterableRepository<Project>
- All Known Subinterfaces:
ProjectRepository
- All Known Implementing Classes:
ProjectRepositoryCustomImpl
public interface ProjectRepositoryCustom extends FilterableRepository<Project>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intdeleteByTypeAndLastLaunchRunBefore(ProjectType projectType, java.time.LocalDateTime bound, int limit)Deletelimitproject with specifiedprojectTypeand last launch run beforeboundorg.springframework.data.domain.Page<Project>findAllIdsAndProjectAttributes(Queryable filter, org.springframework.data.domain.Pageable pageable)GetPageofProject.idwith attributesjava.util.List<java.lang.String>findAllProjectNames()Find all project namesjava.util.List<java.lang.String>findAllProjectNamesByTerm(java.lang.String term)Find all project names, which contain provided termjava.util.List<ProjectInfo>findProjectInfoByFilter(Queryable filter)Find projects info by filterorg.springframework.data.domain.Page<ProjectInfo>findProjectInfoByFilter(Queryable filter, org.springframework.data.domain.Pageable pageable)Find projects info by filter with paging-
Methods inherited from interface com.epam.ta.reportportal.dao.FilterableRepository
findByFilter, findByFilter
-
-
-
-
Method Detail
-
findProjectInfoByFilter
java.util.List<ProjectInfo> findProjectInfoByFilter(Queryable filter)
Find projects info by filter- Parameters:
filter- Filter- Returns:
- List of project info objects
-
findProjectInfoByFilter
org.springframework.data.domain.Page<ProjectInfo> findProjectInfoByFilter(Queryable filter, org.springframework.data.domain.Pageable pageable)
Find projects info by filter with paging- Parameters:
filter- Filterpageable- Paging- Returns:
- Page of project info objects
-
findAllProjectNames
java.util.List<java.lang.String> findAllProjectNames()
Find all project names- Returns:
- List of project names
-
findAllProjectNamesByTerm
java.util.List<java.lang.String> findAllProjectNamesByTerm(java.lang.String term)
Find all project names, which contain provided term- Returns:
- List of project names
-
findAllIdsAndProjectAttributes
org.springframework.data.domain.Page<Project> findAllIdsAndProjectAttributes(Queryable filter, org.springframework.data.domain.Pageable pageable)
GetPageofProject.idwith attributes- Parameters:
filter-Filterpageable-Pageable- Returns:
PageofProjects that contain onlyProject.id,Attribute.nameandProjectAttribute.value
-
deleteByTypeAndLastLaunchRunBefore
int deleteByTypeAndLastLaunchRunBefore(ProjectType projectType, java.time.LocalDateTime bound, int limit)
Deletelimitproject with specifiedprojectTypeand last launch run beforebound- Parameters:
projectType-bound-limit-- Returns:
- number of deleted projects
-
-