public class

IntrospectedTableIbatis2Java2Impl

extends IntrospectedTable
java.lang.Object
   ↳ org.mybatis.generator.api.IntrospectedTable
     ↳ org.mybatis.generator.codegen.ibatis2.IntrospectedTableIbatis2Java2Impl
Known Direct Subclasses

Summary

Fields
protected List<AbstractJavaGenerator> daoGenerators
protected List<AbstractJavaGenerator> javaModelGenerators
protected AbstractXmlGenerator sqlMapGenerator
[Expand]
Inherited Fields
From class org.mybatis.generator.api.IntrospectedTable
Public Constructors
IntrospectedTableIbatis2Java2Impl()
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
void calculateDAOGenerators(List<String> warnings, ProgressCallback progressCallback)
void calculateJavaModelGenerators(List<String> warnings, ProgressCallback progressCallback)
void calculateSqlMapGenerator(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> daoGenerators

protected List<AbstractJavaGenerator> javaModelGenerators

protected AbstractXmlGenerator sqlMapGenerator

Public Constructors

public IntrospectedTableIbatis2Java2Impl ()

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 void calculateDAOGenerators (List<String> warnings, ProgressCallback progressCallback)

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

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

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