类 MapperPlugin
- java.lang.Object
-
- org.mybatis.generator.api.PluginAdapter
-
- tk.mybatis.mapper.generator.FalseMethodPlugin
-
- tk.mybatis.mapper.generator.MapperPlugin
-
- 所有已实现的接口:
org.mybatis.generator.api.Plugin
public class MapperPlugin extends FalseMethodPlugin
通用Mapper生成器插件- 作者:
- liuzh
-
-
构造器概要
构造器 构造器 说明 MapperPlugin()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanclientGenerated(org.mybatis.generator.api.dom.java.Interface interfaze, org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedTable introspectedTable)生成的Mapper接口StringgetDelimiterName(String name)protected StringgetProperty(String key)protected StringgetProperty(String key, String defaultValue)protected BooleangetPropertyAsBoolean(String key)booleanmodelBaseRecordClassGenerated(org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedTable introspectedTable)生成基础实体类booleanmodelGetterMethodGenerated(org.mybatis.generator.api.dom.java.Method method, org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedColumn introspectedColumn, org.mybatis.generator.api.IntrospectedTable introspectedTable, org.mybatis.generator.api.Plugin.ModelClassType modelClassType)如果需要生成Getter注解,就不需要生成get相关代码了booleanmodelPrimaryKeyClassGenerated(org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedTable introspectedTable)生成实体类注解KEY对象booleanmodelRecordWithBLOBsClassGenerated(org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedTable introspectedTable)生成带BLOB字段的对象booleanmodelSetterMethodGenerated(org.mybatis.generator.api.dom.java.Method method, org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedColumn introspectedColumn, org.mybatis.generator.api.IntrospectedTable introspectedTable, org.mybatis.generator.api.Plugin.ModelClassType modelClassType)如果需要生成Setter注解,就不需要生成set相关代码了voidsetContext(org.mybatis.generator.config.Context context)voidsetProperties(Properties properties)-
从类继承的方法 tk.mybatis.mapper.generator.FalseMethodPlugin
clientDeleteByPrimaryKeyMethodGenerated, clientDeleteByPrimaryKeyMethodGenerated, clientInsertMethodGenerated, clientInsertMethodGenerated, clientInsertSelectiveMethodGenerated, clientInsertSelectiveMethodGenerated, clientSelectAllMethodGenerated, clientSelectAllMethodGenerated, clientSelectByPrimaryKeyMethodGenerated, clientSelectByPrimaryKeyMethodGenerated, clientUpdateByPrimaryKeySelectiveMethodGenerated, clientUpdateByPrimaryKeySelectiveMethodGenerated, clientUpdateByPrimaryKeyWithBLOBsMethodGenerated, clientUpdateByPrimaryKeyWithBLOBsMethodGenerated, clientUpdateByPrimaryKeyWithoutBLOBsMethodGenerated, clientUpdateByPrimaryKeyWithoutBLOBsMethodGenerated, providerApplyWhereMethodGenerated, providerGenerated, providerInsertSelectiveMethodGenerated, providerUpdateByPrimaryKeySelectiveMethodGenerated, sqlMapDeleteByPrimaryKeyElementGenerated, sqlMapInsertElementGenerated, sqlMapInsertSelectiveElementGenerated, sqlMapSelectAllElementGenerated, sqlMapSelectByPrimaryKeyElementGenerated, sqlMapUpdateByPrimaryKeySelectiveElementGenerated, sqlMapUpdateByPrimaryKeyWithBLOBsElementGenerated, sqlMapUpdateByPrimaryKeyWithoutBLOBsElementGenerated, validate
-
从类继承的方法 org.mybatis.generator.api.PluginAdapter
clientBasicCountMethodGenerated, clientBasicDeleteMethodGenerated, clientBasicInsertMethodGenerated, clientBasicSelectManyMethodGenerated, clientBasicSelectOneMethodGenerated, clientBasicUpdateMethodGenerated, clientCountByExampleMethodGenerated, clientCountByExampleMethodGenerated, clientDeleteByExampleMethodGenerated, clientDeleteByExampleMethodGenerated, clientSelectByExampleWithBLOBsMethodGenerated, clientSelectByExampleWithBLOBsMethodGenerated, clientSelectByExampleWithoutBLOBsMethodGenerated, clientSelectByExampleWithoutBLOBsMethodGenerated, clientUpdateByExampleSelectiveMethodGenerated, clientUpdateByExampleSelectiveMethodGenerated, clientUpdateByExampleWithBLOBsMethodGenerated, clientUpdateByExampleWithBLOBsMethodGenerated, clientUpdateByExampleWithoutBLOBsMethodGenerated, clientUpdateByExampleWithoutBLOBsMethodGenerated, contextGenerateAdditionalJavaFiles, contextGenerateAdditionalJavaFiles, contextGenerateAdditionalXmlFiles, contextGenerateAdditionalXmlFiles, getContext, getProperties, initialized, modelExampleClassGenerated, modelFieldGenerated, providerCountByExampleMethodGenerated, providerDeleteByExampleMethodGenerated, providerSelectByExampleWithBLOBsMethodGenerated, providerSelectByExampleWithoutBLOBsMethodGenerated, providerUpdateByExampleSelectiveMethodGenerated, providerUpdateByExampleWithBLOBsMethodGenerated, providerUpdateByExampleWithoutBLOBsMethodGenerated, sqlMapBaseColumnListElementGenerated, sqlMapBlobColumnListElementGenerated, sqlMapCountByExampleElementGenerated, sqlMapDeleteByExampleElementGenerated, sqlMapDocumentGenerated, sqlMapExampleWhereClauseElementGenerated, sqlMapGenerated, sqlMapResultMapWithBLOBsElementGenerated, sqlMapResultMapWithoutBLOBsElementGenerated, sqlMapSelectByExampleWithBLOBsElementGenerated, sqlMapSelectByExampleWithoutBLOBsElementGenerated, sqlMapUpdateByExampleSelectiveElementGenerated, sqlMapUpdateByExampleWithBLOBsElementGenerated, sqlMapUpdateByExampleWithoutBLOBsElementGenerated
-
-
-
-
方法详细资料
-
clientGenerated
public boolean clientGenerated(org.mybatis.generator.api.dom.java.Interface interfaze, org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedTable introspectedTable)生成的Mapper接口- 指定者:
clientGenerated在接口中org.mybatis.generator.api.Plugin- 覆盖:
clientGenerated在类中org.mybatis.generator.api.PluginAdapter- 参数:
interfaze-topLevelClass-introspectedTable-- 返回:
-
modelGetterMethodGenerated
public boolean modelGetterMethodGenerated(org.mybatis.generator.api.dom.java.Method method, org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedColumn introspectedColumn, org.mybatis.generator.api.IntrospectedTable introspectedTable, org.mybatis.generator.api.Plugin.ModelClassType modelClassType)如果需要生成Getter注解,就不需要生成get相关代码了- 指定者:
modelGetterMethodGenerated在接口中org.mybatis.generator.api.Plugin- 覆盖:
modelGetterMethodGenerated在类中org.mybatis.generator.api.PluginAdapter
-
modelSetterMethodGenerated
public boolean modelSetterMethodGenerated(org.mybatis.generator.api.dom.java.Method method, org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedColumn introspectedColumn, org.mybatis.generator.api.IntrospectedTable introspectedTable, org.mybatis.generator.api.Plugin.ModelClassType modelClassType)如果需要生成Setter注解,就不需要生成set相关代码了- 指定者:
modelSetterMethodGenerated在接口中org.mybatis.generator.api.Plugin- 覆盖:
modelSetterMethodGenerated在类中org.mybatis.generator.api.PluginAdapter
-
modelBaseRecordClassGenerated
public boolean modelBaseRecordClassGenerated(org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedTable introspectedTable)生成基础实体类- 指定者:
modelBaseRecordClassGenerated在接口中org.mybatis.generator.api.Plugin- 覆盖:
modelBaseRecordClassGenerated在类中org.mybatis.generator.api.PluginAdapter- 参数:
topLevelClass-introspectedTable-- 返回:
-
modelPrimaryKeyClassGenerated
public boolean modelPrimaryKeyClassGenerated(org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedTable introspectedTable)生成实体类注解KEY对象- 指定者:
modelPrimaryKeyClassGenerated在接口中org.mybatis.generator.api.Plugin- 覆盖:
modelPrimaryKeyClassGenerated在类中org.mybatis.generator.api.PluginAdapter- 参数:
topLevelClass-introspectedTable-- 返回:
-
modelRecordWithBLOBsClassGenerated
public boolean modelRecordWithBLOBsClassGenerated(org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedTable introspectedTable)生成带BLOB字段的对象- 指定者:
modelRecordWithBLOBsClassGenerated在接口中org.mybatis.generator.api.Plugin- 覆盖:
modelRecordWithBLOBsClassGenerated在类中org.mybatis.generator.api.PluginAdapter- 参数:
topLevelClass-introspectedTable-- 返回:
-
setContext
public void setContext(org.mybatis.generator.config.Context context)
- 指定者:
setContext在接口中org.mybatis.generator.api.Plugin- 覆盖:
setContext在类中org.mybatis.generator.api.PluginAdapter
-
setProperties
public void setProperties(Properties properties)
- 指定者:
setProperties在接口中org.mybatis.generator.api.Plugin- 覆盖:
setProperties在类中org.mybatis.generator.api.PluginAdapter
-
-