test_class.file: mybatis-plus-generator/src/test/java/com/baomidou/mybatisplus/generator/config/po/TableInfoTest.java
test_class.identifier: TableInfoTest
test_case.body: @Test
      void processTableTest() {
          TableInfo tableInfo = new TableInfo().setName("user");
          tableInfo.processTable(new StrategyConfig(), new GlobalConfig());
          Assertions.assertFalse(tableInfo.isConvert());
          Assertions.assertEquals("UserMapper", tableInfo.getMapperName());
          Assertions.assertEquals("UserXml", tableInfo.getXmlName());
          Assertions.assertEquals("IUserService", tableInfo.getServiceName());
          Assertions.assertEquals("UserServiceImpl", tableInfo.getServiceImplName());
          Assertions.assertEquals("UserController", tableInfo.getControllerName());
  
          tableInfo = new TableInfo().setName("user");
          tableInfo.processTable(new StrategyConfig(), new GlobalConfig().setEntityName("%sEntity")
              .setXmlName("%sXml").setMapperName("%sDao").setControllerName("%sAction").setServiceName("%sService").setServiceImplName("%sServiceImp"));
          Assertions.assertTrue(tableInfo.isConvert());
          Assertions.assertEquals("UserEntity", tableInfo.getEntityName());
          Assertions.assertEquals("UserDao", tableInfo.getMapperName());
          Assertions.assertEquals("UserXml", tableInfo.getXmlName());
          Assertions.assertEquals("UserService", tableInfo.getServiceName());
          Assertions.assertEquals("UserServiceImp", tableInfo.getServiceImplName());
          Assertions.assertEquals("UserAction", tableInfo.getControllerName());
  
          tableInfo = new TableInfo().setName("user");
          tableInfo.processTable(new StrategyConfig().setNameConvert(new INameConvert() {
              @Override
              public String entityNameConvert(TableInfo tableInfo) {
                  return "E" + tableInfo.getName();
              }
  
              @Override
              public String propertyNameConvert(TableField field) {
                  return field.getName();
              }
          }), new GlobalConfig());
          Assertions.assertTrue(tableInfo.isConvert());
          Assertions.assertEquals("Euser", tableInfo.getEntityName());
      }
