Class QueryBuilderImpl
- All Implemented Interfaces:
QueryBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionQueryBuilderImpl(TypeManager typeManager, PersistenceService persistenceService, QueryBuilderFactory queryBuilderFactory, ConditionFactory conditionFactory, EntityModel entityModel) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Creates a query from the information supplied to this builder.booleanDeprecated.fork()Deprecated.Creates a deep copy of this builder by cloning the supplied information collected so far.getModel()Deprecated.inthashCode()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... conditions) 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.
-
Constructor Details
-
QueryBuilderImpl
public QueryBuilderImpl(TypeManager typeManager, PersistenceService persistenceService, QueryBuilderFactory queryBuilderFactory, ConditionFactory conditionFactory, EntityModel entityModel) Deprecated.
-
-
Method Details
-
getModel
Deprecated.- Specified by:
getModelin interfaceQueryBuilder
-
build
Deprecated.Description copied from interface:QueryBuilderCreates a query from the information supplied to this builder. This method can be invoked multiple times on the same query builder.- Specified by:
buildin interfaceQueryBuilder- Throws:
PersistException
-
fork
Deprecated.Description copied from interface:QueryBuilderCreates 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.
- Specified by:
forkin interfaceQueryBuilder- Returns:
- a deep copy of
this
-
where
Deprecated.Description copied from interface:QueryBuilderCompiles 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
Conditionsotherwise.- Specified by:
wherein interfaceQueryBuilder- Parameters:
queryPart- a partial query defining a condition. For example`firstname == "myname" and relAddress.label ~= "*test*"`- Throws:
PersistException- See Also:
-
whereInsecure
Deprecated.Description copied from interface:QueryBuilderConditions added through this method are *not* decorated with any security conditions. User supplied conditions should never be passed to this method.- Specified by:
whereInsecurein interfaceQueryBuilder
-
where
Deprecated.Description copied from interface:QueryBuilderAdds the specified condition to the query. Multiple conditions added via this method are joined using the
junction typespecified when this builder has been created.This object is returned for method chaining.
- Specified by:
wherein interfaceQueryBuilder- Returns:
this
-
whereInsecure
Deprecated.Description copied from interface:QueryBuilderConditions added through this method are *not* decorated with any security conditions. User supplied conditions should never be passed to this method.- Specified by:
whereInsecurein interfaceQueryBuilder
-
where
Deprecated.Description copied from interface:QueryBuilderAdds the specified condition to the query. Multiple conditions added via this method are joined using the
junction typespecified when this builder has been created.This object is returned for method chaining.
- Specified by:
wherein interfaceQueryBuilder- Returns:
this
-
orderBy
Deprecated.Description copied from interface:QueryBuilderAdds the given order to this builder. Multiple orders are added in the given order.- Specified by:
orderByin interfaceQueryBuilder- Returns:
this
-
orderBy
Deprecated.Description copied from interface:QueryBuilderCompiles 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
Conditionsotherwise.- Specified by:
orderByin interfaceQueryBuilder- Parameters:
orderQuery- a partial query defining `order by` conditions. For example`firstname asc, relAddress.label desc`.- Throws:
PersistException- See Also:
-
toQueryString
Deprecated.Description copied from interface:QueryBuilderConverts this into a query string.- Specified by:
toQueryStringin interfaceQueryBuilder
-
orderBy
Deprecated.Description copied from interface:QueryBuilderAdds the given order to this builder. Multiple orders are added in the given order.- Specified by:
orderByin interfaceQueryBuilder- Returns:
this
-
hashCode
public int hashCode()Deprecated. -
equals
Deprecated.
-