Class QueryBuilder

java.lang.Object
net.tnemc.plugincore.core.component.builder.QueryBuilder
All Implemented Interfaces:
ComponentBuilder

public class QueryBuilder extends Object implements ComponentBuilder
QueryBuilder
Since:
1.0.0.2
Author:
creatorfromhell
  • Constructor Details

  • Method Details

    • of

      public static QueryBuilder of(String query)
      Creates a QueryBuilder instance with the provided query string.
      Parameters:
      query - the query string to create the QueryBuilder with
      Returns:
      a new QueryBuilder instance
    • with

      public QueryBuilder with(QueryParameters parameters)
      Adds the provided QueryParameters to the current query being built.
      Parameters:
      parameters - the QueryParameters to be added to the query
      Returns:
      a reference to this QueryBuilder instance
    • with

      public QueryBuilder with(Query query)
      Sets the query for this QueryBuilder instance.
      Parameters:
      query - the query to be set for this QueryBuilder
      Returns:
      a reference to this QueryBuilder instance
    • identifier

      public String identifier()
      Returns the identifier of the component.
      Specified by:
      identifier in interface ComponentBuilder
      Returns:
      the identifier of the component as a string.
    • builder

      Returns a component builder instance that can be used to build components.
      Specified by:
      builder in interface ComponentBuilder
      Returns:
      a ComponentBuilder instance.