Interface ImportSessionRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ImportSession,,String> org.springframework.data.jpa.repository.JpaRepository<ImportSession,,String> org.springframework.data.repository.ListCrudRepository<ImportSession,,String> org.springframework.data.repository.ListPagingAndSortingRepository<ImportSession,,String> org.springframework.data.repository.PagingAndSortingRepository<ImportSession,,String> org.springframework.data.repository.query.QueryByExampleExecutor<ImportSession>,org.springframework.data.repository.Repository<ImportSession,String>
@Repository
public interface ImportSessionRepository
extends org.springframework.data.jpa.repository.JpaRepository<ImportSession,String>
-
Method Summary
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
-
deleteSessionsOlderThan
@Modifying @Query(nativeQuery=true, value="DELETE FROM catalog.import_sessions WHERE modified_when <= NOW() - make_interval(0, 0, 0, 0, 0, :sessionLifetimeMinutes, 0)") void deleteSessionsOlderThan(int sessionLifetimeMinutes)
-