Class DomainGeneratorModel.PopulateTask
java.lang.Object
is.codion.tools.generator.model.DomainGeneratorModel.PopulateTask
- All Implemented Interfaces:
ProgressWorker.Handler, ProgressWorker.ProgressHandler<String>, ProgressWorker.ProgressTask<String>, ProgressWorker.ProgressTaskHandler<String>
- Enclosing class:
DomainGeneratorModel
public final class DomainGeneratorModel.PopulateTask
extends Object
implements ProgressWorker.ProgressTaskHandler<String>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(ProgressWorker.ProgressReporter<String> progress) Executes the task.intmaximum()DefaultProgressWorker.DEFAULT_MAXIMUM(100)voidCalled using theDispatcherafter a successful task execution, afterProgressWorker.ResultTaskHandler.onResult(Object)orProgressWorker.ProgressResultTaskHandler.onResult(Object)for result-producing tasks.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ProgressWorker.Handler
onCancelled, onDone, onException, onStarted, onWorkingMethods inherited from interface ProgressWorker.ProgressHandler
onProgress, onPublish
-
Constructor Details
-
PopulateTask
public PopulateTask()
-
-
Method Details
-
execute
Description copied from interface:ProgressWorker.ProgressTaskExecutes the task.- Specified by:
executein interfaceProgressWorker.ProgressTask<String>- Parameters:
progress- the progress reporter for reporting progress (0 - maximum()) or publishing an intermediate result or message.- Throws:
Exception- in case of an exception
-
maximum
public int maximum()Description copied from interface:ProgressWorker.ProgressTaskDefaultProgressWorker.DEFAULT_MAXIMUM(100)- Specified by:
maximumin interfaceProgressWorker.ProgressTask<String>- Returns:
- the maximum progress this task will report
-
cancelled
-
onSuccess
public void onSuccess()Description copied from interface:ProgressWorker.HandlerCalled using theDispatcherafter a successful task execution, afterProgressWorker.ResultTaskHandler.onResult(Object)orProgressWorker.ProgressResultTaskHandler.onResult(Object)for result-producing tasks.- Specified by:
onSuccessin interfaceProgressWorker.Handler
-