Package com.epam.ta.reportportal.dao
Interface ClusterRepository
-
- All Superinterfaces:
ClusterRepositoryCustom,org.springframework.data.repository.CrudRepository<Cluster,java.lang.Long>,org.springframework.data.jpa.repository.JpaRepository<Cluster,java.lang.Long>,org.springframework.data.repository.PagingAndSortingRepository<Cluster,java.lang.Long>,org.springframework.data.repository.query.QueryByExampleExecutor<Cluster>,ReportPortalRepository<Cluster,java.lang.Long>,org.springframework.data.repository.Repository<Cluster,java.lang.Long>
public interface ClusterRepository extends ReportPortalRepository<Cluster,java.lang.Long>, ClusterRepositoryCustom
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intdeleteAllByLaunchId(java.lang.Long launchId)intdeleteAllByProjectId(java.lang.Long projectId)intdeleteClusterTestItemsByItemId(java.lang.Long itemId)intdeleteClusterTestItemsByItemIds(java.util.Collection<java.lang.Long> itemIds)intdeleteClusterTestItemsByLaunchId(java.lang.Long launchId)intdeleteClusterTestItemsByProjectId(java.lang.Long projectId)java.util.List<Cluster>findAllByLaunchId(java.lang.Long launchId)org.springframework.data.domain.Page<Cluster>findAllByLaunchId(java.lang.Long launchId, org.springframework.data.domain.Pageable pageable)java.util.Optional<Cluster>findByIndexIdAndLaunchId(java.lang.Long indexId, java.lang.Long launchId)-
Methods inherited from interface com.epam.ta.reportportal.dao.ClusterRepositoryCustom
saveClusterTestItems
-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
-
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
-
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
-
Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findOne
-
Methods inherited from interface com.epam.ta.reportportal.dao.ReportPortalRepository
exists, refresh
-
-
-
-
Method Detail
-
findByIndexIdAndLaunchId
java.util.Optional<Cluster> findByIndexIdAndLaunchId(java.lang.Long indexId, java.lang.Long launchId)
-
findAllByLaunchId
java.util.List<Cluster> findAllByLaunchId(java.lang.Long launchId)
-
findAllByLaunchId
org.springframework.data.domain.Page<Cluster> findAllByLaunchId(java.lang.Long launchId, org.springframework.data.domain.Pageable pageable)
-
deleteAllByProjectId
int deleteAllByProjectId(java.lang.Long projectId)
-
deleteAllByLaunchId
int deleteAllByLaunchId(java.lang.Long launchId)
-
deleteClusterTestItemsByProjectId
@Modifying @Query(value="DELETE FROM clusters_test_item WHERE cluster_id IN (SELECT id FROM clusters WHERE project_id = :projectId)", nativeQuery=true) int deleteClusterTestItemsByProjectId(@Param("projectId") java.lang.Long projectId)
-
deleteClusterTestItemsByLaunchId
@Modifying @Query(value="DELETE FROM clusters_test_item WHERE cluster_id IN (SELECT id FROM clusters WHERE launch_id = :launchId)", nativeQuery=true) int deleteClusterTestItemsByLaunchId(@Param("launchId") java.lang.Long launchId)
-
deleteClusterTestItemsByItemId
@Modifying @Query(value="DELETE FROM clusters_test_item WHERE item_id = :itemId", nativeQuery=true) int deleteClusterTestItemsByItemId(@Param("itemId") java.lang.Long itemId)
-
deleteClusterTestItemsByItemIds
@Modifying @Query(value="DELETE FROM clusters_test_item WHERE item_id IN (:itemIds)", nativeQuery=true) int deleteClusterTestItemsByItemIds(@Param("itemIds") java.util.Collection<java.lang.Long> itemIds)
-
-