SparqlBuilder
instead.@Deprecated public class AbstractQueryBuilder<T extends ParsedQuery> extends Object implements QueryBuilder<T>
Base implementation of a QueryBuilder.
Modifier and Type | Field and Description |
---|---|
protected List<StatementPattern> |
mProjectionPatterns
Deprecated.
|
protected List<String> |
mProjectionVars
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
QueryBuilder<T> |
addGroup(Group theGroup)
Deprecated.
Add this group from the query
|
QueryBuilder<T> |
addProjectionStatement(IRI theSubj,
IRI thePred,
String theObj)
Deprecated.
|
QueryBuilder<T> |
addProjectionStatement(IRI theSubj,
String thePred,
String theObj)
Deprecated.
|
QueryBuilder<T> |
addProjectionStatement(String theSubj,
IRI thePred,
String theObj)
Deprecated.
|
QueryBuilder<T> |
addProjectionStatement(String theSubj,
IRI thePred,
Value theObj)
Deprecated.
|
QueryBuilder<T> |
addProjectionStatement(String theSubj,
String thePred,
String theObj)
Deprecated.
|
QueryBuilder<T> |
addProjectionStatement(String theSubj,
String thePred,
Value theObj)
Deprecated.
|
QueryBuilder<T> |
addProjectionStatement(String theSubj,
Value thePred,
Value theObj)
Deprecated.
|
QueryBuilder<T> |
addProjectionVar(String... theNames)
Deprecated.
Add projection variables to the query
|
QueryBuilder<T> |
distinct()
Deprecated.
Specify that this query should use the "distinct" keyword
|
QueryBuilder<T> |
from(IRI theURI)
Deprecated.
Add a from clause to this query
|
QueryBuilder<T> |
fromNamed(IRI theURI)
Deprecated.
Add a 'from named' clause to this query
|
GroupBuilder<T,QueryBuilder<T>> |
group()
Deprecated.
Create a new sub-group of the query
|
QueryBuilder<T> |
limit(int theLimit)
Deprecated.
Specify a limit for the query
|
QueryBuilder<T> |
offset(int theOffset)
Deprecated.
Specify an offset for the query
|
GroupBuilder<T,QueryBuilder<T>> |
optional()
Deprecated.
Create an option sub-group
|
QueryBuilder<T> |
orderBy(String... theNames)
Deprecated.
Specify ORDER BY clause with ASC modifier by default
|
QueryBuilder<T> |
orderByAsc(String... theNames)
Deprecated.
Specify ORDER BY clause with ASC modifier
|
QueryBuilder<T> |
orderByDesc(String... theNames)
Deprecated.
Specify ORDER BY clause with DESC modifier
|
T |
query()
Deprecated.
Return the query constructed by this query builder
|
QueryBuilder<T> |
reduced()
Deprecated.
Specify that this query should use the "reduced" keyword
|
QueryBuilder<T> |
removeGroup(Group theGroup)
Deprecated.
Remove this group from the query
|
void |
reset()
Deprecated.
Reset the state of the query builder
|
protected List<StatementPattern> mProjectionPatterns
public void reset()
QueryBuilder
reset
in interface QueryBuilder<T extends ParsedQuery>
public T query()
QueryBuilder
query
in interface QueryBuilder<T extends ParsedQuery>
public QueryBuilder<T> fromNamed(IRI theURI)
QueryBuilder
fromNamed
in interface QueryBuilder<T extends ParsedQuery>
theURI
- the graph URIpublic QueryBuilder<T> from(IRI theURI)
QueryBuilder
from
in interface QueryBuilder<T extends ParsedQuery>
theURI
- the from URIpublic QueryBuilder<T> distinct()
QueryBuilder
distinct
in interface QueryBuilder<T extends ParsedQuery>
public QueryBuilder<T> reduced()
QueryBuilder
reduced
in interface QueryBuilder<T extends ParsedQuery>
public QueryBuilder<T> addProjectionVar(String... theNames)
QueryBuilder
addProjectionVar
in interface QueryBuilder<T extends ParsedQuery>
theNames
- the names of the variables to add to the projectionpublic QueryBuilder<T> addProjectionStatement(String theSubj, String thePred, String theObj)
addProjectionStatement
in interface QueryBuilder<T extends ParsedQuery>
public QueryBuilder<T> addProjectionStatement(String theSubj, Value thePred, Value theObj)
public QueryBuilder<T> addProjectionStatement(String theSubj, String thePred, Value theObj)
addProjectionStatement
in interface QueryBuilder<T extends ParsedQuery>
public QueryBuilder<T> addProjectionStatement(String theSubj, IRI thePred, Value theObj)
addProjectionStatement
in interface QueryBuilder<T extends ParsedQuery>
public QueryBuilder<T> addProjectionStatement(IRI theSubj, String thePred, String theObj)
addProjectionStatement
in interface QueryBuilder<T extends ParsedQuery>
public QueryBuilder<T> addProjectionStatement(IRI theSubj, IRI thePred, String theObj)
addProjectionStatement
in interface QueryBuilder<T extends ParsedQuery>
public QueryBuilder<T> addProjectionStatement(String theSubj, IRI thePred, String theObj)
addProjectionStatement
in interface QueryBuilder<T extends ParsedQuery>
public GroupBuilder<T,QueryBuilder<T>> group()
QueryBuilder
group
in interface QueryBuilder<T extends ParsedQuery>
public GroupBuilder<T,QueryBuilder<T>> optional()
QueryBuilder
optional
in interface QueryBuilder<T extends ParsedQuery>
public QueryBuilder<T> limit(int theLimit)
QueryBuilder
limit
in interface QueryBuilder<T extends ParsedQuery>
theLimit
- the new limit for the querypublic QueryBuilder<T> offset(int theOffset)
QueryBuilder
offset
in interface QueryBuilder<T extends ParsedQuery>
theOffset
- the new offsetpublic QueryBuilder<T> addGroup(Group theGroup)
SupportsGroups
addGroup
in interface SupportsGroups
theGroup
- the group to addpublic QueryBuilder<T> removeGroup(Group theGroup)
SupportsGroups
removeGroup
in interface SupportsGroups
theGroup
- the group to removepublic QueryBuilder<T> orderBy(String... theNames)
QueryBuilder
orderBy
in interface QueryBuilder<T extends ParsedQuery>
theNames
- the names of the variables to apply the orderingpublic QueryBuilder<T> orderByAsc(String... theNames)
QueryBuilder
orderByAsc
in interface QueryBuilder<T extends ParsedQuery>
theNames
- the names of the variables to apply the orderingpublic QueryBuilder<T> orderByDesc(String... theNames)
QueryBuilder
orderByDesc
in interface QueryBuilder<T extends ParsedQuery>
theNames
- the names of the variables to apply the orderingCopyright © 2015-2022 Eclipse Foundation. All Rights Reserved.