Package com.epam.ta.reportportal.dao
Class ProjectRepositoryCustomImpl
- java.lang.Object
-
- com.epam.ta.reportportal.dao.ProjectRepositoryCustomImpl
-
- All Implemented Interfaces:
FilterableRepository<Project>,ProjectRepositoryCustom
@Repository public class ProjectRepositoryCustomImpl extends java.lang.Object implements ProjectRepositoryCustom
-
-
Constructor Summary
Constructors Constructor Description ProjectRepositoryCustomImpl()
-
Method Summary
All Methods Instance Methods Concrete 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<Project>findByFilter(Queryable filter)Executes query built for given filterorg.springframework.data.domain.Page<Project>findByFilter(Queryable filter, org.springframework.data.domain.Pageable pageable)Executes query built for given filter and maps result for given pagejava.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
-
-
-
Method Detail
-
findByFilter
public java.util.List<Project> findByFilter(Queryable filter)
Description copied from interface:FilterableRepositoryExecutes query built for given filter- Specified by:
findByFilterin interfaceFilterableRepository<Project>- Parameters:
filter- Filter to build a query- Returns:
- List of mapped entries found
-
findByFilter
public org.springframework.data.domain.Page<Project> findByFilter(Queryable filter, org.springframework.data.domain.Pageable pageable)
Description copied from interface:FilterableRepositoryExecutes query built for given filter and maps result for given page- Specified by:
findByFilterin interfaceFilterableRepository<Project>- Parameters:
filter- Filter to build a querypageable-Pageable- Returns:
- List of mapped entries found
-
findProjectInfoByFilter
public java.util.List<ProjectInfo> findProjectInfoByFilter(Queryable filter)
Description copied from interface:ProjectRepositoryCustomFind projects info by filter- Specified by:
findProjectInfoByFilterin interfaceProjectRepositoryCustom- Parameters:
filter- Filter- Returns:
- List of project info objects
-
findProjectInfoByFilter
public org.springframework.data.domain.Page<ProjectInfo> findProjectInfoByFilter(Queryable filter, org.springframework.data.domain.Pageable pageable)
Description copied from interface:ProjectRepositoryCustomFind projects info by filter with paging- Specified by:
findProjectInfoByFilterin interfaceProjectRepositoryCustom- Parameters:
filter- Filterpageable- Paging- Returns:
- Page of project info objects
-
findAllProjectNames
public java.util.List<java.lang.String> findAllProjectNames()
Description copied from interface:ProjectRepositoryCustomFind all project names- Specified by:
findAllProjectNamesin interfaceProjectRepositoryCustom- Returns:
- List of project names
-
findAllProjectNamesByTerm
public java.util.List<java.lang.String> findAllProjectNamesByTerm(java.lang.String term)
Description copied from interface:ProjectRepositoryCustomFind all project names, which contain provided term- Specified by:
findAllProjectNamesByTermin interfaceProjectRepositoryCustom- Returns:
- List of project names
-
findAllIdsAndProjectAttributes
public org.springframework.data.domain.Page<Project> findAllIdsAndProjectAttributes(Queryable filter, org.springframework.data.domain.Pageable pageable)
Description copied from interface:ProjectRepositoryCustomGetPageofProject.idwith attributes- Specified by:
findAllIdsAndProjectAttributesin interfaceProjectRepositoryCustom- Parameters:
filter-Filterpageable-Pageable- Returns:
PageofProjects that contain onlyProject.id,Attribute.nameandProjectAttribute.value
-
deleteByTypeAndLastLaunchRunBefore
public int deleteByTypeAndLastLaunchRunBefore(ProjectType projectType, java.time.LocalDateTime bound, int limit)
Description copied from interface:ProjectRepositoryCustomDeletelimitproject with specifiedprojectTypeand last launch run beforebound- Specified by:
deleteByTypeAndLastLaunchRunBeforein interfaceProjectRepositoryCustom- Returns:
- number of deleted projects
-
-