org.apache.ibatis.ibator.generator.ibatis2
Class IntrospectedTableIbatis2Java2Impl
java.lang.Object
org.apache.ibatis.ibator.api.IntrospectedTable
org.apache.ibatis.ibator.generator.ibatis2.IntrospectedTableIbatis2Java2Impl
- Direct Known Subclasses:
- IntrospectedTableIbatis2Java5Impl
public class IntrospectedTableIbatis2Java2Impl
- extends IntrospectedTable
- Author:
- Jeff Butler
| Methods inherited from class org.apache.ibatis.ibator.api.IntrospectedTable |
addColumn, addPrimaryKeyColumn, getAllColumns, 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, setFullyQualifiedTable, setIbatorContext, setTableConfiguration |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
javaModelGenerators
protected java.util.List<AbstractJavaGenerator> javaModelGenerators
daoGenerators
protected java.util.List<AbstractJavaGenerator> daoGenerators
sqlMapGenerator
protected AbstractXmlGenerator sqlMapGenerator
IntrospectedTableIbatis2Java2Impl
public IntrospectedTableIbatis2Java2Impl()
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