Package org.qubership.integration.platform.variables.management.persistence.configs.repository.actionlog
Interface ActionLogRepository
- 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 TypeMethodDescriptionvoiddeleteAllOldRecordsByInterval(String olderThan) Remove old records for scheduled cleanup taskfindAllByActionTimeBetween(Timestamp actionTimeFrom, Timestamp actionTimeTo) Methods inherited from interface org.qubership.integration.platform.variables.management.persistence.configs.repository.actionlog.ActionLogFilterRepository
findActionLogsByFilter, getRecordsCountAfterTimeMethods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAllMethods 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
-