public class

NullProgressCallback

extends Object
implements ProgressCallback
java.lang.Object
   ↳ org.mybatis.generator.internal.NullProgressCallback
Known Direct Subclasses

Class Overview

This class implements a progress callback that does nothing. It is used when the client passes in a null for the ProgressCallback.

Summary

Public Constructors
NullProgressCallback()
Public Methods
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
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.mybatis.generator.api.ProgressCallback

Public Constructors

public NullProgressCallback ()

Public Methods

public void checkCancel ()

The method is called periodically during a long running method. If the the implementation throws InterruptedException then the method will be canceled. Any files that have already been saved will remain on the file system.

Throws
InterruptedException

public void done ()

This method is called when all generated files have been saved

public 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.

Parameters
totalTasks the maximum number of times startTask will be called for the generation phase.

public 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.

Parameters
totalTasks the maximum number of times startTask will be called for the introspection phase.

public 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.

Parameters
totalTasks the maximum number of times startTask will be called for the file saving phase.

public void startTask (String taskName)

Called to denote the beginning of a save task

Parameters
taskName a descriptive name of the current work step