Class MethodMetadataHelper
java.lang.Object
io.jmix.core.impl.repository.support.method_metadata.MethodMetadataHelper
Contains
MethodMetadata
analyse logic such as ApplyConstraints
determination.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CrudMethodMetadata
collectMethodMetadata
(Method method, Class<?> repositoryInterface) static ApplyConstraints
determineApplyConstraints
(Method method, Class<?> repositoryInterface) DeterminesApplyConstraints
for particular repository query as follows: look for annotation on method hierarchy starting frommethod
; if not found, search through repository interface hierarchy starting from specifiedrepositoryInterface
; annotation from baseJmixDataRepository
will be returned if no other annotation determined on application repositoriesstatic Map<String,
Serializable> determineQueryHints
(Method method)
-
Constructor Details
-
MethodMetadataHelper
public MethodMetadataHelper()
-
-
Method Details
-
collectMethodMetadata
-
determineApplyConstraints
public static ApplyConstraints determineApplyConstraints(Method method, Class<?> repositoryInterface) DeterminesApplyConstraints
for particular repository query as follows:- look for annotation on method hierarchy starting from
method
; - if not found, search through repository interface hierarchy starting from specified
repositoryInterface
; - annotation from base
JmixDataRepository
will be returned if no other annotation determined on application repositories
Based on logic for
Transactional
annotation as determined inorg.springframework.data.repository.core.support.TransactionalRepositoryProxyPostProcessor.RepositoryAnnotationTransactionAttributeSource#computeTransactionAttribute(java.lang.reflect.Method, java.lang.Class)
- Parameters:
method
- for which search performedrepositoryInterface
- that currently instantiating- Returns:
- ApplyConstraints
- Throws:
RuntimeException
- in case ofrepositoryInterface
is not inherited from JmixDataRepository
- look for annotation on method hierarchy starting from
-
determineQueryHints
-