|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.roo.addon.finder.DynamicFinderServicesImpl
public class DynamicFinderServicesImpl
Default implementation of DynamicFinderServices
.
Constructor Summary | |
---|---|
DynamicFinderServicesImpl()
|
Method Summary | |
---|---|
List<org.springframework.roo.model.JavaSymbolName> |
getFindersFor(org.springframework.roo.addon.beaninfo.BeanInfoMetadata beanInfoMetadata,
String plural,
int maxDepth)
This method provides a convenient generator for all possible combinations of finder method signatures. |
String |
getJpaQueryFor(org.springframework.roo.model.JavaSymbolName finderName,
String plural,
org.springframework.roo.addon.beaninfo.BeanInfoMetadata beanInfoMetadata)
This method generates a named JPA query String to be used in JPA entity manager queries. |
List<org.springframework.roo.model.JavaSymbolName> |
getParameterNames(org.springframework.roo.model.JavaSymbolName finderName,
String plural,
org.springframework.roo.addon.beaninfo.BeanInfoMetadata beanInfoMetadata)
This method should be used in combination with #getJpaQueryFor(JavaSymbolName, BeanInfoMetadata)
in order to find out about the parameter names used in the named JPA query. |
List<org.springframework.roo.model.JavaType> |
getParameterTypes(org.springframework.roo.model.JavaSymbolName finderName,
String plural,
org.springframework.roo.addon.beaninfo.BeanInfoMetadata beanInfoMetadata)
This method should be used in combination with JPA entity manager queries in order to find out about the parameter types used in the named JPA query. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynamicFinderServicesImpl()
Method Detail |
---|
public List<org.springframework.roo.model.JavaSymbolName> getFindersFor(org.springframework.roo.addon.beaninfo.BeanInfoMetadata beanInfoMetadata, String plural, int maxDepth)
DynamicFinderServices
getFindersFor
in interface DynamicFinderServices
beanInfoMetadata
- the metadata for the BeanInfoMetadata
for which the finder signatures combinations are generated. (required)plural
- the pluralised form of the entity name, which is used for finder method names (required)maxDepth
- the depth of combinations used for finder signatures combinations (a depth of 2 will combine a maximum of two attributes from the BeanInfoMetadata
(required)
public String getJpaQueryFor(org.springframework.roo.model.JavaSymbolName finderName, String plural, org.springframework.roo.addon.beaninfo.BeanInfoMetadata beanInfoMetadata)
DynamicFinderServices
getJpaQueryFor
in interface DynamicFinderServices
finderName
- the finder method signature to use. Must be a valid signature. (required)beanInfoMetadata
- the metadata for the BeanInfoMetadata
for which the finder signatures combinations were generated. (required)
public List<org.springframework.roo.model.JavaSymbolName> getParameterNames(org.springframework.roo.model.JavaSymbolName finderName, String plural, org.springframework.roo.addon.beaninfo.BeanInfoMetadata beanInfoMetadata)
DynamicFinderServices
#getJpaQueryFor(JavaSymbolName, BeanInfoMetadata)
in order to find out about the parameter names used in the named JPA query.
getParameterNames
in interface DynamicFinderServices
finderName
- the finder method signature to use. Must be a valid signature. (required)beanInfoMetadata
- the metadata for the BeanInfoMetadata
for which the finder signatures combinations were generated. (required)
JavaSymbolName
array representing the parameter names for the finder method signature presentedpublic List<org.springframework.roo.model.JavaType> getParameterTypes(org.springframework.roo.model.JavaSymbolName finderName, String plural, org.springframework.roo.addon.beaninfo.BeanInfoMetadata beanInfoMetadata)
DynamicFinderServices
getParameterTypes
in interface DynamicFinderServices
finderName
- the finder method signature to use. Must be a valid signature. (required)beanInfoMetadata
- the metadata for the BeanInfoMetadata
for which the finder signatures combinations were generated. (required)
JavaType
array representing the parameter types for the finder method signature presented
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |