Interface ComponentGraphRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<ch.admin.bit.jeap.archrepo.metamodel.system.ComponentGraph,UUID>, org.springframework.data.jpa.repository.JpaRepository<ch.admin.bit.jeap.archrepo.metamodel.system.ComponentGraph,UUID>, org.springframework.data.repository.ListCrudRepository<ch.admin.bit.jeap.archrepo.metamodel.system.ComponentGraph,UUID>, org.springframework.data.repository.ListPagingAndSortingRepository<ch.admin.bit.jeap.archrepo.metamodel.system.ComponentGraph,UUID>, org.springframework.data.repository.PagingAndSortingRepository<ch.admin.bit.jeap.archrepo.metamodel.system.ComponentGraph,UUID>, org.springframework.data.repository.query.QueryByExampleExecutor<ch.admin.bit.jeap.archrepo.metamodel.system.ComponentGraph>, org.springframework.data.repository.Repository<ch.admin.bit.jeap.archrepo.metamodel.system.ComponentGraph,UUID>

@Repository public interface ComponentGraphRepository extends org.springframework.data.jpa.repository.JpaRepository<ch.admin.bit.jeap.archrepo.metamodel.system.ComponentGraph,UUID>
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    existsBySystemNameAndComponentName(String systemName, String componentName)
     
    ch.admin.bit.jeap.archrepo.metamodel.system.ComponentGraph
     
    void
    updateGraphAndFingerprintBySystemNameAndComponentNameIfFingerprintChanged(String systemName, String componentName, byte[] graphData, String fingerprint)
     
    void
     

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • existsBySystemNameAndComponentName

      boolean existsBySystemNameAndComponentName(String systemName, String componentName)
    • 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)
    • findByComponentNameIgnoreCase

      ch.admin.bit.jeap.archrepo.metamodel.system.ComponentGraph findByComponentNameIgnoreCase(String componentName)
    • updateLastPublishedFingerprint

      @Modifying @Transactional @Query("UPDATE ComponentGraph g SET g.lastPublishedFingerprint = :fingerprint WHERE g.id = :id") void updateLastPublishedFingerprint(UUID id, String fingerprint)