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, validateclientBasicCountMethodGenerated, 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, sqlMapUpdateByExampleWithoutBLOBsElementGeneratedpublic 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.PluginclientGenerated in class org.mybatis.generator.api.PluginAdapterinterfaze - 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.PluginmodelGetterMethodGenerated in class org.mybatis.generator.api.PluginAdapterpublic 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.PluginmodelSetterMethodGenerated in class org.mybatis.generator.api.PluginAdapterpublic boolean modelBaseRecordClassGenerated(org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass,
org.mybatis.generator.api.IntrospectedTable introspectedTable)
modelBaseRecordClassGenerated in interface org.mybatis.generator.api.PluginmodelBaseRecordClassGenerated in class org.mybatis.generator.api.PluginAdaptertopLevelClass - 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.PluginmodelPrimaryKeyClassGenerated in class org.mybatis.generator.api.PluginAdaptertopLevelClass - 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.PluginmodelRecordWithBLOBsClassGenerated in class org.mybatis.generator.api.PluginAdaptertopLevelClass - introspectedTable - public void setContext(org.mybatis.generator.config.Context context)
setContext in interface org.mybatis.generator.api.PluginsetContext in class org.mybatis.generator.api.PluginAdapterpublic void setProperties(Properties properties)
setProperties in interface org.mybatis.generator.api.PluginsetProperties in class org.mybatis.generator.api.PluginAdapterCopyright © 2018. All rights reserved.