类 FluentBuilderMethodsPlugin

  • 所有已实现的接口:
    org.mybatis.generator.api.Plugin

    public class FluentBuilderMethodsPlugin
    extends org.mybatis.generator.api.PluginAdapter
    This plugin adds fluent builder methods to the generated model classes.

    Example:

    Given the domain class MyDomainClass with setter-method setValue(Object v)

    The plugin will create the additional Method public MyDomainClass withValue(Object v)

    作者:
    Stefan Lack
    • 嵌套类概要

      • 从接口继承的嵌套类/接口 org.mybatis.generator.api.Plugin

        org.mybatis.generator.api.Plugin.ModelClassType
    • 字段概要

      • 从类继承的字段 org.mybatis.generator.api.PluginAdapter

        context, properties
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      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)  
      boolean validate​(List<String> warnings)  
      • 从类继承的方法 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, initialized, modelBaseRecordClassGenerated, modelExampleClassGenerated, modelFieldGenerated, modelGetterMethodGenerated, modelPrimaryKeyClassGenerated, modelRecordWithBLOBsClassGenerated, 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, sqlMapUpdateByPrimaryKeyWithoutBLOBsElementGenerated
      • 从接口继承的方法 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
    • 构造器详细资料

      • FluentBuilderMethodsPlugin

        public FluentBuilderMethodsPlugin()
    • 方法详细资料

      • validate

        public boolean validate​(List<String> warnings)
      • modelSetterMethodGenerated

        public 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 在接口中 org.mybatis.generator.api.Plugin
        覆盖:
        modelSetterMethodGenerated 在类中 org.mybatis.generator.api.PluginAdapter