Class EclipseStoreQueryCreator<T>
java.lang.Object
org.springframework.data.repository.query.parser.AbstractQueryCreator<QueryExecutor<T>,AbstractCriteriaNode<T>>
software.xdev.spring.data.eclipse.store.repository.query.EclipseStoreQueryCreator<T>
- Type Parameters:
T- of entities that are queried
@Nonnull
public class EclipseStoreQueryCreator<T>
extends org.springframework.data.repository.query.parser.AbstractQueryCreator<QueryExecutor<T>,AbstractCriteriaNode<T>>
Creates an
QueryExecutor according to the given PartTree. This is done by building a tree with
AbstractCriteriaNodes. Only the root of the tree is returned and therefore evaluated.-
Constructor Summary
ConstructorsConstructorDescriptionEclipseStoreQueryCreator(Class<T> domainClass, org.springframework.data.util.TypeInformation<?> typeInformation, WorkingCopier<T> copier, org.springframework.data.repository.query.parser.PartTree tree, org.springframework.data.repository.query.ParameterAccessor parameters) -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractCriteriaNode<T>and(org.springframework.data.repository.query.parser.Part part, AbstractCriteriaNode<T> base, Iterator<Object> iterator) protected QueryExecutor<T>complete(AbstractCriteriaNode<T> criteria, org.springframework.data.domain.Sort sort) protected AbstractCriteriaNode<T>protected AbstractCriteriaNode<T>or(AbstractCriteriaNode<T> base, AbstractCriteriaNode<T> criteria) Methods inherited from class org.springframework.data.repository.query.parser.AbstractQueryCreator
createQuery, createQuery
-
Constructor Details
-
EclipseStoreQueryCreator
public EclipseStoreQueryCreator(Class<T> domainClass, org.springframework.data.util.TypeInformation<?> typeInformation, WorkingCopier<T> copier, org.springframework.data.repository.query.parser.PartTree tree, org.springframework.data.repository.query.ParameterAccessor parameters)
-
-
Method Details
-
create
@Nonnull protected AbstractCriteriaNode<T> create(@Nonnull org.springframework.data.repository.query.parser.Part part, @Nonnull Iterator<Object> iterator) - Specified by:
createin classorg.springframework.data.repository.query.parser.AbstractQueryCreator<QueryExecutor<T>,AbstractCriteriaNode<T>>
-
and
@Nonnull protected AbstractCriteriaNode<T> and(@Nonnull org.springframework.data.repository.query.parser.Part part, @Nullable AbstractCriteriaNode<T> base, @Nonnull Iterator<Object> iterator) - Specified by:
andin classorg.springframework.data.repository.query.parser.AbstractQueryCreator<QueryExecutor<T>,AbstractCriteriaNode<T>>
-
or
@Nonnull protected AbstractCriteriaNode<T> or(@Nonnull AbstractCriteriaNode<T> base, @Nonnull AbstractCriteriaNode<T> criteria) - Specified by:
orin classorg.springframework.data.repository.query.parser.AbstractQueryCreator<QueryExecutor<T>,AbstractCriteriaNode<T>>
-
complete
@Nonnull protected QueryExecutor<T> complete(AbstractCriteriaNode<T> criteria, @Nonnull org.springframework.data.domain.Sort sort) - Specified by:
completein classorg.springframework.data.repository.query.parser.AbstractQueryCreator<QueryExecutor<T>,AbstractCriteriaNode<T>>
-