com.atlassian.confluence.content.render.xhtml.migration.tasks
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 java.lang.Object
- implements org.springframework.transaction.support.TransactionCallback
Wraps a ContentEntityMigrationBatchTask
and 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.
Method Summary |
java.lang.Integer |
doInTransaction(org.springframework.transaction.TransactionStatus status)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentEntityMigrationTaskWrapper
public ContentEntityMigrationTaskWrapper(ExceptionTolerantMigrator migrator,
ExceptionReport report,
ContentDao contentDao,
BatchableWorkSource<ContentEntityObject> workSource,
com.atlassian.cache.CacheManager cacheManager,
java.lang.String versionComment,
ContentEntityMigrationTaskWrapper.LoggingCallback loggingCallback)
doInTransaction
public java.lang.Integer doInTransaction(org.springframework.transaction.TransactionStatus status)
- Specified by:
doInTransaction
in interface org.springframework.transaction.support.TransactionCallback
- Returns:
- a count of the number of content entities that needed to be migrated in this batch.
Copyright © 2003-2013 Atlassian. All Rights Reserved.