Interface SystemGraphRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ch.admin.bit.jeap.archrepo.metamodel.system.SystemGraph,,UUID> org.springframework.data.jpa.repository.JpaRepository<ch.admin.bit.jeap.archrepo.metamodel.system.SystemGraph,,UUID> org.springframework.data.repository.ListCrudRepository<ch.admin.bit.jeap.archrepo.metamodel.system.SystemGraph,,UUID> org.springframework.data.repository.ListPagingAndSortingRepository<ch.admin.bit.jeap.archrepo.metamodel.system.SystemGraph,,UUID> org.springframework.data.repository.PagingAndSortingRepository<ch.admin.bit.jeap.archrepo.metamodel.system.SystemGraph,,UUID> org.springframework.data.repository.query.QueryByExampleExecutor<ch.admin.bit.jeap.archrepo.metamodel.system.SystemGraph>,org.springframework.data.repository.Repository<ch.admin.bit.jeap.archrepo.metamodel.system.SystemGraph,UUID>
@Repository
public interface SystemGraphRepository
extends org.springframework.data.jpa.repository.JpaRepository<ch.admin.bit.jeap.archrepo.metamodel.system.SystemGraph,UUID>
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexistsBySystemName(String systemName) voidupdateGraphDataAndFingerprintIfFingerprintChanged(String systemName, 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
-
existsBySystemName
-
updateGraphDataAndFingerprintIfFingerprintChanged
@Modifying @Transactional @Query(value="UPDATE system_graph SET graph_data = :graphData, fingerprint = :fingerprint, modified_at = CURRENT_TIMESTAMP WHERE system_name = :systemName AND fingerprint != :fingerprint", nativeQuery=true) void updateGraphDataAndFingerprintIfFingerprintChanged(String systemName, byte[] graphData, String fingerprint)
-