All Superinterfaces:
ActionLogFilterRepository, org.springframework.data.repository.CrudRepository<ActionLog,String>, org.springframework.data.repository.PagingAndSortingRepository<ActionLog,String>, org.springframework.data.repository.Repository<ActionLog,String>

public interface ActionLogRepository extends org.springframework.data.repository.PagingAndSortingRepository<ActionLog,String>, ActionLogFilterRepository, org.springframework.data.repository.CrudRepository<ActionLog,String>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Remove old records for scheduled cleanup task
    findAllByActionTimeBetween(Timestamp actionTimeFrom, Timestamp actionTimeTo)
     

    Methods inherited from interface org.qubership.integration.platform.variables.management.persistence.configs.repository.actionlog.ActionLogFilterRepository

    findActionLogsByFilter, getRecordsCountAfterTime

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

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll

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

    findAll, findAll
  • Method Details

    • deleteAllOldRecordsByInterval

      @Modifying @Query(nativeQuery=true, value="DELETE FROM variables_management.logged_actions act WHERE act.action_time < now() - ( :olderThan )\\:\\:interval") void deleteAllOldRecordsByInterval(String olderThan)
      Remove old records for scheduled cleanup task
      Parameters:
      olderThan - interval string, for example: '1 hour', '7 days', '2 years 3 month'
    • findAllByActionTimeBetween

      List<ActionLog> findAllByActionTimeBetween(Timestamp actionTimeFrom, Timestamp actionTimeTo)