Class AbstractSqlLikeQueryBuilder.QueryState
java.lang.Object
io.micronaut.data.model.query.builder.AbstractSqlLikeQueryBuilder.QueryState
- Enclosing class:
- AbstractSqlLikeQueryBuilder
The state of the query.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAdditionalRequiredParameter
(@NonNull String name) Add a required parameter.Applies a join for the given association.@NonNull String
computeAlias
(String associationPath) Computes the alias for the given association path given the current state of the joins.The additional required parameters.The parameter binding.getQuery()
@Nullable String
boolean
boolean
Checks if the path is joined already.void
pushParameter
(@NonNull BindingParameter bindingParameter, BindingParameter.BindingContext bindingContext) void
pushParameter
(@NonNull QueryParameterBinding parameterBinding) Adds query parameter binding.void
setJoinPaths
(List<JoinPath> joinPaths) boolean
-
Constructor Details
-
QueryState
-
-
Method Details
-
getRootAlias
- Returns:
- The root alias
-
getEntity
- Returns:
- The entity
-
addAdditionalRequiredParameter
Add a required parameter.- Parameters:
name
- The name- Returns:
- name A placeholder in a query
-
getFinalQuery
-
getQueryParts
-
getQuery
- Returns:
- The query string
-
isAllowJoins
public boolean isAllowJoins()- Returns:
- Does the query allow joins
-
getQueryModel
- Returns:
- The query model object
-
applyJoin
Applies a join for the given association.- Parameters:
jp
- The join path- Returns:
- The alias
-
computeAlias
Computes the alias for the given association path given the current state of the joins.- Parameters:
associationPath
- The association path.- Returns:
- The alias
-
isJoined
Checks if the path is joined already.- Parameters:
associationPath
- The association path.- Returns:
- true if joined
-
shouldEscape
public boolean shouldEscape()- Returns:
- Should escape the query
-
getAdditionalRequiredParameters
The additional required parameters.- Returns:
- The parameters
-
getParameterBindings
The parameter binding.- Returns:
- The parameter binding
-
pushParameter
public void pushParameter(@NonNull @NonNull BindingParameter bindingParameter, @NonNull BindingParameter.BindingContext bindingContext) -
pushParameter
Adds query parameter binding.- Parameters:
parameterBinding
- the query parameter binding
-
getJoinPaths
-
setJoinPaths
-