public class SelectQuery extends RdbmsQueryModelNodeBase implements TupleExpr
Modifier and Type | Class and Description |
---|---|
static class |
SelectQuery.OrderElem |
Constructor and Description |
---|
SelectQuery() |
visit
getParentNode, getSignature, nullEquals, replaceNodeInList, replaceWith, setParentNode, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, getParentNode, getSignature, replaceWith, setParentNode, toString, visit
public boolean isDistinct()
public void setDistinct(boolean b)
public boolean isComplex()
public FromItem getFrom()
public void setFrom(FromItem from)
public List<SelectQuery.OrderElem> getOrderElems()
public void addOrder(SqlExpr order, boolean isAscending)
public Long getOffset()
public void setOffset(Long offset)
public Long getLimit()
public void setLimit(Long limit)
public Collection<String> getBindingNames(ColumnVar var)
public Set<String> getBindingNames()
TupleExpr
getBindingNames
in interface TupleExpr
public Set<String> getAssuredBindingNames()
TupleExpr
getAssuredBindingNames
in interface TupleExpr
public Collection<SelectProjection> getSqlSelectVar()
public void setSqlSelectVar(Collection<SelectProjection> projections)
public SelectProjection getSelectProjection(String name)
public void replaceChildNode(QueryModelNode current, QueryModelNode replacement)
QueryModelNodeBase
QueryModelNode.replaceChildNode(QueryModelNode, QueryModelNode)
that throws an IllegalArgumentException
indicating that
current is not a child node of this node.replaceChildNode
in interface QueryModelNode
replaceChildNode
in class QueryModelNodeBase
current
- The current child node.replacement
- The new child node.public <X extends Exception> void visitChildren(QueryModelVisitor<X> visitor) throws X extends Exception
QueryModelNodeBase
QueryModelNode.visitChildren(org.openrdf.query.algebra.QueryModelVisitor<X>)
that does
nothing. Subclasses should override this method when they have child
nodes.visitChildren
in interface QueryModelNode
visitChildren
in class QueryModelNodeBase
X extends Exception
public SelectQuery clone()
QueryModelNode
clone
in interface QueryModelNode
clone
in interface TupleExpr
clone
in class QueryModelNodeBase
public <X extends Exception> void visit(RdbmsQueryModelVisitorBase<X> visitor) throws X extends Exception
visit
in class RdbmsQueryModelNodeBase
X extends Exception
public boolean hasSqlSelectVar(SelectProjection node)
public boolean hasSqlSelectVarName(String name)
public void addSqlSelectVar(SelectProjection node)
public Collection<ColumnVar> getProjections()
public Collection<ColumnVar> getVars()
public void addFilter(SqlExpr sql)
public void addJoin(SelectQuery right)
public void addLeftJoin(SelectQuery right)
public void removeFilter(SqlExpr sqlExpr)
Copyright © 2001-2016 Aduna. All Rights Reserved.