protected void addInsertSelectiveMethod(Interface interfaze) { if (introspectedTable.getRules().generateInsertSelective()) { AbstractJavaMapperMethodGenerator methodGenerator = new InsertSelectiveMethodGenerator(); initializeAndExecuteGenerator(methodGenerator, interfaze); } }
@Override public void addInterfaceElements(Interface interfaze) { Method method = new Method(); method.setReturnType(FullyQualifiedJavaType.getIntInstance()); method.setVisibility(JavaVisibility.PUBLIC); method.setName(introspectedTable.getInsertSelectiveStatementId()); FullyQualifiedJavaType parameterType = introspectedTable.getRules() .calculateAllFieldsClass(); Set<FullyQualifiedJavaType> importedTypes = new TreeSet<FullyQualifiedJavaType>(); importedTypes.add(parameterType); method.addParameter(new Parameter(parameterType, "record")); //$NON-NLS-1$ context.getCommentGenerator().addGeneralMethodComment(method, introspectedTable); addMapperAnnotations(method); if (context.getPlugins().clientInsertSelectiveMethodGenerated( method, interfaze, introspectedTable)) { addExtraImports(interfaze); interfaze.addImportedTypes(importedTypes); interfaze.addMethod(method); } }
@Override public void addInterfaceElements(Interface interfaze) { Set<FullyQualifiedJavaType> importedTypes = new TreeSet<FullyQualifiedJavaType>(); Method method = new Method(); method.setReturnType(FullyQualifiedJavaType.getIntInstance()); method.setVisibility(JavaVisibility.PUBLIC); method.setName(introspectedTable.getInsertSelectiveStatementId()); FullyQualifiedJavaType parameterType = introspectedTable.getRules().calculateAllFieldsClass(); importedTypes.add(parameterType); method.addParameter(new Parameter(parameterType, "record")); //$NON-NLS-1$ context.getCommentGenerator().addGeneralMethodComment(method, introspectedTable,"保存属性不为空的记录"); addMapperAnnotations(interfaze, method); if (context.getPlugins().clientInsertSelectiveMethodGenerated(method, interfaze, introspectedTable)) { interfaze.addImportedTypes(importedTypes); interfaze.addMethod(method); } }
@Override public void addInterfaceElements(Interface interfaze) { Set<FullyQualifiedJavaType> importedTypes = new TreeSet<FullyQualifiedJavaType>(); Method method = new Method(); method.setReturnType(FullyQualifiedJavaType.getIntInstance()); method.setVisibility(JavaVisibility.PUBLIC); method.setName(introspectedTable.getInsertSelectiveStatementId()); FullyQualifiedJavaType parameterType = introspectedTable.getRules() .calculateAllFieldsClass(); importedTypes.add(parameterType); method.addParameter(new Parameter(parameterType, "record")); //$NON-NLS-1$ context.getCommentGenerator().addGeneralMethodComment(method, introspectedTable); addMapperAnnotations(interfaze, method); if (context.getPlugins().clientInsertSelectiveMethodGenerated( method, interfaze, introspectedTable)) { interfaze.addImportedTypes(importedTypes); interfaze.addMethod(method); } }
protected void addInsertSelectiveMethod(Interface interfaze) { if (introspectedTable.getRules().generateInsertSelective()) { AbstractJavaMapperMethodGenerator methodGenerator = new InsertSelectiveMethodGenerator(); initializeAndExecuteGenerator(methodGenerator, interfaze); } }
@Override public void addInterfaceElements(Interface interfaze) { Set<FullyQualifiedJavaType> importedTypes = new TreeSet<FullyQualifiedJavaType>(); Method method = new Method(); method.setReturnType(FullyQualifiedJavaType.getIntInstance()); method.setVisibility(JavaVisibility.PUBLIC); method.setName(introspectedTable.getInsertSelectiveStatementId()); FullyQualifiedJavaType parameterType = introspectedTable.getRules() .calculateAllFieldsClass(); importedTypes.add(parameterType); method.addParameter(new Parameter(parameterType, "record")); //$NON-NLS-1$ context.getCommentGenerator().addGeneralMethodComment(method, introspectedTable); addMapperAnnotations(interfaze, method); if (context.getPlugins().clientInsertSelectiveMethodGenerated( method, interfaze, introspectedTable)) { interfaze.addImportedTypes(importedTypes); interfaze.addMethod(method); } }
protected void addInsertSelectiveMethod(Interface interfaze) { if (introspectedTable.getRules().generateInsertSelective()) { AbstractJavaMapperMethodGenerator methodGenerator = new InsertSelectiveMethodGenerator(); initializeAndExecuteGenerator(methodGenerator, interfaze); } }
protected void addInsertSelectiveMethod(Interface interfaze) { if (introspectedTable.getRules().generateInsertSelective()) { AbstractJavaMapperMethodGenerator methodGenerator = new InsertSelectiveMethodGenerator(); initializeAndExecuteGenerator(methodGenerator, interfaze); } }