Package org.springframework.roo.classpath.layers

Examples of org.springframework.roo.classpath.layers.MethodParameter


        assertMethodCall("clinicRepo.findAll()", FIND_ALL_METHOD);
    }

    @Test
    public void testGetFlushAdditions() {
        final MethodParameter entityParameter = new MethodParameter(
                mockTargetEntity, "anything");
        assertMethodCall("clinicRepo.flush()", FLUSH_METHOD, entityParameter);
    }
View Full Code Here


        registerDependency(idAccessor.getDeclaredByMetadataId(),
                metadataIdentificationString);
        registerDependency(idField.getDeclaredByMetadataId(),
                metadataIdentificationString);

        final MethodParameter entityParameter = new MethodParameter(javaType,
                JavaSymbolName.getReservedWordSafeName(javaType));
        final MethodParameter idParameter = new MethodParameter(idType, idField
                .getFieldName().getSymbolName());
        final MethodMetadata versionAccessor = memberDetails
                .getMostConcreteMethodWithTag(VERSION_ACCESSOR_METHOD);
        final MemberTypeAdditions persistMethod = layerService
                .getMemberTypeAdditions(metadataIdentificationString,
View Full Code Here

        final MemberTypeAdditions findMethodAdditions = layerService
                .getMemberTypeAdditions(locatorPhysicalTypeId,
                        CustomDataKeys.FIND_METHOD.name(), entity,
                        identifierType, LAYER_POSITION, !useXmlConfiguration,
                        new MethodParameter(identifierType, "id"));

        JavaType potentialService = null;
        FieldMetadata fieldMetadata = findMethodAdditions.getInvokedField();
        if (fieldMetadata != null) {
            potentialService = fieldMetadata.getFieldType();
View Full Code Here

        final JavaType idType = persistenceMemberLocator
                .getIdentifierType(entity);
        Validate.notNull(idType,
                "Identifier type is not available for entity '%s'", entityName);

        final MethodParameter entityParameter = new MethodParameter(entity,
                "proxy");
        final ClassOrInterfaceTypeDetails request = gwtTypeService
                .lookupRequestFromProxy(proxy);

        final MemberTypeAdditions persistMethodAdditions = layerService
View Full Code Here

            final JavaType domainType, final JavaType idType) {
        final Map<MethodMetadataCustomDataKey, Collection<MethodParameter>> signatures = new LinkedHashMap<MethodMetadataCustomDataKey, Collection<MethodParameter>>();
        final List<MethodParameter> noArgs = Arrays.asList();
        signatures.put(COUNT_ALL_METHOD, noArgs);
        signatures.put(FIND_ALL_METHOD, noArgs);
        signatures.put(FIND_ENTRIES_METHOD, Arrays.asList(new MethodParameter(
                INT_PRIMITIVE, "firstResult"), new MethodParameter(
                INT_PRIMITIVE, "maxResults")));
        signatures.put(FIND_METHOD,
                Arrays.asList(new MethodParameter(idType, "id")));
        final List<MethodParameter> proxyParameterAsList = Arrays
                .asList(new MethodParameter(domainType, "proxy"));
        signatures.put(PERSIST_METHOD, proxyParameterAsList);
        signatures.put(REMOVE_METHOD, proxyParameterAsList);
        return signatures;
    }
View Full Code Here

TOP

Related Classes of org.springframework.roo.classpath.layers.MethodParameter

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.