Package org.springframework.roo.classpath.details

Examples of org.springframework.roo.classpath.details.MethodMetadataBuilder


        + javaTypePersistenceMetadataHolder
            .getIdentifierAccessorMethod().getMethodName() + "()"
        + (compositePk ? ", String.class)" : ".toString()")
        + ", httpServletRequest);");

    final MethodMetadataBuilder methodBuilder = new MethodMetadataBuilder(
        getId(), Modifier.PUBLIC, methodName, STRING, parameterTypes,
        parameterNames, bodyBuilder);
    methodBuilder.setAnnotations(annotations);
    return methodBuilder;
  }
View Full Code Here


          + javaSymbolNameDateTimeFormatDetailsEntry.getKey()
              .getSymbolName().toLowerCase() + "_date_format\", "
          + pattern + ");");
    }

    return new MethodMetadataBuilder(getId(), 0, methodName,
        VOID_PRIMITIVE,
        AnnotatedJavaType.convertFromJavaTypes(parameterTypes),
        parameterNames, bodyBuilder);
  }
View Full Code Here

    bodyBuilder
        .appendFormalLine("uiModel.addAttribute(\"size\", (size == null) ? \"10\" : size.toString());");
    bodyBuilder.appendFormalLine("return \"redirect:/" + controllerPath
        + "\";");

    final MethodMetadataBuilder methodBuilder = new MethodMetadataBuilder(
        getId(), Modifier.PUBLIC, methodName, STRING, parameterTypes,
        parameterNames, bodyBuilder);
    methodBuilder.setAnnotations(annotations);
    return methodBuilder;
  }
View Full Code Here

    bodyBuilder.indentRemove();
    bodyBuilder.appendFormalLine("} catch ("
        + getShortName(UNSUPPORTED_ENCODING_EXCEPTION) + " uee) {}");
    bodyBuilder.appendFormalLine("return pathSegment;");

    return new MethodMetadataBuilder(getId(), 0, methodName, STRING,
        AnnotatedJavaType.convertFromJavaTypes(parameterTypes),
        parameterNames, bodyBuilder);
  }
View Full Code Here

    if (!dateTypes.isEmpty()) {
      bodyBuilder.appendFormalLine("addDateTimeFormatPatterns(uiModel);");
    }
    bodyBuilder.appendFormalLine("return \"" + controllerPath + "/list\";");

    final MethodMetadataBuilder methodBuilder = new MethodMetadataBuilder(
        getId(), Modifier.PUBLIC, methodName, STRING, parameterTypes,
        parameterNames, bodyBuilder);
    methodBuilder.setAnnotations(annotations);
    return methodBuilder;
  }
View Full Code Here

                + ".values())" + ");");
          }
        }
      }
    }
    return new MethodMetadataBuilder(getId(), 0, methodName,
        VOID_PRIMITIVE,
        AnnotatedJavaType.convertFromJavaTypes(parameterTypes),
        parameterNames, bodyBuilder).build();
  }
View Full Code Here

    bodyBuilder.appendFormalLine("uiModel.addAttribute(\"itemId\", "
        + (compositePk ? "conversionService.convert(" : "")
        + idFieldName + (compositePk ? ", String.class)" : "") + ");");
    bodyBuilder.appendFormalLine("return \"" + controllerPath + "/show\";");

    final MethodMetadataBuilder methodBuilder = new MethodMetadataBuilder(
        getId(), Modifier.PUBLIC, methodName, STRING, parameterTypes,
        parameterNames, bodyBuilder);
    methodBuilder.setAnnotations(annotations);
    return methodBuilder;
  }
View Full Code Here

    bodyBuilder.appendFormalLine("populateEditForm(uiModel, "
        + findMethod.getMethodCall() + ");");
    bodyBuilder.appendFormalLine("return \"" + controllerPath
        + "/update\";");

    final MethodMetadataBuilder methodBuilder = new MethodMetadataBuilder(
        getId(), Modifier.PUBLIC, methodName, STRING, parameterTypes,
        parameterNames, bodyBuilder);
    methodBuilder.setAnnotations(annotations);
    return methodBuilder;
  }
View Full Code Here

        + javaTypePersistenceMetadataHolder
            .getIdentifierAccessorMethod().getMethodName() + "()"
        + (compositePk ? ", String.class)" : ".toString()")
        + ", httpServletRequest);");

    final MethodMetadataBuilder methodBuilder = new MethodMetadataBuilder(
        getId(), Modifier.PUBLIC, methodName, STRING, parameterTypes,
        parameterNames, bodyBuilder);
    methodBuilder.setAnnotations(annotations);
    return methodBuilder;
  }
View Full Code Here

        bodyBuilder.indent();
        bodyBuilder.appendFormalLine("e.printStackTrace();");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");

        final MethodMetadataBuilder methodBuilder = new MethodMetadataBuilder(
                getId(), Modifier.PUBLIC | Modifier.STATIC, methodName,
                JavaType.VOID_PRIMITIVE,
                AnnotatedJavaType.convertFromJavaTypes(parameterType),
                parameterNames, bodyBuilder);
        methodBuilder.addAnnotation(new AnnotationMetadataBuilder(ASYNC));
        return methodBuilder;
    }
View Full Code Here

TOP

Related Classes of org.springframework.roo.classpath.details.MethodMetadataBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.