Interface ComponentGraphRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ComponentGraph,,UUID> org.springframework.data.jpa.repository.JpaRepository<ComponentGraph,,UUID> org.springframework.data.repository.ListCrudRepository<ComponentGraph,,UUID> org.springframework.data.repository.ListPagingAndSortingRepository<ComponentGraph,,UUID> org.springframework.data.repository.PagingAndSortingRepository<ComponentGraph,,UUID> org.springframework.data.repository.query.QueryByExampleExecutor<ComponentGraph>,org.springframework.data.repository.Repository<ComponentGraph,UUID>
@Repository
public interface ComponentGraphRepository
extends org.springframework.data.jpa.repository.JpaRepository<ComponentGraph,UUID>
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexistsBySystemNameAndComponentName(String systemName, String componentName) voidupdateGraphAndFingerprintBySystemNameAndComponentNameIfFingerprintChanged(String systemName, String componentName, byte[] graphData, String fingerprint) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
existsBySystemNameAndComponentName
-
updateGraphAndFingerprintBySystemNameAndComponentNameIfFingerprintChanged
@Modifying @Transactional @Query(value="UPDATE component_graph SET graph_data = :graphData, fingerprint = :fingerprint, modified_at = CURRENT_TIMESTAMP WHERE system_name = :systemName AND component_name = :componentName AND fingerprint != :fingerprint", nativeQuery=true) void updateGraphAndFingerprintBySystemNameAndComponentNameIfFingerprintChanged(String systemName, String componentName, byte[] graphData, String fingerprint)
-