Package com.epam.ta.reportportal.dao
Interface LogRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Log,java.lang.Long>,FilterableRepository<Log>,org.springframework.data.jpa.repository.JpaRepository<Log,java.lang.Long>,LogRepositoryCustom,org.springframework.data.repository.PagingAndSortingRepository<Log,java.lang.Long>,org.springframework.data.repository.query.QueryByExampleExecutor<Log>,ReportPortalRepository<Log,java.lang.Long>,org.springframework.data.repository.Repository<Log,java.lang.Long>
public interface LogRepository extends ReportPortalRepository<Log,java.lang.Long>, LogRepositoryCustom
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<Log>findByUuid(java.lang.String uuid)java.util.List<Log>findLogsByLogTime(java.sql.Timestamp timestamp)intupdateClusterIdByIdIn(java.lang.Long clusterId, java.util.Collection<java.lang.Long> ids)intupdateClusterIdSetNullByItemIds(java.util.Collection<java.lang.Long> itemIds)intupdateClusterIdSetNullByLaunchId(java.lang.Long launchId)voidupdateLaunchIdByLaunchId(java.lang.Long currentLaunchId, java.lang.Long newLaunchId)-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
-
Methods inherited from interface com.epam.ta.reportportal.dao.FilterableRepository
findByFilter, findByFilter
-
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 com.epam.ta.reportportal.dao.LogRepositoryCustom
deleteByPeriodAndLaunchIds, deleteByPeriodAndTestItemIds, deleteByProjectId, findAllIndexUnderTestItemByLaunchIdAndTestItemIdsAndLogLevelGte, findAllUnderTestItemByLaunchIdAndTestItemIdsAndLogLevelGte, findAllUnderTestItemByLaunchIdAndTestItemIdsWithLimit, findByTestItemId, findByTestItemId, findIdsByFilter, findIdsByTestItemId, findIdsByTestItemIdsAndLogLevelGte, findIdsUnderTestItemByLaunchIdAndTestItemIdsAndLogLevelGte, findItemLogIdsByLaunchIdAndLogLevelGte, findItemLogIdsByLaunchIdsAndLogLevelGte, findLatestUnderTestItemByLaunchIdAndTestItemIdsAndLogLevelGte, findMessagesByLaunchIdAndItemIdAndPathAndLevelGte, findNestedItems, getPageNumber, hasLogs, hasLogsAddedLately
-
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
-
findByUuid
java.util.Optional<Log> findByUuid(java.lang.String uuid)
-
findLogsByLogTime
java.util.List<Log> findLogsByLogTime(java.sql.Timestamp timestamp)
-
updateLaunchIdByLaunchId
@Modifying @Query(value="UPDATE log SET launch_id = :newLaunchId WHERE launch_id = :currentLaunchId", nativeQuery=true) void updateLaunchIdByLaunchId(@Param("currentLaunchId") java.lang.Long currentLaunchId, @Param("newLaunchId") java.lang.Long newLaunchId)
-
updateClusterIdByIdIn
@Modifying @Query(value="UPDATE log SET cluster_id = :clusterId WHERE id IN (:ids)", nativeQuery=true) int updateClusterIdByIdIn(@Param("clusterId") java.lang.Long clusterId, @Param("ids") java.util.Collection<java.lang.Long> ids)
-
updateClusterIdSetNullByLaunchId
@Modifying @Query(value="UPDATE log SET cluster_id = NULL WHERE cluster_id IN (SELECT id FROM clusters WHERE clusters.launch_id = :launchId)", nativeQuery=true) int updateClusterIdSetNullByLaunchId(@Param("launchId") java.lang.Long launchId)
-
updateClusterIdSetNullByItemIds
@Modifying @Query(value="UPDATE log SET cluster_id = NULL WHERE cluster_id IS NOT NULL AND item_id IN (:itemIds)", nativeQuery=true) int updateClusterIdSetNullByItemIds(@Param("itemIds") java.util.Collection<java.lang.Long> itemIds)
-
-