org.mybatis.generator.codegen.mybatis3
Class IntrospectedTableMyBatis3Impl
java.lang.Object
org.mybatis.generator.api.IntrospectedTable
org.mybatis.generator.codegen.mybatis3.IntrospectedTableMyBatis3Impl
- Direct Known Subclasses:
- IntrospectedTableMyBatis3SimpleImpl
public class IntrospectedTableMyBatis3Impl
- extends IntrospectedTable
- Author:
- Jeff Butler
Methods inherited from class org.mybatis.generator.api.IntrospectedTable |
addColumn, addPrimaryKeyColumn, calculateIbatis2SqlMapFileName, calculateIbatis2SqlMapNamespace, calculateJavaClientAttributes, calculateJavaClientImplementationPackage, calculateJavaClientInterfacePackage, calculateJavaModelPackage, calculateModelAttributes, calculateMyBatis3FallbackSqlMapNamespace, calculateMyBatis3XmlMapperFileName, calculateSqlMapAliasedFullyQualifiedRuntimeTableName, calculateSqlMapFullyQualifiedRuntimeTableName, calculateSqlMapPackage, calculateXmlAttributes, getAliasedFullyQualifiedTableNameAtRuntime, getAllColumns, getAttribute, getBaseColumnListId, getBaseColumns, getBaseRecordType, getBaseResultMapId, getBlobColumnListId, getBLOBColumns, getColumn, getContext, getCountByExampleStatementId, getDAOImplementationType, getDAOInterfaceType, getDeleteByExampleStatementId, getDeleteByPrimaryKeyStatementId, getExampleType, getExampleWhereClauseId, getFullyQualifiedTable, getFullyQualifiedTableNameAtRuntime, getGeneratedKey, getIbatis2SqlMapFileName, getIbatis2SqlMapNamespace, getIbatis2SqlMapPackage, getInsertSelectiveStatementId, getInsertStatementId, getMyBatis3FallbackSqlMapNamespace, getMyBatis3JavaMapperType, getMyBatis3SqlMapNamespace, getMyBatis3SqlProviderType, getMyBatis3UpdateByExampleWhereClauseId, getMyBatis3XmlMapperFileName, getMyBatis3XmlMapperPackage, getNonBLOBColumnCount, getNonBLOBColumns, getNonPrimaryKeyColumns, getPrimaryKeyColumns, getPrimaryKeyType, getRecordWithBLOBsType, getResultMapWithBLOBsId, getRules, getSelectAllStatementId, getSelectByExampleQueryId, getSelectByExampleStatementId, getSelectByExampleWithBLOBsStatementId, getSelectByPrimaryKeyQueryId, getSelectByPrimaryKeyStatementId, getTableConfiguration, getTableConfigurationProperty, getTargetRuntime, getUpdateByExampleSelectiveStatementId, getUpdateByExampleStatementId, getUpdateByExampleWithBLOBsStatementId, getUpdateByPrimaryKeySelectiveStatementId, getUpdateByPrimaryKeyStatementId, getUpdateByPrimaryKeyWithBLOBsStatementId, hasAnyColumns, hasBaseColumns, hasBLOBColumns, hasJDBCDateColumns, hasJDBCTimeColumns, hasPrimaryKeyColumns, initialize, isConstructorBased, isImmutable, removeAttribute, setAttribute, setBaseColumnListId, setBaseRecordType, setBaseResultMapId, setBlobColumnListId, setContext, setCountByExampleStatementId, setDAOImplementationType, setDAOInterfaceType, setDeleteByExampleStatementId, setDeleteByPrimaryKeyStatementId, setExampleType, setExampleWhereClauseId, setFullyQualifiedTable, setIbatis2SqlMapFileName, setIbatis2SqlMapNamespace, setIbatis2SqlMapPackage, setInsertSelectiveStatementId, setInsertStatementId, setMyBatis3FallbackSqlMapNamespace, setMyBatis3JavaMapperType, setMyBatis3SqlProviderType, setMyBatis3UpdateByExampleWhereClauseId, setMyBatis3XmlMapperFileName, setMyBatis3XmlMapperPackage, setPrimaryKeyType, setRecordWithBLOBsType, setResultMapWithBLOBsId, setRules, setSelectAllStatementId, setSelectByExampleStatementId, setSelectByExampleWithBLOBsStatementId, setSelectByPrimaryKeyStatementId, setSqlMapAliasedFullyQualifiedRuntimeTableName, setSqlMapFullyQualifiedRuntimeTableName, setTableConfiguration, setUpdateByExampleSelectiveStatementId, setUpdateByExampleStatementId, setUpdateByExampleWithBLOBsStatementId, setUpdateByPrimaryKeySelectiveStatementId, setUpdateByPrimaryKeyStatementId, setUpdateByPrimaryKeyWithBLOBsStatementId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
javaModelGenerators
protected List<AbstractJavaGenerator> javaModelGenerators
clientGenerators
protected List<AbstractJavaGenerator> clientGenerators
xmlMapperGenerator
protected AbstractXmlGenerator xmlMapperGenerator
IntrospectedTableMyBatis3Impl
public IntrospectedTableMyBatis3Impl()
calculateGenerators
public void calculateGenerators(List<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
calculateXmlMapperGenerator
protected void calculateXmlMapperGenerator(AbstractJavaClientGenerator javaClientGenerator,
List<String> warnings,
ProgressCallback progressCallback)
calculateClientGenerators
protected AbstractJavaClientGenerator calculateClientGenerators(List<String> warnings,
ProgressCallback progressCallback)
- Parameters:
warnings
- progressCallback
-
- Returns:
- true if an XML generator is required
createJavaClientGenerator
protected AbstractJavaClientGenerator createJavaClientGenerator()
calculateJavaModelGenerators
protected void calculateJavaModelGenerators(List<String> warnings,
ProgressCallback progressCallback)
initializeAbstractGenerator
protected void initializeAbstractGenerator(AbstractGenerator abstractGenerator,
List<String> warnings,
ProgressCallback progressCallback)
getGeneratedJavaFiles
public 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 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
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
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
requiresXMLGenerator
public boolean requiresXMLGenerator()
- Description copied from class:
IntrospectedTable
- 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.
- Specified by:
requiresXMLGenerator
in class IntrospectedTable
- Returns:
Copyright © 2010-2012 MyBatis.org. All Rights Reserved.