All Superinterfaces:
org.springframework.data.repository.CrudRepository<Checkpoint,String>, org.springframework.data.jpa.repository.JpaRepository<Checkpoint,String>, org.springframework.data.repository.ListCrudRepository<Checkpoint,String>, org.springframework.data.repository.ListPagingAndSortingRepository<Checkpoint,String>, org.springframework.data.repository.PagingAndSortingRepository<Checkpoint,String>, org.springframework.data.repository.query.QueryByExampleExecutor<Checkpoint>, org.springframework.data.repository.Repository<Checkpoint,String>

public interface CheckpointRepository extends org.springframework.data.jpa.repository.JpaRepository<Checkpoint,String>
  • Method Summary

    Modifier and Type
    Method
    Description
    findAllBySessionChainIdAndSessionId(String chainId, String sessionId, org.springframework.data.domain.Pageable pageable)
     
     
     

    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

    • findFirstBySessionIdAndSessionChainIdAndCheckpointElementId

      Checkpoint findFirstBySessionIdAndSessionChainIdAndCheckpointElementId(String sessionId, String chainId, String checkpointElementId)
    • findAllBySessionChainIdAndSessionId

      List<Checkpoint> findAllBySessionChainIdAndSessionId(String chainId, String sessionId, org.springframework.data.domain.Pageable pageable)
    • findAllChainCheckpointSize

      @Query(nativeQuery=true, value=" SELECT si.chain_id AS chain_id,\n si.chain_name AS chain_name,\n SUM( octet_length(chpt.id)\n + octet_length(chpt.session_id)\n + octet_length(chpt.checkpoint_element_id)\n + octet_length(chpt.headers)\n + 4 --oid fixed size\n + length(lo_get(chpt.body)) --actual body size from pg_large_objects\n + 8 --timestamp fixed size\n + octet_length(chpt.context_data) ) AS raw_data_size\n FROM engine.checkpoints chpt LEFT JOIN engine.sessions_info si ON chpt.session_id = si.id\n GROUP BY si.chain_id, si.chain_name;\n") List<Object[]> findAllChainCheckpointSize()