Class DenormalisedContentChangeLogDao


  • public class DenormalisedContentChangeLogDao
    extends Object
    DAO for retrieving and updating content change log records
    Since:
    7.10.0
    • Constructor Detail

      • DenormalisedContentChangeLogDao

        public DenormalisedContentChangeLogDao​(org.hibernate.SessionFactory sessionFactory)
    • Method Detail

      • findContentChangeLogRecords

        public List<DenormalisedContentChangeLog> findContentChangeLogRecords​(int limit)
        Retrieves a list of space change log records sorted by id.
        Parameters:
        limit - - limit of records
        Returns:
        list of change log records
      • removeContentChangeLogRecords

        public void removeContentChangeLogRecords​(List<DenormalisedContentChangeLog> processedRecords)
        Remove space change log records.
        Parameters:
        processedRecords - log records to remove
      • removeAllContentChangeLogRecords

        public void removeAllContentChangeLogRecords()
        Removes all space change log records. Truncate operation is not used it locks the entire table.
      • saveRecord

        public void saveRecord​(DenormalisedContentChangeLog log)
        Saves a record for testing purpose.
        Parameters:
        log - content change log