Examples of copyAdditionsTo()


Examples of org.springframework.roo.classpath.layers.MemberTypeAdditions.copyAdditionsTo()

                    // doesn't contain it, so generate it
                    final MemberTypeAdditions lowerLayerCallAdditions = crudAdditions
                            .get(method);
                    if (lowerLayerCallAdditions != null) {
                        // A lower layer implements it
                        lowerLayerCallAdditions.copyAdditionsTo(builder,
                                governorTypeDetails);
                    }
                    final String body = method.getBody(lowerLayerCallAdditions);
                    final InvocableMemberBodyBuilder bodyBuilder = new InvocableMemberBodyBuilder();
                    bodyBuilder.appendFormalLine(body);
View Full Code Here

Examples of org.springframework.roo.classpath.layers.MemberTypeAdditions.copyAdditionsTo()

    final MemberTypeAdditions persistMethod = crudAdditions
        .get(PERSIST_METHOD);
    if (annotationValues.isCreate() && persistMethod != null) {
      builder.addMethod(getCreateMethod(persistMethod));
      builder.addMethod(getCreateFormMethod(dependentTypes));
      persistMethod.copyAdditionsTo(builder, governorTypeDetails);
    }

    final MemberTypeAdditions countAllMethod = crudAdditions
        .get(COUNT_ALL_METHOD);
    final MemberTypeAdditions findMethod = crudAdditions.get(FIND_METHOD);
View Full Code Here

Examples of org.springframework.roo.classpath.layers.MemberTypeAdditions.copyAdditionsTo()

        && findEntriesSortedMethod != null) {
      builder.addMethod(getListMethod(findAllSortedMethod,
          countAllMethod, findEntriesSortedMethod));
      countAllMethod.copyAdditionsTo(builder, governorTypeDetails);
      findAllSortedMethod.copyAdditionsTo(builder, governorTypeDetails);
      findEntriesSortedMethod.copyAdditionsTo(builder,
          governorTypeDetails);
    }
    // or "list" method
    else if (countAllMethod != null && findAllMethod != null
        && findEntriesMethod != null) {
View Full Code Here

Examples of org.springframework.roo.classpath.layers.MemberTypeAdditions.copyAdditionsTo()

        .get(MERGE_METHOD);
    if (annotationValues.isUpdate() && updateMethod != null
        && findMethod != null) {
      builder.addMethod(getUpdateMethod(updateMethod));
      builder.addMethod(getUpdateFormMethod(idField, findMethod));
      updateMethod.copyAdditionsTo(builder, governorTypeDetails);
    }

    // "delete" method
    final MemberTypeAdditions deleteMethod = crudAdditions
        .get(REMOVE_METHOD);
View Full Code Here

Examples of org.springframework.roo.classpath.layers.MemberTypeAdditions.copyAdditionsTo()

    final MemberTypeAdditions deleteMethod = crudAdditions
        .get(REMOVE_METHOD);
    if (annotationValues.isDelete() && deleteMethod != null
        && findMethod != null) {
      builder.addMethod(getDeleteMethod(idField, deleteMethod, findMethod));
      deleteMethod.copyAdditionsTo(builder, governorTypeDetails);
    }

    if (!dateTypes.isEmpty()) {
      builder.addMethod(getDateTimeFormatHelperMethod());
    }
View Full Code Here

Examples of org.springframework.roo.classpath.layers.MemberTypeAdditions.copyAdditionsTo()

          dependentType.getJavaType());
      bodyBuilder.appendFormalLine("if ("
          + countMethod.getMethodCall() + " == 0) {");
      bodyBuilder.indent();

      countMethod.copyAdditionsTo(builder, governorTypeDetails);

      // Adding string array which has the fieldName at position 0 and the
      // path at position 1
      String dependentTypeName = fieldNamesList.get(fieldPosition)
          .getFieldName().getSymbolName();
View Full Code Here

Examples of org.springframework.roo.classpath.layers.MemberTypeAdditions.copyAdditionsTo()

        @SuppressWarnings("unchecked")
        final Map<MethodMetadataCustomDataKey, MemberTypeAdditions> crudAdditions = (Map<MethodMetadataCustomDataKey, MemberTypeAdditions>) field
                .getCustomData().get(CRUD_ADDITIONS_KEY);
        final MemberTypeAdditions findAllMethod = crudAdditions
                .get(FIND_ALL_METHOD);
        findAllMethod.copyAdditionsTo(builder, governorTypeDetails);
        final String simpleTypeName = field.getFieldType().getSimpleTypeName();

        final InvocableMemberBodyBuilder bodyBuilder = new InvocableMemberBodyBuilder();
        bodyBuilder.appendFormalLine("List<" + simpleTypeName
                + "> suggestions = new ArrayList<" + simpleTypeName + ">();");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.