public class PartTree extends java.lang.Object implements java.lang.Iterable<PartTree.OrPart>
String into a tree or PartTree.OrParts consisting of simple Part instances in turn.
Takes a domain class as well to validate that each of the Parts are referring to a property of the domain
class. The PartTree can then be used to build queries based on its API instead of parsing the method name for
each query execution.| 限定符和类型 | 类和说明 |
|---|---|
static class |
PartTree.OrPart
A part of the parsed source that results from splitting up the resource around Or keywords.
|
| 构造器和说明 |
|---|
PartTree(java.lang.String source)
Creates a new
PartTree by parsing the given String. |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Integer |
getMaxResults()
Return the number of maximal results to return or null if not restricted.
|
java.lang.Iterable<Part> |
getParts()
Returns an
Iterable of all parts contained in the PartTree. |
java.lang.Iterable<Part> |
getParts(Part.Type type)
|
Sort |
getSort()
Returns the
Sort specification parsed from the source or null. |
java.lang.Boolean |
isCountProjection()
Returns whether a count projection shall be applied.
|
java.lang.Boolean |
isDelete()
return true if the created
PartTree is meant to be used for delete operation. |
boolean |
isDistinct()
Returns whether we indicate distinct lookup of entities.
|
java.lang.Boolean |
isExistsProjection()
Returns whether an exists projection shall be applied.
|
boolean |
isLimiting()
Return true if the create
PartTree is meant to be used for a query with limited maximal results. |
java.util.Iterator<PartTree.OrPart> |
iterator() |
java.lang.String |
toString() |
public PartTree(java.lang.String source)
PartTree by parsing the given String.source - the String to parsedomainClass - the domain class to check individual parts against to ensure they refer to a property of the
classpublic java.util.Iterator<PartTree.OrPart> iterator()
iterator 在接口中 java.lang.Iterable<PartTree.OrPart>public Sort getSort()
Sort specification parsed from the source or null.public boolean isDistinct()
public java.lang.Boolean isCountProjection()
public java.lang.Boolean isExistsProjection()
public java.lang.Boolean isDelete()
PartTree is meant to be used for delete operation.public boolean isLimiting()
PartTree is meant to be used for a query with limited maximal results.public java.lang.Integer getMaxResults()
public java.lang.Iterable<Part> getParts()
Iterable of all parts contained in the PartTree.Partspublic java.lang.String toString()
toString 在类中 java.lang.ObjectCopyright © 2020. All Rights Reserved.