org.topbraid.spin.model
Interface Select

All Superinterfaces:
Command, Printable, Query, SolutionModifierQuery

public interface Select
extends SolutionModifierQuery

A SELECT query.

Author:
Holger Knublauch

Method Summary
 java.util.List<Resource> getResultVariables()
          Gets a list of result variables, or null if we have a star results list.
 boolean isDistinct()
          Checks is this query has the DISTINCT flag set.
 boolean isReduced()
          Checks if this query has the REDUCED flag set.
 
Methods inherited from interface org.topbraid.spin.model.SolutionModifierQuery
getLimit, getOffset
 
Methods inherited from interface org.topbraid.spin.model.Query
getFrom, getFromNamed, getWhere, getWhereElements
 
Methods inherited from interface org.topbraid.spin.model.Command
getComment
 
Methods inherited from interface org.topbraid.spin.model.print.Printable
print
 

Method Detail

getResultVariables

java.util.List<Resource> getResultVariables()
Gets a list of result variables, or null if we have a star results list. Note that the "variables" may in fact be wrapped aggregations or expressions. The results can be tested with instanceof against Variable, Aggregation or FunctionCall. Variables can have an additional sp:expression, representing AS expressions.

Returns:
the result "variables"

isDistinct

boolean isDistinct()
Checks is this query has the DISTINCT flag set.

Returns:
true if distinct

isReduced

boolean isReduced()
Checks if this query has the REDUCED flag set.

Returns:
true if reduced