Interface QueryBuilder
- All Known Implementing Classes:
QueryBuilderImpl
build(Context)
creates a new Query
out of the collected information.-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Creates a query from the information supplied to this builder.fork()
Deprecated.Creates a deep copy of this builder by cloning the supplied information collected so far.getModel()
Deprecated.Deprecated.Adds the given order to this builder.Deprecated.Adds the given order to this builder.Deprecated.Compiles the given order-by query, which is only the part after the`order by`
keyword, and adds it to the list of order definitions of this query builder.Deprecated.Converts this into a query string.Deprecated.Adds the specified condition to the query.Deprecated.Adds the specified condition to the query.Deprecated.Compiles the given query part, which is only the part after the`where`
keyword and adds the result as a condition to this query builder.whereInsecure
(Condition... condition) Deprecated.Conditions added through this method are *not* decorated with any security conditions.whereInsecure
(String queryPart) Deprecated.Conditions added through this method are *not* decorated with any security conditions.
-
Method Details
-
getModel
EntityModel getModel()Deprecated. -
toQueryString
String toQueryString()Deprecated.Converts this into a query string. -
build
Deprecated.Creates a query from the information supplied to this builder. This method can be invoked multiple times on the same query builder.- Throws:
PersistException
-
fork
QueryBuilder fork()Deprecated.Creates a deep copy of this builder by cloning the supplied information collected so far. Any modifcations to the returned builder have no effect on this.
- Returns:
- a deep copy of
this
-
where
Deprecated.Adds the specified condition to the query. Multiple conditions added via this method are joined using the
junction type
specified when this builder has been created.This object is returned for method chaining.
- Returns:
this
-
whereInsecure
Deprecated.Conditions added through this method are *not* decorated with any security conditions. User supplied conditions should never be passed to this method. -
where
Deprecated.Adds the specified condition to the query. Multiple conditions added via this method are joined using the
junction type
specified when this builder has been created.This object is returned for method chaining.
- Returns:
this
-
where
Deprecated.Compiles the given query part, which is only the part after the
`where`
keyword and adds the result as a condition to this query builder.Please use this method only if you don't know the condition at compile time. Consider the static helper class
Conditions
otherwise.- Parameters:
queryPart
- a partial query defining a condition. For example`firstname == "myname" and relAddress.label ~= "*test*"`
- See Also:
-
whereInsecure
Deprecated.Conditions added through this method are *not* decorated with any security conditions. User supplied conditions should never be passed to this method. -
orderBy
Deprecated.Adds the given order to this builder. Multiple orders are added in the given order.- Returns:
this
-
orderBy
Deprecated.Adds the given order to this builder. Multiple orders are added in the given order.- Returns:
this
-
orderBy
Deprecated.Compiles the given order-by query, which is only the part after the
`order by`
keyword, and adds it to the list of order definitions of this query builder.Please use this method only if you don't know the order-by condition at compile time. Consider the static helper class
Conditions
otherwise.- Parameters:
orderQuery
- a partial query defining `order by` conditions. For example`firstname asc, relAddress.label desc`
.- Throws:
PersistException
- See Also:
-
QueryBuilderBase