Module org.apache.jena.querybuilder
Class SolutionModifierHandler
java.lang.Object
org.apache.jena.arq.querybuilder.handlers.SolutionModifierHandler
- All Implemented Interfaces:
 Handler
The Solution Modifier handler.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddAll(SolutionModifierHandler solutionModifier) Copy all the modifications from the Solution Modifier argumentvoidaddGroupBy(org.apache.jena.sparql.core.Var var) Add a node to the group by clause.voidaddGroupBy(org.apache.jena.sparql.core.Var var, org.apache.jena.sparql.expr.Expr expr) Add var and expression to the group by clause.voidaddGroupBy(org.apache.jena.sparql.expr.Expr expr) Add an expression to the group by clause.voidAdd a having expression.voidaddHaving(org.apache.jena.sparql.core.Var var) Add a variable to the having clause.voidaddHaving(org.apache.jena.sparql.expr.Expr expr) Add an expression to the having clause.voidaddOrderBy(org.apache.jena.query.SortCondition condition) Add an order by clausevoidaddOrderBy(org.apache.jena.sparql.core.Var var) Add a var to the order by clause.voidaddOrderBy(org.apache.jena.sparql.core.Var var, Order order) Add a var to the order by clause.voidaddOrderBy(org.apache.jena.sparql.expr.Expr expr) Add an expression to the order by clause.voidaddOrderBy(org.apache.jena.sparql.expr.Expr expr, Order order) Add an expression to the order by clause.voidbuild()Called by the build process for this handler to perform any adjustments to the query before the build completes.voidsetLimit(int limit) Set the limit for the number of results to return.voidsetOffset(int offset) Set the offset for the results to return.voidSet the values for variables managed by the handler implementation. 
- 
Constructor Details
- 
SolutionModifierHandler
public SolutionModifierHandler(org.apache.jena.query.Query query) Constructor- Parameters:
 query- The query to modify.
 
 - 
 - 
Method Details
- 
addAll
Copy all the modifications from the Solution Modifier argument- Parameters:
 solutionModifier- The solution modifier to copy from.
 - 
addOrderBy
public void addOrderBy(org.apache.jena.query.SortCondition condition) Add an order by clause- Parameters:
 condition- The SortCondition to add to the order by.
 - 
addOrderBy
public void addOrderBy(org.apache.jena.sparql.expr.Expr expr) Add an expression to the order by clause. Sorts in Default order.- Parameters:
 expr- The expression to add.
 - 
addOrderBy
Add an expression to the order by clause.- Parameters:
 expr- The expression to add.order- The direction of the ordering.
 - 
addOrderBy
public void addOrderBy(org.apache.jena.sparql.core.Var var) Add a var to the order by clause. Sorts in default order- Parameters:
 var- The var to use for sorting
 - 
addOrderBy
Add a var to the order by clause.- Parameters:
 var- The var to sort by.order- The direction of the ordering.
 - 
addGroupBy
public void addGroupBy(org.apache.jena.sparql.expr.Expr expr) Add an expression to the group by clause.- Parameters:
 expr- The expression to add.
 - 
addGroupBy
public void addGroupBy(org.apache.jena.sparql.core.Var var) Add a node to the group by clause.- Parameters:
 var- The variable to add.
 - 
addGroupBy
public void addGroupBy(org.apache.jena.sparql.core.Var var, org.apache.jena.sparql.expr.Expr expr) Add var and expression to the group by clause.- Parameters:
 var- The variable to add.expr- The expression to add.
 - 
addHaving
Add a having expression.- Parameters:
 expression- The expression to add
 - 
addHaving
public void addHaving(org.apache.jena.sparql.core.Var var) Add a variable to the having clause.- Parameters:
 var- The variable to add.
 - 
addHaving
public void addHaving(org.apache.jena.sparql.expr.Expr expr) Add an expression to the having clause.- Parameters:
 expr- The expression to add.
 - 
setLimit
public void setLimit(int limit) Set the limit for the number of results to return. Setting the limit to zero (0) or removes the limit.- Parameters:
 limit- The limit to set.
 - 
setOffset
public void setOffset(int offset) Set the offset for the results to return. Setting the offset to zero (0) or removes the offset.- Parameters:
 offset- The offset to set.
 - 
setVars
Description copied from interface:HandlerSet the values for variables managed by the handler implementation. This method is called by the builder to set values handled by this Handler implementation. - 
build
public void build()Description copied from interface:HandlerCalled by the build process for this handler to perform any adjustments to the query before the build completes. The adjustments are made after setVars() has been called. 
 -