public abstract class RelationalQueryCreator<T> extends org.springframework.data.repository.query.parser.AbstractQueryCreator<T,Criteria>
AbstractQueryCreator that creates a query from a PartTree.| Constructor and Description |
|---|
RelationalQueryCreator(org.springframework.data.repository.query.parser.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(org.springframework.data.repository.query.parser.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(org.springframework.data.repository.query.parser.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(org.springframework.data.repository.query.parser.PartTree tree,
org.springframework.data.repository.query.Parameters<?,?> parameters)
Validate parameters for the derived query.
|
public RelationalQueryCreator(org.springframework.data.repository.query.parser.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(org.springframework.data.repository.query.parser.Part part, Iterator<Object> iterator)
Criteria for the given method name part.protected Criteria and(org.springframework.data.repository.query.parser.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(org.springframework.data.repository.query.parser.PartTree tree,
org.springframework.data.repository.query.Parameters<?,?> parameters)
tree - parameters - Copyright © 2017–2023 Pivotal Software, Inc.. All rights reserved.