Class ContentEntityMigrationTaskWrapper
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.migration.tasks.ContentEntityMigrationTaskWrapper
-
- All Implemented Interfaces:
org.springframework.transaction.support.TransactionCallback
public class ContentEntityMigrationTaskWrapper extends Object implements org.springframework.transaction.support.TransactionCallback
Wraps aContentEntityMigrationBatchTaskand ensures that the flush mode of the session is set to commit. This ensures that our session doesn't chew all the memory as we load each and every CEO.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContentEntityMigrationTaskWrapper.LoggingCallbackProvides coordinated thread-safe logging of progress across multiple executing threads.
-
Constructor Summary
Constructors Constructor Description ContentEntityMigrationTaskWrapper(ExceptionTolerantMigrator migrator, ExceptionReport report, ContentDao contentDao, BatchableWorkSource<ContentEntityObject> workSource, com.atlassian.cache.CacheManager ignoredCacheManager, String versionComment, ContentEntityMigrationTaskWrapper.LoggingCallback loggingCallback)ContentEntityMigrationTaskWrapper(ExceptionTolerantMigrator migrator, ExceptionReport report, ContentDao contentDao, BatchableWorkSource<ContentEntityObject> workSource, String versionComment, ContentEntityMigrationTaskWrapper.LoggingCallback loggingCallback)ContentEntityMigrationTaskWrapper(ExceptionTolerantMigrator migrator, ExceptionReport report, ContentDao contentDao, BatchableWorkSource<ContentEntityObject> workSource, String versionComment, ContentEntityMigrationTaskWrapper.LoggingCallback loggingCallback, org.hibernate.SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerdoInTransaction(org.springframework.transaction.TransactionStatus status)
-
-
-
Constructor Detail
-
ContentEntityMigrationTaskWrapper
@Deprecated public ContentEntityMigrationTaskWrapper(ExceptionTolerantMigrator migrator, ExceptionReport report, ContentDao contentDao, BatchableWorkSource<ContentEntityObject> workSource, com.atlassian.cache.CacheManager ignoredCacheManager, String versionComment, ContentEntityMigrationTaskWrapper.LoggingCallback loggingCallback)
-
ContentEntityMigrationTaskWrapper
@Deprecated public ContentEntityMigrationTaskWrapper(ExceptionTolerantMigrator migrator, ExceptionReport report, ContentDao contentDao, BatchableWorkSource<ContentEntityObject> workSource, String versionComment, ContentEntityMigrationTaskWrapper.LoggingCallback loggingCallback)
-
ContentEntityMigrationTaskWrapper
public ContentEntityMigrationTaskWrapper(ExceptionTolerantMigrator migrator, ExceptionReport report, ContentDao contentDao, BatchableWorkSource<ContentEntityObject> workSource, String versionComment, ContentEntityMigrationTaskWrapper.LoggingCallback loggingCallback, org.hibernate.SessionFactory sessionFactory)
- Since:
- 6.1.0
-
-
Method Detail
-
doInTransaction
public Integer doInTransaction(org.springframework.transaction.TransactionStatus status)
- Specified by:
doInTransactionin interfaceorg.springframework.transaction.support.TransactionCallback- Returns:
- a count of the number of content entities that needed to be migrated in this batch.
-
-