Interface LogRepository

    • 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)