public abstract class RelationalQueryCreator<T> extends AbstractQueryCreator<T,Criteria>
AbstractQueryCreator that creates a query from a PartTree.| Constructor and Description |
|---|
RelationalQueryCreator(PartTree tree,
RelationalParameterAccessor accessor)
Creates new instance of this class with the given
PartTree, RelationalEntityMetadata and
ParameterMetadataProvider. |
| Modifier and Type | Method and Description |
|---|---|
protected Criteria |
and(Part part,
Criteria base,
Iterator<Object> iterator)
Combines the given
Criteria with the new one created for the given method name part using AND. |
protected Criteria |
create(Part part,
Iterator<Object> iterator)
Creates
Criteria for the given method name part. |
protected Criteria |
or(Criteria base,
Criteria criteria)
Combines two
Criterias using OR. |
static void |
validate(PartTree tree,
Parameters<?,?> parameters)
Validate parameters for the derived query.
|
complete, createQuery, createQuerypublic RelationalQueryCreator(PartTree tree, RelationalParameterAccessor accessor)
PartTree, RelationalEntityMetadata and
ParameterMetadataProvider.tree - part tree, must not be null.accessor - parameter metadata provider, must not be null.protected Criteria create(Part part, Iterator<Object> iterator)
Criteria for the given method name part.create in class AbstractQueryCreator<T,Criteria>part - method name part, must not be null.iterator - iterator over query parameter valuesCriteriaprotected Criteria and(Part part, Criteria base, Iterator<Object> iterator)
Criteria with the new one created for the given method name part using AND.public static void validate(PartTree tree, Parameters<?,?> parameters)
tree - parameters - Copyright © 2017–2021 Pivotal Software, Inc.. All rights reserved.