Class AbstractSqlLikeQueryBuilder.QueryState
java.lang.Object
io.micronaut.data.model.query.builder.AbstractSqlLikeQueryBuilder.QueryState
- Enclosing class:
- AbstractSqlLikeQueryBuilder
The state of the query.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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
 
- 
addAdditionalRequiredParameterAdd a required parameter.- Parameters:
- name- The name
- Returns:
- name A placeholder in a query
 
- 
getFinalQuery
- 
getQueryParts
- 
getQuery- Returns:
- The query string
 
- 
isAllowJoinspublic boolean isAllowJoins()- Returns:
- Does the query allow joins
 
- 
getQueryModel- Returns:
- The query model object
 
- 
applyJoinApplies a join for the given association.- Parameters:
- jp- The join path
- Returns:
- The alias
 
- 
computeAliasComputes the alias for the given association path given the current state of the joins.- Parameters:
- associationPath- The association path.
- Returns:
- The alias
 
- 
isJoinedChecks if the path is joined already.- Parameters:
- associationPath- The association path.
- Returns:
- true if joined
 
- 
shouldEscapepublic boolean shouldEscape()- Returns:
- Should escape the query
 
- 
getAdditionalRequiredParametersThe additional required parameters.- Returns:
- The parameters
 
- 
getParameterBindingsThe parameter binding.- Returns:
- The parameter binding
 
- 
pushParameterpublic void pushParameter(@NonNull @NonNull BindingParameter bindingParameter, @NonNull BindingParameter.BindingContext bindingContext) 
- 
pushParameterAdds query parameter binding.- Parameters:
- parameterBinding- the query parameter binding
 
- 
getJoinPaths
- 
setJoinPaths
 
-