Class QueryBuilder
java.lang.Object
net.tnemc.plugincore.core.component.builder.QueryBuilder
- All Implemented Interfaces:
ComponentBuilder
QueryBuilder
- Since:
- 1.0.0.2
- Author:
- creatorfromhell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Returns a component builder instance that can be used to build components.Returns the identifier of the component.static QueryBuilder
Creates a QueryBuilder instance with the provided query string.Sets the query for this QueryBuilder instance.with
(QueryParameters parameters) Adds the provided QueryParameters to the current query being built.
-
Constructor Details
-
QueryBuilder
public QueryBuilder() -
QueryBuilder
-
-
Method Details
-
of
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
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
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
Returns the identifier of the component.- Specified by:
identifier
in interfaceComponentBuilder
- 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 interfaceComponentBuilder
- Returns:
- a ComponentBuilder instance.
-