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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
clauses
protected java.util.List clauses
arguments
protected java.util.Map arguments
vartypemap
protected java.util.Map vartypemap
ptypemap
protected java.util.Map ptypemap
variables
protected java.util.List<Variable> variables
countVariables
protected java.util.Set<Variable> countVariables
allVariables
protected java.util.Set<Variable> allVariables
orderBy
protected java.util.List orderBy
orderDescending
protected java.util.Set<java.lang.String> orderDescending
limit
protected int limit
offset
protected int offset
selected_variables
protected java.util.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 java.util.List getClauses()
setClauseList
public void setClauseList(java.util.List clauses)
getArguments
public java.util.Map getArguments()
setArguments
public void setArguments(java.util.Map arguments)
getArgument
public java.lang.Object getArgument(java.lang.String name)
throws InvalidQueryException
- Throws:
InvalidQueryException
getVariableTypes
public java.util.Map getVariableTypes()
getParameterTypes
public java.util.Map getParameterTypes()
getSelectedVariables
public java.util.List getSelectedVariables()
setSelectedVariables
public void setSelectedVariables(java.util.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 java.lang.String[] getSelectedVariableNames()
getAllVariables
public java.util.Collection getAllVariables()
getCountedVariables
public java.util.Collection getCountedVariables()
getOrderBy
public java.util.List getOrderBy()
isOrderedAscending
public boolean isOrderedAscending(java.lang.String name)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toString
public static java.lang.String toString(java.util.List clauses)
toStringFromPart
protected java.lang.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.