public interface IdentityQueryBuilder
The IdentityQueryBuilder is responsible for creating IdentityQuery instances and also
provide methods to create conditions, orderings, sorting, etc.
| Modifier and Type | Method and Description |
|---|---|
Sort |
asc(QueryParameter parameter)
Create an ascending order for the given
parameter. |
Condition |
between(QueryParameter parameter,
Object x,
Object y)
Create a condition for testing whether the query parameter is between the given values.
|
<T extends IdentityType> |
createIdentityQuery(Class<T> identityType)
Create an
IdentityQuery that can be used to query for IdentityType instances of a the given identityType. |
Sort |
desc(QueryParameter parameter)
Create an descending order for the given
parameter. |
Condition |
equal(QueryParameter parameter,
Object value)
Create a condition for testing the arguments for equality.
|
Condition |
greaterThan(QueryParameter parameter,
Object x)
Create a condition for testing whether the query parameter is grater than the given value..
|
Condition |
greaterThanOrEqualTo(QueryParameter parameter,
Object x)
Create a condition for testing whether the query parameter is grater than or equal to the given value..
|
Condition |
in(QueryParameter parameter,
Object... values)
Create a condition for testing whether the query parameter is contained in a list of values.
|
Condition |
lessThan(QueryParameter parameter,
Object x)
Create a condition for testing whether the query parameter is less than the given value..
|
Condition |
lessThanOrEqualTo(QueryParameter parameter,
Object x)
Create a condition for testing whether the query parameter is less than or equal to the given value..
|
Condition |
like(QueryParameter parameter,
String pattern)
Create a condition for testing the whether the query parameter satisfies the given pattern..
|
Condition like(QueryParameter parameter, String pattern)
Create a condition for testing the whether the query parameter satisfies the given pattern..
parameter - The query parameter.pattern - The pattern to match.Condition equal(QueryParameter parameter, Object value)
Create a condition for testing the arguments for equality.
parameter - The query parameter.value - The value to compare.Condition greaterThan(QueryParameter parameter, Object x)
Create a condition for testing whether the query parameter is grater than the given value..
parameter - The query parameter.x - The value to compare.Condition greaterThanOrEqualTo(QueryParameter parameter, Object x)
Create a condition for testing whether the query parameter is grater than or equal to the given value..
parameter - The query parameter.x - The value to compare.Condition lessThan(QueryParameter parameter, Object x)
Create a condition for testing whether the query parameter is less than the given value..
parameter - The query parameter.x - The value to compare.Condition lessThanOrEqualTo(QueryParameter parameter, Object x)
Create a condition for testing whether the query parameter is less than or equal to the given value..
parameter - The query parameter.x - The value to compare.Condition between(QueryParameter parameter, Object x, Object y)
Create a condition for testing whether the query parameter is between the given values.
parameter - The query parameter.x - The first value.x - The second value.Condition in(QueryParameter parameter, Object... values)
Create a condition for testing whether the query parameter is contained in a list of values.
parameter - The query parameter.values - A list of values.Sort asc(QueryParameter parameter)
Create an ascending order for the given parameter. Once created, you can use it to sort the results of a
query.
parameter - The query parameter to sort.Sort desc(QueryParameter parameter)
Create an descending order for the given parameter. Once created, you can use it to sort the results of a
query.
parameter - The query parameter to sort.<T extends IdentityType> IdentityQuery<T> createIdentityQuery(Class<T> identityType)
Create an IdentityQuery that can be used to query for IdentityType instances of a the given identityType.
identityType - The type to search. If you provide the IdentityType
base interface any of its sub-types will be returned.Copyright © 2015 JBoss by Red Hat. All rights reserved.