test_case.class_method_signature: TableInfoTest.processTableTest()
test_case.full_signature: @Test void processTableTest()
test_case.identifier: processTableTest
test_case.invocations: setName processTable assertFalse isConvert assertEquals getMapperName assertEquals getXmlName assertEquals getServiceName assertEquals getServiceImplName assertEquals getControllerName setName processTable setServiceImplName setServiceName setControllerName setMapperName setXmlName setEntityName assertTrue isConvert assertEquals getEntityName assertEquals getMapperName assertEquals getXmlName assertEquals getServiceName assertEquals getServiceImplName assertEquals getControllerName setName processTable setNameConvert getName getName assertTrue isConvert assertEquals getEntityName
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void processTableTest()
focal_class.declarator: importPackages = new HashSet<>()
focal_class.modifier: private final
focal_class.original_string: private final Set<String> importPackages = new HashSet<>();
focal_class.type: Set<String>
focal_class.var_name: importPackages
focal_class.declarator: convert
focal_class.modifier: private
focal_class.original_string: private boolean convert;
focal_class.type: boolean
focal_class.var_name: convert
focal_class.declarator: name
focal_class.modifier: private
focal_class.original_string: private String name;
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: comment
focal_class.modifier: private
focal_class.original_string: private String comment;
focal_class.type: String
focal_class.var_name: comment
focal_class.declarator: entityName
focal_class.modifier: private
focal_class.original_string: private String entityName;
focal_class.type: String
focal_class.var_name: entityName
focal_class.declarator: mapperName
focal_class.modifier: private
focal_class.original_string: private String mapperName;
focal_class.type: String
focal_class.var_name: mapperName
focal_class.declarator: xmlName
focal_class.modifier: private
focal_class.original_string: private String xmlName;
focal_class.type: String
focal_class.var_name: xmlName
focal_class.declarator: serviceName
focal_class.modifier: private
focal_class.original_string: private String serviceName;
focal_class.type: String
focal_class.var_name: serviceName
focal_class.declarator: serviceImplName
focal_class.modifier: private
focal_class.original_string: private String serviceImplName;
focal_class.type: String
focal_class.var_name: serviceImplName
focal_class.declarator: controllerName
focal_class.modifier: private
focal_class.original_string: private String controllerName;
focal_class.type: String
focal_class.var_name: controllerName
focal_class.declarator: fields = new ArrayList<>()
focal_class.modifier: private final
focal_class.original_string: private final List<TableField> fields = new ArrayList<>();
focal_class.type: List<TableField>
focal_class.var_name: fields
focal_class.declarator: havePrimaryKey
focal_class.modifier: private
focal_class.original_string: private boolean havePrimaryKey;
focal_class.type: boolean
focal_class.var_name: havePrimaryKey
focal_class.declarator: commonFields = new ArrayList<>()
focal_class.modifier: private final
focal_class.original_string: private final List<TableField> commonFields = new ArrayList<>();
focal_class.type: List<TableField>
focal_class.var_name: commonFields
focal_class.declarator: fieldNames
focal_class.modifier: private
focal_class.original_string: private String fieldNames;
focal_class.type: String
focal_class.var_name: fieldNames
focal_class.file: mybatis-plus-generator/src/main/java/com/baomidou/mybatisplus/generator/config/po/TableInfo.java
focal_class.identifier: TableInfo
focal_class.class_method_signature: TableInfo.setConvert(boolean convert)
focal_class.full_signature: @Deprecated public TableInfo setConvert(boolean convert)
focal_class.identifier: setConvert
focal_class.modifiers: @Deprecated public
focal_class.parameters: (boolean convert)
focal_class.return: TableInfo
focal_class.signature: TableInfo setConvert(boolean convert)
focal_class.class_method_signature: TableInfo.setConvert(StrategyConfig strategyConfig)
focal_class.full_signature: protected TableInfo setConvert(StrategyConfig strategyConfig)
focal_class.identifier: setConvert
focal_class.modifiers: protected
focal_class.parameters: (StrategyConfig strategyConfig)
focal_class.return: TableInfo
focal_class.signature: TableInfo setConvert(StrategyConfig strategyConfig)
focal_class.class_method_signature: TableInfo.getEntityPath()
focal_class.full_signature: public String getEntityPath()
focal_class.identifier: getEntityPath
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getEntityPath()
focal_class.class_method_signature: TableInfo.setEntityName(String entityName)
focal_class.full_signature: @Deprecated public TableInfo setEntityName(String entityName)
focal_class.identifier: setEntityName
focal_class.modifiers: @Deprecated public
focal_class.parameters: (String entityName)
focal_class.return: TableInfo
focal_class.signature: TableInfo setEntityName(String entityName)
focal_class.class_method_signature: TableInfo.setEntityName(StrategyConfig strategyConfig, String entityName)
focal_class.full_signature: public TableInfo setEntityName(StrategyConfig strategyConfig, String entityName)
focal_class.identifier: setEntityName
focal_class.modifiers: public
focal_class.parameters: (StrategyConfig strategyConfig, String entityName)
focal_class.return: TableInfo
focal_class.signature: TableInfo setEntityName(StrategyConfig strategyConfig, String entityName)
focal_class.class_method_signature: TableInfo.setFields(List<TableField> fields)
focal_class.full_signature: @Deprecated public TableInfo setFields(List<TableField> fields)
focal_class.identifier: setFields
focal_class.modifiers: @Deprecated public
focal_class.parameters: (List<TableField> fields)
focal_class.return: TableInfo
focal_class.signature: TableInfo setFields(List<TableField> fields)
focal_class.class_method_signature: TableInfo.addFields(List<TableField> fields)
focal_class.full_signature: public TableInfo addFields(List<TableField> fields)
focal_class.identifier: addFields
focal_class.modifiers: public
focal_class.parameters: (List<TableField> fields)
focal_class.return: TableInfo
focal_class.signature: TableInfo addFields(List<TableField> fields)
focal_class.class_method_signature: TableInfo.addFields(TableField... fields)
focal_class.full_signature: public TableInfo addFields(TableField... fields)
focal_class.identifier: addFields
focal_class.modifiers: public
focal_class.parameters: (TableField... fields)
focal_class.return: TableInfo
focal_class.signature: TableInfo addFields(TableField... fields)
focal_class.class_method_signature: TableInfo.setImportPackages(String pkg)
focal_class.full_signature: @Deprecated public TableInfo setImportPackages(String pkg)
focal_class.identifier: setImportPackages
focal_class.modifiers: @Deprecated public
focal_class.parameters: (String pkg)
focal_class.return: TableInfo
focal_class.signature: TableInfo setImportPackages(String pkg)
focal_class.class_method_signature: TableInfo.addImportPackages(String... pkgs)
focal_class.full_signature: public TableInfo addImportPackages(String... pkgs)
focal_class.identifier: addImportPackages
focal_class.modifiers: public
focal_class.parameters: (String... pkgs)
focal_class.return: TableInfo
focal_class.signature: TableInfo addImportPackages(String... pkgs)
focal_class.class_method_signature: TableInfo.isLogicDelete(String logicDeletePropertyName)
focal_class.full_signature: public boolean isLogicDelete(String logicDeletePropertyName)
focal_class.identifier: isLogicDelete
focal_class.modifiers: public
focal_class.parameters: (String logicDeletePropertyName)
focal_class.return: boolean
focal_class.signature: boolean isLogicDelete(String logicDeletePropertyName)
focal_class.class_method_signature: TableInfo.setFieldNames(String fieldNames)
focal_class.full_signature: @Deprecated public TableInfo setFieldNames(String fieldNames)
focal_class.identifier: setFieldNames
focal_class.modifiers: @Deprecated public
focal_class.parameters: (String fieldNames)
focal_class.return: TableInfo
focal_class.signature: TableInfo setFieldNames(String fieldNames)
focal_class.class_method_signature: TableInfo.getFieldNames()
focal_class.full_signature: public String getFieldNames()
focal_class.identifier: getFieldNames
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getFieldNames()
focal_class.class_method_signature: TableInfo.setCommonFields(List<TableField> commonFields)
focal_class.full_signature: @Deprecated public TableInfo setCommonFields(List<TableField> commonFields)
focal_class.identifier: setCommonFields
focal_class.modifiers: @Deprecated public
focal_class.parameters: (List<TableField> commonFields)
focal_class.return: TableInfo
focal_class.signature: TableInfo setCommonFields(List<TableField> commonFields)
focal_class.class_method_signature: TableInfo.addCommonFields(TableField... commonFields)
focal_class.full_signature: public TableInfo addCommonFields(TableField... commonFields)
focal_class.identifier: addCommonFields
focal_class.modifiers: public
focal_class.parameters: (TableField... commonFields)
focal_class.return: TableInfo
focal_class.signature: TableInfo addCommonFields(TableField... commonFields)
focal_class.class_method_signature: TableInfo.addCommonFields(List<TableField> commonFields)
focal_class.full_signature: public TableInfo addCommonFields(List<TableField> commonFields)
focal_class.identifier: addCommonFields
focal_class.modifiers: public
focal_class.parameters: (List<TableField> commonFields)
focal_class.return: TableInfo
focal_class.signature: TableInfo addCommonFields(List<TableField> commonFields)
focal_class.class_method_signature: TableInfo.importPackage(StrategyConfig strategyConfig, GlobalConfig globalConfig)
focal_class.full_signature: public void importPackage(StrategyConfig strategyConfig, GlobalConfig globalConfig)
focal_class.identifier: importPackage
focal_class.modifiers: public
focal_class.parameters: (StrategyConfig strategyConfig, GlobalConfig globalConfig)
focal_class.return: void
focal_class.signature: void importPackage(StrategyConfig strategyConfig, GlobalConfig globalConfig)
focal_class.class_method_signature: TableInfo.processTable(StrategyConfig strategyConfig, GlobalConfig globalConfig)
focal_class.full_signature: public void processTable(StrategyConfig strategyConfig, GlobalConfig globalConfig)
focal_class.identifier: processTable
focal_class.modifiers: public
focal_class.parameters: (StrategyConfig strategyConfig, GlobalConfig globalConfig)
focal_class.return: void
focal_class.signature: void processTable(StrategyConfig strategyConfig, GlobalConfig globalConfig)
focal_class.class_method_signature: TableInfo.getFileName(String entityName, String value, Supplier<String> defaultValue)
focal_class.full_signature: public String getFileName(String entityName, String value, Supplier<String> defaultValue)
focal_class.identifier: getFileName
focal_class.modifiers: public
focal_class.parameters: (String entityName, String value, Supplier<String> defaultValue)
focal_class.return: String
focal_class.signature: String getFileName(String entityName, String value, Supplier<String> defaultValue)
focal_method.body: public void processTable(StrategyConfig strategyConfig, GlobalConfig globalConfig) {
          String entityName = strategyConfig.getNameConvert().entityNameConvert(this);
          this.setEntityName(strategyConfig, this.getFileName(entityName, globalConfig.getEntityName(), () -> entityName));
          this.mapperName = this.getFileName(entityName, globalConfig.getMapperName(), () -> entityName + ConstVal.MAPPER);
          this.xmlName = this.getFileName(entityName, globalConfig.getXmlName(), () -> entityName + ConstVal.XML);
          this.serviceName = this.getFileName(entityName, globalConfig.getServiceName(), () -> "I" + entityName + ConstVal.SERVICE);
          this.serviceImplName = this.getFileName(entityName, globalConfig.getServiceImplName(), () -> entityName + ConstVal.SERVICE_IMPL);
          this.controllerName = this.getFileName(entityName, globalConfig.getControllerName(), () -> entityName + ConstVal.CONTROLLER);
          this.importPackage(strategyConfig, globalConfig);
      }
focal_method.class_method_signature: TableInfo.processTable(StrategyConfig strategyConfig, GlobalConfig globalConfig)
focal_method.full_signature: public void processTable(StrategyConfig strategyConfig, GlobalConfig globalConfig)
focal_method.identifier: processTable
focal_method.invocations: entityNameConvert getNameConvert setEntityName getFileName getEntityName getFileName getMapperName getFileName getXmlName getFileName getServiceName getFileName getServiceImplName getFileName getControllerName importPackage
focal_method.modifiers: public
focal_method.parameters: (StrategyConfig strategyConfig, GlobalConfig globalConfig)
focal_method.return: void
focal_method.signature: void processTable(StrategyConfig strategyConfig, GlobalConfig globalConfig)