|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mybatis.generator.internal.NullProgressCallback
public class NullProgressCallback
This class implements a progress callback that does nothing. It is used when the client passes in a null for the ProgressCallback.
Constructor Summary | |
---|---|
NullProgressCallback()
|
Method Summary | |
---|---|
void |
checkCancel()
The method is called periodically during a long running method. |
void |
done()
This method is called when all generated files have been saved |
void |
generationStarted(int totalTasks)
Called to note the start of the generation phase, and to note the maximum number of startTask messages that will be sent for the generation phase. |
void |
introspectionStarted(int totalTasks)
Called to note the start of the introspection phase, and to note the maximum number of startTask messages that will be sent for the introspection phase. |
void |
saveStarted(int totalTasks)
Called to note the start of the file saving phase, and to note the maximum number of startTask messages that will be sent for the file saving phase phase. |
void |
startTask(String taskName)
Called to denote the beginning of a save task |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullProgressCallback()
Method Detail |
---|
public void generationStarted(int totalTasks)
ProgressCallback
generationStarted
in interface ProgressCallback
totalTasks
- the maximum number of times startTask will be called for the
generation phase.public void introspectionStarted(int totalTasks)
ProgressCallback
introspectionStarted
in interface ProgressCallback
totalTasks
- the maximum number of times startTask will be called for the
introspection phase.public void saveStarted(int totalTasks)
ProgressCallback
saveStarted
in interface ProgressCallback
totalTasks
- the maximum number of times startTask will be called for the
file saving phase.public void startTask(String taskName)
ProgressCallback
startTask
in interface ProgressCallback
taskName
- a descriptive name of the current work steppublic void checkCancel() throws InterruptedException
ProgressCallback
InterruptedException
then
the method will be canceled. Any files that have already been saved will
remain on the file system.
checkCancel
in interface ProgressCallback
InterruptedException
- if the operation should be haltedpublic void done()
ProgressCallback
done
in interface ProgressCallback
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |