net.ontopia.topicmaps.query.parser
Class TologQuery
java.lang.Object
net.ontopia.topicmaps.query.parser.TologStatement
net.ontopia.topicmaps.query.parser.TologQuery
public class TologQuery
- extends TologStatement
INTERNAL: Used to represent parsed SELECT queries.
clauses
protected List clauses
arguments
protected Map arguments
vartypemap
protected Map vartypemap
ptypemap
protected Map ptypemap
variables
protected List<Variable> variables
countVariables
protected Set<Variable> countVariables
allVariables
protected Set<Variable> allVariables
orderBy
protected List orderBy
orderDescending
protected Set<String> orderDescending
limit
protected int limit
offset
protected int offset
selected_variables
protected List selected_variables
TYPE_TMObjectIF
protected int TYPE_TMObjectIF
TYPE_String
protected int TYPE_String
TYPE_Number
protected int TYPE_Number
TologQuery
public TologQuery()
getClauses
public List getClauses()
setClauseList
public void setClauseList(List clauses)
getArguments
public Map getArguments()
setArguments
public void setArguments(Map arguments)
getArgument
public Object getArgument(String name)
throws InvalidQueryException
- Throws:
InvalidQueryException
getVariableTypes
public Map getVariableTypes()
getParameterTypes
public Map getParameterTypes()
getSelectedVariables
public List getSelectedVariables()
setSelectedVariables
public void setSelectedVariables(List<Variable> vars)
- Used to override the actual query string and set the projection from
code. Not usually used, but used by the tolog INSERT statement.
hasSelectClause
public boolean hasSelectClause()
getSelectedVariableNames
public String[] getSelectedVariableNames()
getAllVariables
public Collection getAllVariables()
getCountedVariables
public Collection getCountedVariables()
getOrderBy
public List getOrderBy()
isOrderedAscending
public boolean isOrderedAscending(String name)
toString
public String toString()
- Overrides:
toString
in class Object
toString
public static String toString(List clauses)
toStringFromPart
protected String toStringFromPart()
addVariable
public void addVariable(Variable variable)
throws AntlrWrapException
- Throws:
AntlrWrapException
addCountVariable
public void addCountVariable(Variable variable)
throws AntlrWrapException
- Throws:
AntlrWrapException
addOrderBy
public void addOrderBy(Variable variable,
boolean ascending)
close
public void close()
throws InvalidQueryException
- Specified by:
close
in class TologStatement
- Throws:
InvalidQueryException
setLimit
public void setLimit(int limit)
getLimit
public int getLimit()
setOffset
public void setOffset(int offset)
throws InvalidQueryException
- Throws:
InvalidQueryException
getOffset
public int getOffset()
Copyright © 2000-2012 Ontopia.