Class AbstractSqlLikeQueryBuilder2.QueryState

java.lang.Object
io.micronaut.data.model.query.builder.sql.AbstractSqlLikeQueryBuilder2.QueryState
Enclosing class:
AbstractSqlLikeQueryBuilder2

@Internal protected final class AbstractSqlLikeQueryBuilder2.QueryState extends Object
The state of the query.
  • Constructor Details

  • Method Details

    • getRootAlias

      @Nullable public @Nullable String getRootAlias()
      Returns:
      The root alias
    • getEntity

      public PersistentEntity getEntity()
      Returns:
      The entity
    • getFinalQuery

      public String getFinalQuery()
    • getQueryParts

      public List<String> getQueryParts()
    • getQuery

      public StringBuilder getQuery()
      Returns:
      The query string
    • isAllowJoins

      public boolean isAllowJoins()
      Returns:
      Does the query allow joins
    • baseQueryDefinition

      public QueryBuilder2.BaseQueryDefinition baseQueryDefinition()
      Returns:
      The query model object
    • findJoinAlias

      @Nullable public @Nullable String findJoinAlias(String path)
    • getJoinAlias

      @NonNull public @NonNull String getJoinAlias(String path)
    • applyJoin

      public void applyJoin(@NonNull @NonNull JoinPath joinPath)
      Applies a join for the given association.
      Parameters:
      joinPath - The join path
    • generateJoinQuery

      public void generateJoinQuery()
      Generates the JOIN query.
    • isJoined

      public boolean isJoined(String associationPath)
      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
    • getParameterBindings

      public List<QueryParameterBinding> getParameterBindings()
      The parameter binding.
      Returns:
      The parameter binding
    • pushParameter

      public void pushParameter(@NonNull @NonNull BindingParameter bindingParameter, @NonNull BindingParameter.BindingContext bindingContext)
    • pushParameter

      public void pushParameter(@NonNull @NonNull QueryParameterBinding parameterBinding)
      Adds query parameter binding.
      Parameters:
      parameterBinding - the query parameter binding
    • getJoinPaths

      public List<JoinPath> getJoinPaths()
    • setJoinPaths

      public void setJoinPaths(List<JoinPath> joinPaths)
    • pushAdditionalParameter

      default void pushAdditionalParameter(@NonNull @NonNull String name)