public class PrimaryKeyPlugin
extends org.mybatis.generator.api.PluginAdapter
| 构造器和说明 |
|---|
PrimaryKeyPlugin() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addMethodInsertMultipleWithGeneratedKeys(org.mybatis.generator.api.dom.java.Interface interfaze,
org.mybatis.generator.api.IntrospectedTable introspectedTable,
String primaryKey)
return ids - 1
|
void |
addMethodInsertMultipleWithGeneratedKeysDefault(org.mybatis.generator.api.dom.java.Interface interfaze,
org.mybatis.generator.api.IntrospectedTable introspectedTable)
return ids - 2
|
boolean |
clientBasicInsertMethodGenerated(org.mybatis.generator.api.dom.java.Method method,
org.mybatis.generator.api.dom.java.Interface interfaze,
org.mybatis.generator.api.IntrospectedTable introspectedTable)
单个记录insert 添加返回id主键
|
boolean |
clientGenerated(org.mybatis.generator.api.dom.java.Interface interfaze,
org.mybatis.generator.api.IntrospectedTable introspectedTable)
Mapper接口 扩展
|
void |
insertMultipleWithGeneratedKeys(org.mybatis.generator.api.dom.java.Interface interfaze,
org.mybatis.generator.api.IntrospectedTable introspectedTable)
return ids - 3
|
void |
interfazeImports(org.mybatis.generator.api.dom.java.Interface interfaze)
添加依赖import
|
boolean |
validate(List<String> list) |
clientBasicCountMethodGenerated, clientBasicDeleteMethodGenerated, clientBasicInsertMultipleHelperMethodGenerated, clientBasicInsertMultipleMethodGenerated, clientBasicSelectManyMethodGenerated, clientBasicSelectOneMethodGenerated, clientBasicUpdateMethodGenerated, clientCountByExampleMethodGenerated, clientDeleteByExampleMethodGenerated, clientDeleteByPrimaryKeyMethodGenerated, clientGeneralCountMethodGenerated, clientGeneralDeleteMethodGenerated, clientGeneralSelectDistinctMethodGenerated, clientGeneralSelectMethodGenerated, clientGeneralUpdateMethodGenerated, clientInsertMethodGenerated, clientInsertMultipleMethodGenerated, clientInsertSelectiveMethodGenerated, clientSelectAllMethodGenerated, clientSelectByExampleWithBLOBsMethodGenerated, clientSelectByExampleWithoutBLOBsMethodGenerated, clientSelectByPrimaryKeyMethodGenerated, clientSelectListFieldGenerated, clientSelectOneMethodGenerated, clientUpdateAllColumnsMethodGenerated, clientUpdateByExampleSelectiveMethodGenerated, clientUpdateByExampleWithBLOBsMethodGenerated, clientUpdateByExampleWithoutBLOBsMethodGenerated, clientUpdateByPrimaryKeySelectiveMethodGenerated, clientUpdateByPrimaryKeyWithBLOBsMethodGenerated, clientUpdateByPrimaryKeyWithoutBLOBsMethodGenerated, clientUpdateSelectiveColumnsMethodGenerated, contextGenerateAdditionalJavaFiles, contextGenerateAdditionalJavaFiles, contextGenerateAdditionalXmlFiles, contextGenerateAdditionalXmlFiles, dynamicSqlSupportGenerated, getContext, getProperties, initialized, modelBaseRecordClassGenerated, modelExampleClassGenerated, modelFieldGenerated, modelGetterMethodGenerated, modelPrimaryKeyClassGenerated, modelRecordWithBLOBsClassGenerated, modelSetterMethodGenerated, providerApplyWhereMethodGenerated, providerCountByExampleMethodGenerated, providerDeleteByExampleMethodGenerated, providerGenerated, providerInsertSelectiveMethodGenerated, providerSelectByExampleWithBLOBsMethodGenerated, providerSelectByExampleWithoutBLOBsMethodGenerated, providerUpdateByExampleSelectiveMethodGenerated, providerUpdateByExampleWithBLOBsMethodGenerated, providerUpdateByExampleWithoutBLOBsMethodGenerated, providerUpdateByPrimaryKeySelectiveMethodGenerated, setContext, setProperties, sqlMapBaseColumnListElementGenerated, sqlMapBlobColumnListElementGenerated, sqlMapCountByExampleElementGenerated, sqlMapDeleteByExampleElementGenerated, sqlMapDeleteByPrimaryKeyElementGenerated, sqlMapDocumentGenerated, sqlMapExampleWhereClauseElementGenerated, sqlMapGenerated, sqlMapInsertElementGenerated, sqlMapInsertSelectiveElementGenerated, sqlMapResultMapWithBLOBsElementGenerated, sqlMapResultMapWithoutBLOBsElementGenerated, sqlMapSelectAllElementGenerated, sqlMapSelectByExampleWithBLOBsElementGenerated, sqlMapSelectByExampleWithoutBLOBsElementGenerated, sqlMapSelectByPrimaryKeyElementGenerated, sqlMapUpdateByExampleSelectiveElementGenerated, sqlMapUpdateByExampleWithBLOBsElementGenerated, sqlMapUpdateByExampleWithoutBLOBsElementGenerated, sqlMapUpdateByPrimaryKeySelectiveElementGenerated, sqlMapUpdateByPrimaryKeyWithBLOBsElementGenerated, sqlMapUpdateByPrimaryKeyWithoutBLOBsElementGeneratedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclientBasicCountMethodGenerated, clientBasicDeleteMethodGenerated, clientBasicInsertMethodGenerated, clientBasicInsertMultipleHelperMethodGenerated, clientBasicInsertMultipleMethodGenerated, clientBasicSelectManyMethodGenerated, clientBasicSelectOneMethodGenerated, clientBasicUpdateMethodGenerated, clientColumnListPropertyGenerated, clientDeleteByPrimaryKeyMethodGenerated, clientGeneralCountMethodGenerated, clientGeneralDeleteMethodGenerated, clientGeneralSelectDistinctMethodGenerated, clientGeneralSelectMethodGenerated, clientGeneralUpdateMethodGenerated, clientInsertMethodGenerated, clientInsertMultipleMethodGenerated, clientInsertMultipleVarargMethodGenerated, clientInsertSelectiveMethodGenerated, clientSelectByPrimaryKeyMethodGenerated, clientSelectOneMethodGenerated, clientUpdateAllColumnsMethodGenerated, clientUpdateByPrimaryKeyMethodGenerated, clientUpdateByPrimaryKeySelectiveMethodGenerated, clientUpdateSelectiveColumnsMethodGenerated, contextGenerateAdditionalKotlinFiles, contextGenerateAdditionalKotlinFiles, dynamicSqlSupportGenerated, kotlinDataClassGenerated, mapperExtensionsGenerated, mapperGeneratedpublic boolean clientBasicInsertMethodGenerated(org.mybatis.generator.api.dom.java.Method method,
org.mybatis.generator.api.dom.java.Interface interfaze,
org.mybatis.generator.api.IntrospectedTable introspectedTable)
clientBasicInsertMethodGenerated 在接口中 org.mybatis.generator.api.PluginclientBasicInsertMethodGenerated 在类中 org.mybatis.generator.api.PluginAdaptermethod - interfaze - introspectedTable - public boolean clientGenerated(org.mybatis.generator.api.dom.java.Interface interfaze,
org.mybatis.generator.api.IntrospectedTable introspectedTable)
clientGenerated 在接口中 org.mybatis.generator.api.PluginclientGenerated 在类中 org.mybatis.generator.api.PluginAdapterpublic void interfazeImports(org.mybatis.generator.api.dom.java.Interface interfaze)
interfaze - public void addMethodInsertMultipleWithGeneratedKeys(org.mybatis.generator.api.dom.java.Interface interfaze,
org.mybatis.generator.api.IntrospectedTable introspectedTable,
String primaryKey)
interfaze - introspectedTable - public void addMethodInsertMultipleWithGeneratedKeysDefault(org.mybatis.generator.api.dom.java.Interface interfaze,
org.mybatis.generator.api.IntrospectedTable introspectedTable)
interfaze - introspectedTable - public void insertMultipleWithGeneratedKeys(org.mybatis.generator.api.dom.java.Interface interfaze,
org.mybatis.generator.api.IntrospectedTable introspectedTable)
interfaze - introspectedTable - Copyright © 2020. All rights reserved.