public class BridgeLiMysqlClientGeneratorPlugin
extends org.mybatis.generator.api.PluginAdapter
| 构造器和说明 |
|---|
BridgeLiMysqlClientGeneratorPlugin() |
| 限定符和类型 | 方法和说明 |
|---|---|
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添加注释
|
java.util.List<org.mybatis.generator.api.GeneratedJavaFile> |
contextGenerateAdditionalJavaFiles(org.mybatis.generator.api.IntrospectedTable introspectedTable)
添加 xxxMapperExt.java
|
java.util.List<org.mybatis.generator.api.GeneratedXmlFile> |
contextGenerateAdditionalXmlFiles(org.mybatis.generator.api.IntrospectedTable introspectedTable)
生成xxxExt.xml
|
static void |
main(java.lang.String[] args) |
boolean |
modelFieldGenerated(org.mybatis.generator.api.dom.java.Field field,
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) |
boolean |
sqlMapDocumentGenerated(org.mybatis.generator.api.dom.xml.Document document,
org.mybatis.generator.api.IntrospectedTable introspectedTable)
添删改默认 mapper.xml 中的sql语句及属性
|
boolean |
sqlMapUpdateByPrimaryKeySelectiveElementGenerated(org.mybatis.generator.api.dom.xml.XmlElement element,
org.mybatis.generator.api.IntrospectedTable introspectedTable)
修改 gmt_create, modifier 等的查改语句
|
boolean |
validate(java.util.List<java.lang.String> warnings)
This plugin is always valid - no properties are required
|
clientCountByExampleMethodGenerated, clientCountByExampleMethodGenerated, clientDeleteByExampleMethodGenerated, clientDeleteByExampleMethodGenerated, clientDeleteByPrimaryKeyMethodGenerated, clientDeleteByPrimaryKeyMethodGenerated, clientInsertMethodGenerated, clientInsertMethodGenerated, clientInsertSelectiveMethodGenerated, clientInsertSelectiveMethodGenerated, clientSelectAllMethodGenerated, clientSelectAllMethodGenerated, clientSelectByExampleWithBLOBsMethodGenerated, clientSelectByExampleWithBLOBsMethodGenerated, clientSelectByExampleWithoutBLOBsMethodGenerated, clientSelectByExampleWithoutBLOBsMethodGenerated, clientSelectByPrimaryKeyMethodGenerated, clientSelectByPrimaryKeyMethodGenerated, clientUpdateByExampleSelectiveMethodGenerated, clientUpdateByExampleSelectiveMethodGenerated, clientUpdateByExampleWithBLOBsMethodGenerated, clientUpdateByExampleWithBLOBsMethodGenerated, clientUpdateByExampleWithoutBLOBsMethodGenerated, clientUpdateByExampleWithoutBLOBsMethodGenerated, clientUpdateByPrimaryKeySelectiveMethodGenerated, clientUpdateByPrimaryKeySelectiveMethodGenerated, clientUpdateByPrimaryKeyWithBLOBsMethodGenerated, clientUpdateByPrimaryKeyWithBLOBsMethodGenerated, clientUpdateByPrimaryKeyWithoutBLOBsMethodGenerated, clientUpdateByPrimaryKeyWithoutBLOBsMethodGenerated, contextGenerateAdditionalJavaFiles, contextGenerateAdditionalXmlFiles, getContext, getProperties, initialized, modelBaseRecordClassGenerated, modelExampleClassGenerated, modelGetterMethodGenerated, modelPrimaryKeyClassGenerated, modelRecordWithBLOBsClassGenerated, modelSetterMethodGenerated, providerApplyWhereMethodGenerated, providerCountByExampleMethodGenerated, providerDeleteByExampleMethodGenerated, providerGenerated, providerInsertSelectiveMethodGenerated, providerSelectByExampleWithBLOBsMethodGenerated, providerSelectByExampleWithoutBLOBsMethodGenerated, providerUpdateByExampleSelectiveMethodGenerated, providerUpdateByExampleWithBLOBsMethodGenerated, providerUpdateByExampleWithoutBLOBsMethodGenerated, providerUpdateByPrimaryKeySelectiveMethodGenerated, setContext, setProperties, sqlMapBaseColumnListElementGenerated, sqlMapBlobColumnListElementGenerated, sqlMapCountByExampleElementGenerated, sqlMapDeleteByExampleElementGenerated, sqlMapDeleteByPrimaryKeyElementGenerated, sqlMapExampleWhereClauseElementGenerated, sqlMapGenerated, sqlMapInsertElementGenerated, sqlMapInsertSelectiveElementGenerated, sqlMapResultMapWithBLOBsElementGenerated, sqlMapResultMapWithoutBLOBsElementGenerated, sqlMapSelectAllElementGenerated, sqlMapSelectByExampleWithBLOBsElementGenerated, sqlMapSelectByExampleWithoutBLOBsElementGenerated, sqlMapSelectByPrimaryKeyElementGenerated, sqlMapUpdateByExampleSelectiveElementGenerated, sqlMapUpdateByExampleWithBLOBsElementGenerated, sqlMapUpdateByExampleWithoutBLOBsElementGenerated, sqlMapUpdateByPrimaryKeyWithBLOBsElementGenerated, sqlMapUpdateByPrimaryKeyWithoutBLOBsElementGeneratedpublic 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 在接口中 org.mybatis.generator.api.PluginclientGenerated 在类中 org.mybatis.generator.api.PluginAdapterpublic boolean modelFieldGenerated(org.mybatis.generator.api.dom.java.Field field,
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)
modelFieldGenerated 在接口中 org.mybatis.generator.api.PluginmodelFieldGenerated 在类中 org.mybatis.generator.api.PluginAdapterpublic java.util.List<org.mybatis.generator.api.GeneratedJavaFile> contextGenerateAdditionalJavaFiles(org.mybatis.generator.api.IntrospectedTable introspectedTable)
contextGenerateAdditionalJavaFiles 在接口中 org.mybatis.generator.api.PlugincontextGenerateAdditionalJavaFiles 在类中 org.mybatis.generator.api.PluginAdapterpublic java.util.List<org.mybatis.generator.api.GeneratedXmlFile> contextGenerateAdditionalXmlFiles(org.mybatis.generator.api.IntrospectedTable introspectedTable)
contextGenerateAdditionalXmlFiles 在接口中 org.mybatis.generator.api.PlugincontextGenerateAdditionalXmlFiles 在类中 org.mybatis.generator.api.PluginAdapterpublic boolean sqlMapDocumentGenerated(org.mybatis.generator.api.dom.xml.Document document,
org.mybatis.generator.api.IntrospectedTable introspectedTable)
sqlMapDocumentGenerated 在接口中 org.mybatis.generator.api.PluginsqlMapDocumentGenerated 在类中 org.mybatis.generator.api.PluginAdapterpublic boolean sqlMapUpdateByPrimaryKeySelectiveElementGenerated(org.mybatis.generator.api.dom.xml.XmlElement element,
org.mybatis.generator.api.IntrospectedTable introspectedTable)
sqlMapUpdateByPrimaryKeySelectiveElementGenerated 在接口中 org.mybatis.generator.api.PluginsqlMapUpdateByPrimaryKeySelectiveElementGenerated 在类中 org.mybatis.generator.api.PluginAdapterpublic boolean validate(java.util.List<java.lang.String> warnings)
public static void main(java.lang.String[] args)
Copyright © 2018. All Rights Reserved.