org.openrdf.sesame.sail.query
Class SelectQuery

java.lang.Object
  extended byorg.openrdf.sesame.sail.query.GraphPatternQuery
      extended byorg.openrdf.sesame.sail.query.SelectQuery
All Implemented Interfaces:
Query

public class SelectQuery
extends GraphPatternQuery

Class representing a select-from-where query.

Author:
Arjohn Kampman

Constructor Summary
SelectQuery(boolean distinct, int offset, int limit, List projection, GraphPattern graphPattern)
           
SelectQuery(boolean distinct, List projection, GraphPattern graphPattern)
           
SelectQuery(List projection, GraphPattern graphPattern)
           
 
Method Summary
 String[] getColumnHeaders()
          Gets the headers for the results table that is produced by this query.
 ProjectionElem[] getProjection()
           
 void getProjectionVariables(Collection variables)
          Gets all variables that are used in the projection of this GraphPatternQuery.
 void setProjection(List projection)
           
 void setProjection(ProjectionElem[] projection)
           
 String toString()
           
 
Methods inherited from class org.openrdf.sesame.sail.query.GraphPatternQuery
evaluate, getGraphPattern, getLimit, getOffset, getVariables, hasLimit, hasOffset, isDistinct, setDistinct, setGraphPattern, setLimit, setOffset
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SelectQuery

public SelectQuery(List projection,
                   GraphPattern graphPattern)

SelectQuery

public SelectQuery(boolean distinct,
                   List projection,
                   GraphPattern graphPattern)

SelectQuery

public SelectQuery(boolean distinct,
                   int offset,
                   int limit,
                   List projection,
                   GraphPattern graphPattern)
Method Detail

getProjection

public ProjectionElem[] getProjection()

setProjection

public void setProjection(List projection)

setProjection

public void setProjection(ProjectionElem[] projection)

getProjectionVariables

public void getProjectionVariables(Collection variables)
Description copied from class: GraphPatternQuery
Gets all variables that are used in the projection of this GraphPatternQuery.

Specified by:
getProjectionVariables in class GraphPatternQuery
Parameters:
variables - A Collection to add the Var objects to.

getColumnHeaders

public String[] getColumnHeaders()
Description copied from interface: Query
Gets the headers for the results table that is produced by this query.

Returns:
An array containing as much strings as there are values in each query result.

toString

public String toString()


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.