public class MethodMetadataHelper
extends java.lang.Object
MethodMetadata
analyse logic such as ApplyConstraints
determination.Constructor and Description |
---|
MethodMetadataHelper() |
Modifier and Type | Method and Description |
---|---|
static CrudMethodMetadata |
collectMethodMetadata(java.lang.reflect.Method method,
java.lang.Class<?> repositoryInterface) |
static ApplyConstraints |
determineApplyConstraints(java.lang.reflect.Method method,
java.lang.Class<?> repositoryInterface)
Determines
ApplyConstraints 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
|
static java.util.Map<java.lang.String,java.io.Serializable> |
determineQueryHints(java.lang.reflect.Method method) |
public static CrudMethodMetadata collectMethodMetadata(java.lang.reflect.Method method, java.lang.Class<?> repositoryInterface)
public static ApplyConstraints determineApplyConstraints(java.lang.reflect.Method method, java.lang.Class<?> repositoryInterface)
ApplyConstraints
for particular repository query as follows:
method
;repositoryInterface
;JmixDataRepository
will be returned if no other annotation determined on application repositories
Based on logic for Transactional
annotation as determined in org.springframework.data.repository.core.support.TransactionalRepositoryProxyPostProcessor.RepositoryAnnotationTransactionAttributeSource#computeTransactionAttribute(java.lang.reflect.Method, java.lang.Class)
method
- for which search performedrepositoryInterface
- that currently instantiatingjava.lang.RuntimeException
- in case of repositoryInterface
is not inherited from JmixDataRepositorypublic static java.util.Map<java.lang.String,java.io.Serializable> determineQueryHints(java.lang.reflect.Method method)