Interface CheckpointRepository
- 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 TypeMethodDescriptionfindAllBySessionChainIdAndSessionId(String chainId, String sessionId, org.springframework.data.domain.Pageable pageable) findFirstBySessionIdAndSessionChainIdAndCheckpointElementId(String sessionId, String chainId, String checkpointElementId) 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
-
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()
-