public class

IntrospectedTableMyBatis3Impl

extends IntrospectedTable
java.lang.Object
   ↳ org.mybatis.generator.api.IntrospectedTable
     ↳ org.mybatis.generator.codegen.mybatis3.IntrospectedTableMyBatis3Impl

Summary

Fields
protected List<AbstractJavaGenerator> clientGenerators
protected List<AbstractJavaGenerator> javaModelGenerators
protected AbstractXmlGenerator xmlMapperGenerator
[Expand]
Inherited Fields
From class org.mybatis.generator.api.IntrospectedTable
Public Constructors
IntrospectedTableMyBatis3Impl()
Public Methods
void calculateGenerators(List<String> warnings, ProgressCallback progressCallback)
This method can be used to initialize the generators before they will be called.
List<GeneratedJavaFile> getGeneratedJavaFiles()
This method should return a list of generated Java files related to this table.
List<GeneratedXmlFile> getGeneratedXmlFiles()
This method should return a list of generated XML files related to this table.
int getGenerationSteps()
This method should return the number of progress messages that will be send during the generation phase.
boolean isJava5Targeted()
Denotes whether generated code is targeted for Java version 5.0 or higher.
boolean requiresXMLGenerator()
Should return true if an XML generator is required for this table.
Protected Methods
AbstractJavaClientGenerator calculateClientGenerators(List<String> warnings, ProgressCallback progressCallback)
void calculateJavaModelGenerators(List<String> warnings, ProgressCallback progressCallback)
void calculateXmlMapperGenerator(AbstractJavaClientGenerator javaClientGenerator, List<String> warnings, ProgressCallback progressCallback)
void initializeAbstractGenerator(AbstractGenerator abstractGenerator, List<String> warnings, ProgressCallback progressCallback)
[Expand]
Inherited Methods
From class org.mybatis.generator.api.IntrospectedTable
From class java.lang.Object

Fields

protected List<AbstractJavaGenerator> clientGenerators

protected List<AbstractJavaGenerator> javaModelGenerators

protected AbstractXmlGenerator xmlMapperGenerator

Public Constructors

public IntrospectedTableMyBatis3Impl ()

Public Methods

public void calculateGenerators (List<String> warnings, ProgressCallback progressCallback)

This method can be used to initialize the generators before they will be called. This method is called after all the setX methods, but before getNumberOfSubtasks(), getGeneratedJavaFiles, and getGeneratedXmlFiles.

public List<GeneratedJavaFile> getGeneratedJavaFiles ()

This method should return a list of generated Java files related to this table. This list could include various types of model classes, as well as DAO classes.

Returns
  • the list of generated Java files for this table

public List<GeneratedXmlFile> getGeneratedXmlFiles ()

This method should return a list of generated XML files related to this table. Most implementations will only return one file - the generated SqlMap file.

Returns
  • the list of generated XML files for this table

public int getGenerationSteps ()

This method should return the number of progress messages that will be send during the generation phase.

Returns
  • the number of progress messages

public boolean isJava5Targeted ()

Denotes whether generated code is targeted for Java version 5.0 or higher.

Returns
  • true if the generated code makes use of Java5 features

public boolean requiresXMLGenerator ()

Should return true if an XML generator is required for this table. This method will be called during validation of the configuration, so it should not rely on database introspection. This method simply tells the validator if an XML configuration is normally required for this implementation.

Protected Methods

protected AbstractJavaClientGenerator calculateClientGenerators (List<String> warnings, ProgressCallback progressCallback)

Returns
  • true if an XML generator is required

protected void calculateJavaModelGenerators (List<String> warnings, ProgressCallback progressCallback)

protected void calculateXmlMapperGenerator (AbstractJavaClientGenerator javaClientGenerator, List<String> warnings, ProgressCallback progressCallback)

protected void initializeAbstractGenerator (AbstractGenerator abstractGenerator, List<String> warnings, ProgressCallback progressCallback)