Class RestoreDao


  • public class RestoreDao
    extends Object
    Allows to perform all DB operations required for space and site restore.
    Since:
    7.20.0
    • Field Detail

      • transactionManager

        protected final org.springframework.transaction.PlatformTransactionManager transactionManager
      • jdbcTemplateSupplier

        protected final Supplier<org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate> jdbcTemplateSupplier
    • Constructor Detail

      • RestoreDao

        public RestoreDao​(org.hibernate.SessionFactory sessionFactory,
                          org.springframework.transaction.PlatformTransactionManager transactionManager)
      • RestoreDao

        public RestoreDao​(org.hibernate.SessionFactory sessionFactory,
                          org.springframework.transaction.PlatformTransactionManager transactionManager,
                          Supplier<org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate> jdbcTemplateSupplier)
    • Method Detail

      • setNextHiValue

        public int setNextHiValue​(long nextHi)
      • getNextHiValue

        public Long getNextHiValue()
      • generateIds

        public Collection<Object> generateIds​(org.hibernate.id.IdentifierGenerator identifierGenerator,
                                              Object fakeObject,
                                              int count)
        Generates multiple ids. Currently, it still generates ids one by one, but the implementation can be replaced in the future.
      • runNativeUpdateQuery

        public int runNativeUpdateQuery​(String query,
                                        Map<String,​?> paramMap)
      • doInTransaction

        public <T> T doInTransaction​(org.springframework.transaction.support.TransactionCallback<T> callback)
      • doInReadOnlyTransaction

        public <T> T doInReadOnlyTransaction​(org.springframework.transaction.support.TransactionCallback<T> callback)