public class MapperPlugin extends FalseMethodPlugin
Constructor and Description |
---|
MapperPlugin() |
Modifier and Type | Method and Description |
---|---|
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接口
|
String |
getDelimiterName(String name) |
protected String |
getProperty(String key) |
protected String |
getProperty(String key,
String defaultValue) |
protected Boolean |
getPropertyAsBoolean(String key) |
boolean |
modelBaseRecordClassGenerated(org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass,
org.mybatis.generator.api.IntrospectedTable introspectedTable)
生成基础实体类
|
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相关代码了
|
boolean |
modelPrimaryKeyClassGenerated(org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass,
org.mybatis.generator.api.IntrospectedTable introspectedTable)
生成实体类注解KEY对象
|
boolean |
modelRecordWithBLOBsClassGenerated(org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass,
org.mybatis.generator.api.IntrospectedTable introspectedTable)
生成带BLOB字段的对象
|
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相关代码了
|
void |
setContext(org.mybatis.generator.config.Context context) |
void |
setProperties(Properties properties) |
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
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
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)
clientGenerated
in interface org.mybatis.generator.api.Plugin
clientGenerated
in class org.mybatis.generator.api.PluginAdapter
interfaze
- topLevelClass
- introspectedTable
- 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)
modelGetterMethodGenerated
in interface org.mybatis.generator.api.Plugin
modelGetterMethodGenerated
in class org.mybatis.generator.api.PluginAdapter
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)
modelSetterMethodGenerated
in interface org.mybatis.generator.api.Plugin
modelSetterMethodGenerated
in class org.mybatis.generator.api.PluginAdapter
public boolean modelBaseRecordClassGenerated(org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedTable introspectedTable)
modelBaseRecordClassGenerated
in interface org.mybatis.generator.api.Plugin
modelBaseRecordClassGenerated
in class org.mybatis.generator.api.PluginAdapter
topLevelClass
- introspectedTable
- public boolean modelPrimaryKeyClassGenerated(org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedTable introspectedTable)
modelPrimaryKeyClassGenerated
in interface org.mybatis.generator.api.Plugin
modelPrimaryKeyClassGenerated
in class org.mybatis.generator.api.PluginAdapter
topLevelClass
- introspectedTable
- public boolean modelRecordWithBLOBsClassGenerated(org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedTable introspectedTable)
modelRecordWithBLOBsClassGenerated
in interface org.mybatis.generator.api.Plugin
modelRecordWithBLOBsClassGenerated
in class org.mybatis.generator.api.PluginAdapter
topLevelClass
- introspectedTable
- public void setContext(org.mybatis.generator.config.Context context)
setContext
in interface org.mybatis.generator.api.Plugin
setContext
in class org.mybatis.generator.api.PluginAdapter
public void setProperties(Properties properties)
setProperties
in interface org.mybatis.generator.api.Plugin
setProperties
in class org.mybatis.generator.api.PluginAdapter
Copyright © 2018. All rights reserved.