org.springframework.roo.classpath.layers
Interface LayerService

All Known Implementing Classes:
LayerServiceImpl

public interface LayerService

Provides upper-layer code (such as MVC, GWT, and tests) with the MemberTypeAdditions they need to make to their source code in order to invoke persistence-related operations such as persist and find.

Since:
1.2.0
Author:
Stefan Schmidt

Method Summary
 MemberTypeAdditions getMemberTypeAdditions(String metadataIdentificationString, String methodIdentifier, org.springframework.roo.model.JavaType targetEntity, org.springframework.roo.model.JavaType idType, int layerPosition, boolean autowire, Collection<? extends MethodParameter> methodParameters)
          Returns source code modifications for a requested operation offered by a layer provider
 MemberTypeAdditions getMemberTypeAdditions(String metadataIdentificationString, String methodIdentifier, org.springframework.roo.model.JavaType targetEntity, org.springframework.roo.model.JavaType idType, int layerPosition, boolean autowire, MethodParameter... methodParameters)
          Returns source code modifications for a requested operation offered by a layer provider
 MemberTypeAdditions getMemberTypeAdditions(String metadataIdentificationString, String methodIdentifier, org.springframework.roo.model.JavaType targetEntity, org.springframework.roo.model.JavaType idType, int layerPosition, Collection<? extends MethodParameter> methodParameters)
          Returns source code modifications for a requested operation offered by a layer provider
 MemberTypeAdditions getMemberTypeAdditions(String metadataIdentificationString, String methodIdentifier, org.springframework.roo.model.JavaType targetEntity, org.springframework.roo.model.JavaType idType, int layerPosition, MethodParameter... methodParameters)
          Returns source code modifications for a requested operation offered by a layer provider
 

Method Detail

getMemberTypeAdditions

MemberTypeAdditions getMemberTypeAdditions(String metadataIdentificationString,
                                           String methodIdentifier,
                                           org.springframework.roo.model.JavaType targetEntity,
                                           org.springframework.roo.model.JavaType idType,
                                           int layerPosition,
                                           Collection<? extends MethodParameter> methodParameters)
Returns source code modifications for a requested operation offered by a layer provider

Parameters:
metadataIdentificationString - Id of calling metadata provider (required)
methodIdentifier - specifies the method which is being requested (required)
targetEntity - specifies the target entity (required)
idType - specifies the ID type used by the target entity (required)
layerPosition - the position of the layer invoking this method
methodParameters - parameters passed in to the method (types and names), if any
Returns:
MemberTypeAdditions if a layer provider can offer this functionality, null otherwise

getMemberTypeAdditions

MemberTypeAdditions getMemberTypeAdditions(String metadataIdentificationString,
                                           String methodIdentifier,
                                           org.springframework.roo.model.JavaType targetEntity,
                                           org.springframework.roo.model.JavaType idType,
                                           int layerPosition,
                                           boolean autowire,
                                           Collection<? extends MethodParameter> methodParameters)
Returns source code modifications for a requested operation offered by a layer provider

Parameters:
metadataIdentificationString - Id of calling metadata provider (required)
methodIdentifier - specifies the method which is being requested (required)
targetEntity - specifies the target entity (required)
idType - specifies the ID type used by the target entity (required)
layerPosition - the position of the layer invoking this method
methodParameters - parameters passed in to the method (types and names), if any
Returns:
MemberTypeAdditions if a layer provider can offer this functionality, null otherwise

getMemberTypeAdditions

MemberTypeAdditions getMemberTypeAdditions(String metadataIdentificationString,
                                           String methodIdentifier,
                                           org.springframework.roo.model.JavaType targetEntity,
                                           org.springframework.roo.model.JavaType idType,
                                           int layerPosition,
                                           MethodParameter... methodParameters)
Returns source code modifications for a requested operation offered by a layer provider

Parameters:
metadataIdentificationString - Id of calling metadata provider (required)
methodIdentifier - specifies the method which is being requested (required)
targetEntity - specifies the target entity (required)
idType - specifies the ID type used by the target entity (required)
layerPosition - the position of the layer invoking this method
methodParameters - parameters passed in to the method (types and names), if any
Returns:
MemberTypeAdditions if a layer provider can offer this functionality, null otherwise

getMemberTypeAdditions

MemberTypeAdditions getMemberTypeAdditions(String metadataIdentificationString,
                                           String methodIdentifier,
                                           org.springframework.roo.model.JavaType targetEntity,
                                           org.springframework.roo.model.JavaType idType,
                                           int layerPosition,
                                           boolean autowire,
                                           MethodParameter... methodParameters)
Returns source code modifications for a requested operation offered by a layer provider

Parameters:
metadataIdentificationString - Id of calling metadata provider (required)
methodIdentifier - specifies the method which is being requested (required)
targetEntity - specifies the target entity (required)
idType - specifies the ID type used by the target entity (required)
layerPosition - the position of the layer invoking this method
methodParameters - parameters passed in to the method (types and names), if any
Returns:
MemberTypeAdditions if a layer provider can offer this functionality, null otherwise


Copyright © 2009–2015. All rights reserved.