类 IncrementPlugin
- java.lang.Object
-
- org.mybatis.generator.api.PluginAdapter
-
- pro.leaco.mybatis.generator.plugins.utils.BasePlugin
-
- pro.leaco.mybatis.generator.plugins.IncrementPlugin
-
- 所有已实现的接口:
org.mybatis.generator.api.Plugin,IIncrementPluginHook
public class IncrementPlugin extends BasePlugin implements IIncrementPluginHook
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringCLASS_INCREMENT_ITEMstatic StringENUM_INCREMENTIncrement 类static StringFIELD_COLUMN_FOR_CLASS_INCREMENTstatic StringFIELD_INC_MAP为了防止和用户数据库字段冲突,特殊命名static StringFIELD_OPERATE_FOR_CLASS_INCREMENTstatic StringFIELD_VALUE_FOR_CLASS_INCREMENTstatic StringMETHOD_DECstatic StringMETHOD_INC增减方法static StringMETHOD_INCREMENT自增方法名称static StringPRO_INCREMENT_COLUMNS-
从类继承的字段 pro.leaco.mybatis.generator.plugins.utils.BasePlugin
commentGenerator, logger, mybatisVersion, PRO_MYBATIS_VERSION, warnings
-
-
构造器概要
构造器 构造器 说明 IncrementPlugin()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.mybatis.generator.api.dom.xml.XmlElementgenerateIncrementSet(org.mybatis.generator.api.IntrospectedColumn introspectedColumn, String prefix, boolean hasComma)生成增量操作节点List<org.mybatis.generator.api.dom.xml.XmlElement>generateIncrementSetForSelectiveEnhancedPlugin(List<org.mybatis.generator.api.IntrospectedColumn> columns)生成增量操作节点(SelectiveEnhancedPlugin)org.mybatis.generator.api.dom.xml.XmlElementgenerateIncrementSetSelective(org.mybatis.generator.api.IntrospectedColumn introspectedColumn, String prefix)生成增量操作节点voidinitialized(org.mybatis.generator.api.IntrospectedTable introspectedTable)具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.htmlbooleanmodelBaseRecordClassGenerated(org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedTable introspectedTable)Model Methods 生成 具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.htmlbooleanmodelPrimaryKeyClassGenerated(org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedTable introspectedTable)具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.htmlbooleanmodelRecordWithBLOBsClassGenerated(org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedTable introspectedTable)Model Methods 生成 具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.htmlbooleansqlMapUpdateByExampleSelectiveElementGenerated(org.mybatis.generator.api.dom.xml.XmlElement element, org.mybatis.generator.api.IntrospectedTable introspectedTable)具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.htmlbooleansqlMapUpdateByExampleWithBLOBsElementGenerated(org.mybatis.generator.api.dom.xml.XmlElement element, org.mybatis.generator.api.IntrospectedTable introspectedTable)具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.htmlbooleansqlMapUpdateByExampleWithoutBLOBsElementGenerated(org.mybatis.generator.api.dom.xml.XmlElement element, org.mybatis.generator.api.IntrospectedTable introspectedTable)具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.htmlbooleansqlMapUpdateByPrimaryKeySelectiveElementGenerated(org.mybatis.generator.api.dom.xml.XmlElement element, org.mybatis.generator.api.IntrospectedTable introspectedTable)具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.htmlbooleansqlMapUpdateByPrimaryKeyWithBLOBsElementGenerated(org.mybatis.generator.api.dom.xml.XmlElement element, org.mybatis.generator.api.IntrospectedTable introspectedTable)具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.htmlbooleansqlMapUpdateByPrimaryKeyWithoutBLOBsElementGenerated(org.mybatis.generator.api.dom.xml.XmlElement element, org.mybatis.generator.api.IntrospectedTable introspectedTable)具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.htmlbooleansupportIncrement(org.mybatis.generator.api.IntrospectedColumn column)判断是否为需要进行增量操作的columnbooleanvalidate(List<String> warnings)具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.html-
从类继承的方法 pro.leaco.mybatis.generator.plugins.utils.BasePlugin
setContext
-
从类继承的方法 org.mybatis.generator.api.PluginAdapter
clientBasicCountMethodGenerated, clientBasicDeleteMethodGenerated, clientBasicInsertMethodGenerated, clientBasicInsertMultipleHelperMethodGenerated, clientBasicInsertMultipleMethodGenerated, clientBasicSelectManyMethodGenerated, clientBasicSelectOneMethodGenerated, clientBasicUpdateMethodGenerated, clientCountByExampleMethodGenerated, clientDeleteByExampleMethodGenerated, clientDeleteByPrimaryKeyMethodGenerated, clientGeneralCountMethodGenerated, clientGeneralDeleteMethodGenerated, clientGeneralSelectDistinctMethodGenerated, clientGeneralSelectMethodGenerated, clientGeneralUpdateMethodGenerated, clientGenerated, clientInsertMethodGenerated, clientInsertMultipleMethodGenerated, clientInsertSelectiveMethodGenerated, clientSelectAllMethodGenerated, clientSelectByExampleWithBLOBsMethodGenerated, clientSelectByExampleWithoutBLOBsMethodGenerated, clientSelectByPrimaryKeyMethodGenerated, clientSelectListFieldGenerated, clientSelectOneMethodGenerated, clientUpdateAllColumnsMethodGenerated, clientUpdateByExampleSelectiveMethodGenerated, clientUpdateByExampleWithBLOBsMethodGenerated, clientUpdateByExampleWithoutBLOBsMethodGenerated, clientUpdateByPrimaryKeySelectiveMethodGenerated, clientUpdateByPrimaryKeyWithBLOBsMethodGenerated, clientUpdateByPrimaryKeyWithoutBLOBsMethodGenerated, clientUpdateSelectiveColumnsMethodGenerated, contextGenerateAdditionalJavaFiles, contextGenerateAdditionalJavaFiles, contextGenerateAdditionalXmlFiles, contextGenerateAdditionalXmlFiles, dynamicSqlSupportGenerated, getContext, getProperties, modelExampleClassGenerated, modelFieldGenerated, modelGetterMethodGenerated, modelSetterMethodGenerated, providerApplyWhereMethodGenerated, providerCountByExampleMethodGenerated, providerDeleteByExampleMethodGenerated, providerGenerated, providerInsertSelectiveMethodGenerated, providerSelectByExampleWithBLOBsMethodGenerated, providerSelectByExampleWithoutBLOBsMethodGenerated, providerUpdateByExampleSelectiveMethodGenerated, providerUpdateByExampleWithBLOBsMethodGenerated, providerUpdateByExampleWithoutBLOBsMethodGenerated, providerUpdateByPrimaryKeySelectiveMethodGenerated, setProperties, sqlMapBaseColumnListElementGenerated, sqlMapBlobColumnListElementGenerated, sqlMapCountByExampleElementGenerated, sqlMapDeleteByExampleElementGenerated, sqlMapDeleteByPrimaryKeyElementGenerated, sqlMapDocumentGenerated, sqlMapExampleWhereClauseElementGenerated, sqlMapGenerated, sqlMapInsertElementGenerated, sqlMapInsertSelectiveElementGenerated, sqlMapResultMapWithBLOBsElementGenerated, sqlMapResultMapWithoutBLOBsElementGenerated, sqlMapSelectAllElementGenerated, sqlMapSelectByExampleWithBLOBsElementGenerated, sqlMapSelectByExampleWithoutBLOBsElementGenerated, sqlMapSelectByPrimaryKeyElementGenerated
-
从类继承的方法 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
-
-
-
-
字段详细资料
-
FIELD_COLUMN_FOR_CLASS_INCREMENT
public static final String FIELD_COLUMN_FOR_CLASS_INCREMENT
- 另请参阅:
- 常量字段值
-
FIELD_VALUE_FOR_CLASS_INCREMENT
public static final String FIELD_VALUE_FOR_CLASS_INCREMENT
- 另请参阅:
- 常量字段值
-
FIELD_OPERATE_FOR_CLASS_INCREMENT
public static final String FIELD_OPERATE_FOR_CLASS_INCREMENT
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
validate
public boolean validate(List<String> warnings)
具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.html- 指定者:
validate在接口中org.mybatis.generator.api.Plugin- 覆盖:
validate在类中BasePlugin- 参数:
warnings-- 返回:
-
initialized
public void initialized(org.mybatis.generator.api.IntrospectedTable introspectedTable)
具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.html- 指定者:
initialized在接口中org.mybatis.generator.api.Plugin- 覆盖:
initialized在类中BasePlugin- 参数:
introspectedTable-
-
sqlMapUpdateByExampleSelectiveElementGenerated
public boolean sqlMapUpdateByExampleSelectiveElementGenerated(org.mybatis.generator.api.dom.xml.XmlElement element, org.mybatis.generator.api.IntrospectedTable introspectedTable)具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.html- 指定者:
sqlMapUpdateByExampleSelectiveElementGenerated在接口中org.mybatis.generator.api.Plugin- 覆盖:
sqlMapUpdateByExampleSelectiveElementGenerated在类中org.mybatis.generator.api.PluginAdapter- 参数:
element-introspectedTable-- 返回:
-
sqlMapUpdateByExampleWithBLOBsElementGenerated
public boolean sqlMapUpdateByExampleWithBLOBsElementGenerated(org.mybatis.generator.api.dom.xml.XmlElement element, org.mybatis.generator.api.IntrospectedTable introspectedTable)具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.html- 指定者:
sqlMapUpdateByExampleWithBLOBsElementGenerated在接口中org.mybatis.generator.api.Plugin- 覆盖:
sqlMapUpdateByExampleWithBLOBsElementGenerated在类中org.mybatis.generator.api.PluginAdapter- 参数:
element-introspectedTable-- 返回:
-
sqlMapUpdateByExampleWithoutBLOBsElementGenerated
public boolean sqlMapUpdateByExampleWithoutBLOBsElementGenerated(org.mybatis.generator.api.dom.xml.XmlElement element, org.mybatis.generator.api.IntrospectedTable introspectedTable)具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.html- 指定者:
sqlMapUpdateByExampleWithoutBLOBsElementGenerated在接口中org.mybatis.generator.api.Plugin- 覆盖:
sqlMapUpdateByExampleWithoutBLOBsElementGenerated在类中org.mybatis.generator.api.PluginAdapter- 参数:
element-introspectedTable-- 返回:
-
sqlMapUpdateByPrimaryKeySelectiveElementGenerated
public boolean sqlMapUpdateByPrimaryKeySelectiveElementGenerated(org.mybatis.generator.api.dom.xml.XmlElement element, org.mybatis.generator.api.IntrospectedTable introspectedTable)具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.html- 指定者:
sqlMapUpdateByPrimaryKeySelectiveElementGenerated在接口中org.mybatis.generator.api.Plugin- 覆盖:
sqlMapUpdateByPrimaryKeySelectiveElementGenerated在类中org.mybatis.generator.api.PluginAdapter- 参数:
element-introspectedTable-- 返回:
-
sqlMapUpdateByPrimaryKeyWithBLOBsElementGenerated
public boolean sqlMapUpdateByPrimaryKeyWithBLOBsElementGenerated(org.mybatis.generator.api.dom.xml.XmlElement element, org.mybatis.generator.api.IntrospectedTable introspectedTable)具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.html- 指定者:
sqlMapUpdateByPrimaryKeyWithBLOBsElementGenerated在接口中org.mybatis.generator.api.Plugin- 覆盖:
sqlMapUpdateByPrimaryKeyWithBLOBsElementGenerated在类中org.mybatis.generator.api.PluginAdapter- 参数:
element-introspectedTable-- 返回:
-
sqlMapUpdateByPrimaryKeyWithoutBLOBsElementGenerated
public boolean sqlMapUpdateByPrimaryKeyWithoutBLOBsElementGenerated(org.mybatis.generator.api.dom.xml.XmlElement element, org.mybatis.generator.api.IntrospectedTable introspectedTable)具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.html- 指定者:
sqlMapUpdateByPrimaryKeyWithoutBLOBsElementGenerated在接口中org.mybatis.generator.api.Plugin- 覆盖:
sqlMapUpdateByPrimaryKeyWithoutBLOBsElementGenerated在类中org.mybatis.generator.api.PluginAdapter- 参数:
element-introspectedTable-- 返回:
-
modelBaseRecordClassGenerated
public boolean modelBaseRecordClassGenerated(org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedTable introspectedTable)Model Methods 生成 具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.html- 指定者:
modelBaseRecordClassGenerated在接口中org.mybatis.generator.api.Plugin- 覆盖:
modelBaseRecordClassGenerated在类中org.mybatis.generator.api.PluginAdapter- 参数:
topLevelClass-introspectedTable-- 返回:
-
modelRecordWithBLOBsClassGenerated
public boolean modelRecordWithBLOBsClassGenerated(org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedTable introspectedTable)Model Methods 生成 具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.html- 指定者:
modelRecordWithBLOBsClassGenerated在接口中org.mybatis.generator.api.Plugin- 覆盖:
modelRecordWithBLOBsClassGenerated在类中org.mybatis.generator.api.PluginAdapter- 参数:
topLevelClass-introspectedTable-- 返回:
-
modelPrimaryKeyClassGenerated
public boolean modelPrimaryKeyClassGenerated(org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedTable introspectedTable)具体执行顺序 http://www.mybatis.org/generator/reference/pluggingIn.html- 指定者:
modelPrimaryKeyClassGenerated在接口中org.mybatis.generator.api.Plugin- 覆盖:
modelPrimaryKeyClassGenerated在类中org.mybatis.generator.api.PluginAdapter- 参数:
topLevelClass-introspectedTable-- 返回:
-
generateIncrementSet
public org.mybatis.generator.api.dom.xml.XmlElement generateIncrementSet(org.mybatis.generator.api.IntrospectedColumn introspectedColumn, String prefix, boolean hasComma)从接口复制的说明:IIncrementPluginHook生成增量操作节点- 指定者:
generateIncrementSet在接口中IIncrementPluginHook- 返回:
-
generateIncrementSetSelective
public org.mybatis.generator.api.dom.xml.XmlElement generateIncrementSetSelective(org.mybatis.generator.api.IntrospectedColumn introspectedColumn, String prefix)从接口复制的说明:IIncrementPluginHook生成增量操作节点- 指定者:
generateIncrementSetSelective在接口中IIncrementPluginHook- 返回:
-
generateIncrementSetForSelectiveEnhancedPlugin
public List<org.mybatis.generator.api.dom.xml.XmlElement> generateIncrementSetForSelectiveEnhancedPlugin(List<org.mybatis.generator.api.IntrospectedColumn> columns)
生成增量操作节点(SelectiveEnhancedPlugin)- 指定者:
generateIncrementSetForSelectiveEnhancedPlugin在接口中IIncrementPluginHook- 参数:
columns-- 返回:
-
supportIncrement
public boolean supportIncrement(org.mybatis.generator.api.IntrospectedColumn column)
判断是否为需要进行增量操作的column- 指定者:
supportIncrement在接口中IIncrementPluginHook- 参数:
column-- 返回:
-
-