Class AbstractSqlLikeQueryBuilder.QueryState
java.lang.Object
io.micronaut.data.model.query.builder.AbstractSqlLikeQueryBuilder.QueryState
- Enclosing class:
 - AbstractSqlLikeQueryBuilder
 
The state of the query.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionaddAdditionalRequiredParameter(@NonNull String name) Add a required parameter.Applies a join for the given association.@NonNull StringcomputeAlias(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 StringbooleanbooleanChecks if the path is joined already.voidpushParameter(@NonNull BindingParameter bindingParameter, BindingParameter.BindingContext bindingContext) voidpushParameter(@NonNull QueryParameterBinding parameterBinding) Adds query parameter binding.voidsetJoinPaths(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
 
 -