类 UpsertPlugin
- java.lang.Object
-
- org.mybatis.generator.api.PluginAdapter
-
- pro.leaco.mybatis.generator.plugins.utils.BasePlugin
-
- pro.leaco.mybatis.generator.plugins.UpsertPlugin
-
- 所有已实现的接口:
org.mybatis.generator.api.Plugin
public class UpsertPlugin extends BasePlugin
--------------------------------------------------------------------------- 存在即更新插件 --------------------------------------------------------------------------- ---------------------------------------------------------------------------
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringMETHOD_BATCH_UPSERTstatic StringMETHOD_BATCH_UPSERT_SELECTIVEstatic StringMETHOD_BATCH_UPSERT_WITH_BLOBSstatic StringMETHOD_UPSERTstatic StringMETHOD_UPSERT_BY_EXAMPLEstatic StringMETHOD_UPSERT_BY_EXAMPLE_SELECTIVEstatic StringMETHOD_UPSERT_BY_EXAMPLE_WITH_BLOBSstatic StringMETHOD_UPSERT_SELECTIVEstatic StringMETHOD_UPSERT_WITH_BLOBSstatic StringPRO_ALLOW_BATCH_UPSERTstatic StringPRO_ALLOW_MULTI_QUERIES-
从类继承的字段 pro.leaco.mybatis.generator.plugins.utils.BasePlugin
commentGenerator, logger, mybatisVersion, PRO_MYBATIS_VERSION, warnings
-
-
构造器概要
构造器 构造器 说明 UpsertPlugin()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanclientGenerated(org.mybatis.generator.api.dom.java.Interface interfaze, org.mybatis.generator.api.IntrospectedTable introspectedTable)Java Client Methods 生成 具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.htmlbooleansqlMapDocumentGenerated(org.mybatis.generator.api.dom.xml.Document document, org.mybatis.generator.api.IntrospectedTable introspectedTable)SQL Map Methods 生成 具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.htmlbooleanvalidate(List<String> warnings)-
从类继承的方法 pro.leaco.mybatis.generator.plugins.utils.BasePlugin
initialized, setContext
-
从类继承的方法 org.mybatis.generator.api.PluginAdapter
clientBasicCountMethodGenerated, clientBasicDeleteMethodGenerated, clientBasicInsertMethodGenerated, 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, modelBaseRecordClassGenerated, modelExampleClassGenerated, modelFieldGenerated, modelGetterMethodGenerated, modelPrimaryKeyClassGenerated, modelRecordWithBLOBsClassGenerated, modelSetterMethodGenerated, providerApplyWhereMethodGenerated, providerCountByExampleMethodGenerated, providerDeleteByExampleMethodGenerated, providerGenerated, providerInsertSelectiveMethodGenerated, providerSelectByExampleWithBLOBsMethodGenerated, providerSelectByExampleWithoutBLOBsMethodGenerated, providerUpdateByExampleSelectiveMethodGenerated, providerUpdateByExampleWithBLOBsMethodGenerated, providerUpdateByExampleWithoutBLOBsMethodGenerated, providerUpdateByPrimaryKeySelectiveMethodGenerated, setProperties, sqlMapBaseColumnListElementGenerated, sqlMapBlobColumnListElementGenerated, sqlMapCountByExampleElementGenerated, sqlMapDeleteByExampleElementGenerated, sqlMapDeleteByPrimaryKeyElementGenerated, sqlMapExampleWhereClauseElementGenerated, sqlMapGenerated, sqlMapInsertElementGenerated, sqlMapInsertSelectiveElementGenerated, sqlMapResultMapWithBLOBsElementGenerated, sqlMapResultMapWithoutBLOBsElementGenerated, sqlMapSelectAllElementGenerated, sqlMapSelectByExampleWithBLOBsElementGenerated, sqlMapSelectByExampleWithoutBLOBsElementGenerated, sqlMapSelectByPrimaryKeyElementGenerated, sqlMapUpdateByExampleSelectiveElementGenerated, sqlMapUpdateByExampleWithBLOBsElementGenerated, sqlMapUpdateByExampleWithoutBLOBsElementGenerated, sqlMapUpdateByPrimaryKeySelectiveElementGenerated, sqlMapUpdateByPrimaryKeyWithBLOBsElementGenerated, sqlMapUpdateByPrimaryKeyWithoutBLOBsElementGenerated
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.mybatis.generator.api.Plugin
clientBasicCountMethodGenerated, 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, mapperGenerated
-
-
-
-
字段详细资料
-
METHOD_BATCH_UPSERT_WITH_BLOBS
public static final String METHOD_BATCH_UPSERT_WITH_BLOBS
- 另请参阅:
- 常量字段值
-
METHOD_UPSERT_BY_EXAMPLE_WITH_BLOBS
public static final String METHOD_UPSERT_BY_EXAMPLE_WITH_BLOBS
- 另请参阅:
- 常量字段值
-
METHOD_UPSERT_BY_EXAMPLE_SELECTIVE
public static final String METHOD_UPSERT_BY_EXAMPLE_SELECTIVE
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
validate
public boolean validate(List<String> warnings)
- 指定者:
validate在接口中org.mybatis.generator.api.Plugin- 覆盖:
validate在类中BasePlugin
-
clientGenerated
public boolean clientGenerated(org.mybatis.generator.api.dom.java.Interface interfaze, org.mybatis.generator.api.IntrospectedTable introspectedTable)Java Client Methods 生成 具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.html- 指定者:
clientGenerated在接口中org.mybatis.generator.api.Plugin- 覆盖:
clientGenerated在类中org.mybatis.generator.api.PluginAdapter- 参数:
interfaze-introspectedTable-- 返回:
-
sqlMapDocumentGenerated
public boolean sqlMapDocumentGenerated(org.mybatis.generator.api.dom.xml.Document document, org.mybatis.generator.api.IntrospectedTable introspectedTable)SQL Map Methods 生成 具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.html- 指定者:
sqlMapDocumentGenerated在接口中org.mybatis.generator.api.Plugin- 覆盖:
sqlMapDocumentGenerated在类中org.mybatis.generator.api.PluginAdapter- 参数:
document-introspectedTable-- 返回:
-
-