com.atlassian.greenhopper.global
Class AbstractTransactionalTask<T>

java.lang.Object
  extended by com.atlassian.greenhopper.global.AbstractLoggable
      extended by com.atlassian.greenhopper.global.AbstractTransactionalTask<T>
All Implemented Interfaces:
TransactionalTask<T>
Direct Known Subclasses:
ColumnLayoutItemsCleanupTask, ConvertOldRankFieldsToNumberTypeTask, CreateNewRankCustomFieldsFromOldTask, FieldConfigurationCleanupTask, InitialiseRankFieldsMapTask, MigrateRankDataTaskImpl, PostUpgradeCleanupTask, RenameOldRankCustomFieldsTask, ResolveDefaultRankFieldTask, ScreenSchemeCleanupTask, UpdateGreenHopperConfigurationTask, UpdateLabsRankFieldDescriptionTask, UpdateSavedFiltersForNewRankFieldsTask

public abstract class AbstractTransactionalTask<T>
extends AbstractLoggable
implements TransactionalTask<T>

Basic log-wrapping implementation of TransactionalTask.


Field Summary
 
Fields inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logger
 
Constructor Summary
AbstractTransactionalTask()
           
 
Method Summary
protected abstract  void _doTask(T state)
           
protected abstract  void _undoTask(T state)
           
 void doTask(T state)
           
 void undoTask(T state)
           
 
Methods inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logDebug, logError, logException, logInfo, logTrace, logWarn, setInfoLogLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTransactionalTask

public AbstractTransactionalTask()
Method Detail

doTask

public void doTask(T state)
            throws java.lang.Exception
Specified by:
doTask in interface TransactionalTask<T>
Throws:
java.lang.Exception

undoTask

public void undoTask(T state)
              throws java.lang.Exception
Specified by:
undoTask in interface TransactionalTask<T>
Throws:
java.lang.Exception

_doTask

protected abstract void _doTask(T state)
                         throws java.lang.Exception
Throws:
java.lang.Exception

_undoTask

protected abstract void _undoTask(T state)
                           throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2007-2013 Atlassian. All Rights Reserved.