Class QueryBuilderImpl
- All Implemented Interfaces:
QueryBuilder
-
Constructor Summary
ConstructorDescriptionQueryBuilderImpl
(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.boolean
Deprecated.fork()
Deprecated.Creates a deep copy of this builder by cloning the supplied information collected so far.getModel()
Deprecated.int
hashCode()
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:
getModel
in interfaceQueryBuilder
-
build
Deprecated.Description copied from interface:QueryBuilder
Creates a query from the information supplied to this builder. This method can be invoked multiple times on the same query builder.- Specified by:
build
in interfaceQueryBuilder
- Throws:
PersistException
-
fork
Deprecated.Description copied from interface:QueryBuilder
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.
- Specified by:
fork
in interfaceQueryBuilder
- Returns:
- a deep copy of
this
-
where
Deprecated.Description copied from interface:QueryBuilder
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.- Specified by:
where
in 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:QueryBuilder
Conditions added through this method are *not* decorated with any security conditions. User supplied conditions should never be passed to this method.- Specified by:
whereInsecure
in interfaceQueryBuilder
-
where
Deprecated.Description copied from interface:QueryBuilder
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.
- Specified by:
where
in interfaceQueryBuilder
- Returns:
this
-
whereInsecure
Deprecated.Description copied from interface:QueryBuilder
Conditions added through this method are *not* decorated with any security conditions. User supplied conditions should never be passed to this method.- Specified by:
whereInsecure
in interfaceQueryBuilder
-
where
Deprecated.Description copied from interface:QueryBuilder
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.
- Specified by:
where
in interfaceQueryBuilder
- Returns:
this
-
orderBy
Deprecated.Description copied from interface:QueryBuilder
Adds the given order to this builder. Multiple orders are added in the given order.- Specified by:
orderBy
in interfaceQueryBuilder
- Returns:
this
-
orderBy
Deprecated.Description copied from interface:QueryBuilder
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.- Specified by:
orderBy
in 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:QueryBuilder
Converts this into a query string.- Specified by:
toQueryString
in interfaceQueryBuilder
-
orderBy
Deprecated.Description copied from interface:QueryBuilder
Adds the given order to this builder. Multiple orders are added in the given order.- Specified by:
orderBy
in interfaceQueryBuilder
- Returns:
this
-
hashCode
public int hashCode()Deprecated. -
equals
Deprecated.
-