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
    • Constructor Detail

      • RestoreDao

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

      • generateIds

        public Collection<Serializable> generateIds​(org.hibernate.persister.entity.AbstractEntityPersister abstractEntityPersister,
                                                    Object fakeObject,
                                                    int count)
        Generates multiple ids. Currently, it still generates ids one by one, but the implementation can be replaced in the future.
      • insertRecordsInTransaction

        public void insertRecordsInTransaction​(String insertSql,
                                               Map<String,​Object>[] values)