org.apache.ibatis.ibator.generator.ibatis2
Class IntrospectedTableIbatis2Java2Impl

java.lang.Object
  extended by org.apache.ibatis.ibator.api.IntrospectedTable
      extended by org.apache.ibatis.ibator.generator.ibatis2.IntrospectedTableIbatis2Java2Impl
Direct Known Subclasses:
IntrospectedTableIbatis2Java5Impl

public class IntrospectedTableIbatis2Java2Impl
extends IntrospectedTable

Author:
Jeff Butler

Field Summary
protected  java.util.List<AbstractJavaGenerator> daoGenerators
           
protected  java.util.List<AbstractJavaGenerator> javaModelGenerators
           
protected  AbstractXmlGenerator sqlMapGenerator
           
 
Fields inherited from class org.apache.ibatis.ibator.api.IntrospectedTable
ATTR_BASE_RECORD_TYPE, ATTR_DAO_IMPLEMENTATION_PACKAGE, ATTR_DAO_IMPLEMENTATION_TYPE, ATTR_DAO_INTERFACE_PACKAGE, ATTR_DAO_INTERFACE_TYPE, ATTR_EXAMPLE_TYPE, ATTR_JAVA_MODEL_PACKAGE, ATTR_PRIMARY_KEY_TYPE, ATTR_RECORD_WITH_BLOBS_TYPE, ATTR_SQL_MAP_FILE_NAME, ATTR_SQL_MAP_PACKAGE, attributes, baseColumns, blobColumns, fullyQualifiedTable, ibatorContext, primaryKeyColumns, rules, tableConfiguration
 
Constructor Summary
IntrospectedTableIbatis2Java2Impl()
           
 
Method Summary
protected  void calculateDAOGenerators(java.util.List<java.lang.String> warnings, ProgressCallback progressCallback)
           
 void calculateGenerators(java.util.List<java.lang.String> warnings, ProgressCallback progressCallback)
          This method can be used to initialize the generators before they will be called.
protected  void calculateJavaModelGenerators(java.util.List<java.lang.String> warnings, ProgressCallback progressCallback)
           
protected  void calculateSqlMapGenerator(java.util.List<java.lang.String> warnings, ProgressCallback progressCallback)
           
 java.util.List<GeneratedJavaFile> getGeneratedJavaFiles()
          This method should return a list of generated Java files related to this table.
 java.util.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.
protected  void initializeAbstractGenerator(AbstractGenerator abstractGenerator, java.util.List<java.lang.String> warnings, ProgressCallback progressCallback)
           
 boolean isJava5Targeted()
          Denotes whether generated code is targeted for Java version 5.0 or higher.
 
Methods inherited from class org.apache.ibatis.ibator.api.IntrospectedTable
addColumn, addPrimaryKeyColumn, getAllColumns, getAttribute, getBaseColumns, getBaseRecordType, getBLOBColumns, getColumn, getDAOImplementationPackage, getDAOImplementationType, getDAOInterfacePackage, getDAOInterfaceType, getExampleType, getFullyQualifiedTable, getGeneratedKey, getJavaModelPackage, getNonBLOBColumnCount, getNonBLOBColumns, getNonPrimaryKeyColumns, getPrimaryKeyColumns, getPrimaryKeyType, getRecordWithBLOBsType, getRules, getSelectByExampleQueryId, getSelectByPrimaryKeyQueryId, getSqlMapFileName, getSqlMapPackage, getTableConfigurationProperty, hasAnyColumns, hasBaseColumns, hasBLOBColumns, hasJDBCDateColumns, hasJDBCTimeColumns, hasPrimaryKeyColumns, initialize, removeAttribute, setAttribute, setFullyQualifiedTable, setIbatorContext, setRules, setTableConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

javaModelGenerators

protected java.util.List<AbstractJavaGenerator> javaModelGenerators

daoGenerators

protected java.util.List<AbstractJavaGenerator> daoGenerators

sqlMapGenerator

protected AbstractXmlGenerator sqlMapGenerator
Constructor Detail

IntrospectedTableIbatis2Java2Impl

public IntrospectedTableIbatis2Java2Impl()
Method Detail

calculateGenerators

public void calculateGenerators(java.util.List<java.lang.String> warnings,
                                ProgressCallback progressCallback)
Description copied from class: IntrospectedTable
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.

Specified by:
calculateGenerators in class IntrospectedTable

calculateSqlMapGenerator

protected void calculateSqlMapGenerator(java.util.List<java.lang.String> warnings,
                                        ProgressCallback progressCallback)

calculateDAOGenerators

protected void calculateDAOGenerators(java.util.List<java.lang.String> warnings,
                                      ProgressCallback progressCallback)

calculateJavaModelGenerators

protected void calculateJavaModelGenerators(java.util.List<java.lang.String> warnings,
                                            ProgressCallback progressCallback)

initializeAbstractGenerator

protected void initializeAbstractGenerator(AbstractGenerator abstractGenerator,
                                           java.util.List<java.lang.String> warnings,
                                           ProgressCallback progressCallback)

getGeneratedJavaFiles

public java.util.List<GeneratedJavaFile> getGeneratedJavaFiles()
Description copied from class: IntrospectedTable
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.

Specified by:
getGeneratedJavaFiles in class IntrospectedTable
Returns:
the list of generated Java files for this table

getGeneratedXmlFiles

public java.util.List<GeneratedXmlFile> getGeneratedXmlFiles()
Description copied from class: IntrospectedTable
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.

Specified by:
getGeneratedXmlFiles in class IntrospectedTable
Returns:
the list of generated XML files for this table

isJava5Targeted

public boolean isJava5Targeted()
Description copied from class: IntrospectedTable
Denotes whether generated code is targeted for Java version 5.0 or higher.

Specified by:
isJava5Targeted in class IntrospectedTable
Returns:
true if the generated code makes use of Java5 features

getGenerationSteps

public int getGenerationSteps()
Description copied from class: IntrospectedTable
This method should return the number of progress messages that will be send during the generation phase.

Specified by:
getGenerationSteps in class IntrospectedTable
Returns:
the number of progress messages