Class TologQuery
java.lang.Object
net.ontopia.topicmaps.query.parser.TologStatement
net.ontopia.topicmaps.query.parser.TologQuery
INTERNAL: Used to represent parsed SELECT queries.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Mapprotected Listprotected intprotected intprotected Listprotected Mapprotected Listprotected intprotected intprotected intprotected MapFields inherited from class net.ontopia.topicmaps.query.parser.TologStatement
options -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCountVariable(Variable variable) voidaddOrderBy(Variable variable, boolean ascending) voidaddVariable(Variable variable) voidclose()getArgument(String name) intgetLimit()intString[]booleanbooleanisOrderedAscending(String name) voidsetArguments(Map arguments) voidsetClauseList(List clauses) voidsetLimit(int limit) voidsetOffset(int offset) voidsetSelectedVariables(List<Variable> vars) Used to override the actual query string and set the projection from code.toString()static Stringprotected StringMethods inherited from class net.ontopia.topicmaps.query.parser.TologStatement
getOptions, setOptions
-
Field Details
-
clauses
-
arguments
-
vartypemap
-
ptypemap
-
variables
-
countVariables
-
allVariables
-
orderBy
-
orderDescending
-
limit
protected int limit -
offset
protected int offset -
selected_variables
-
TYPE_TMObjectIF
protected int TYPE_TMObjectIF -
TYPE_String
protected int TYPE_String -
TYPE_Number
protected int TYPE_Number
-
-
Constructor Details
-
TologQuery
public TologQuery()
-
-
Method Details
-
getClauses
-
setClauseList
-
getArguments
-
setArguments
-
getArgument
- Throws:
InvalidQueryException
-
getVariableTypes
-
getParameterTypes
-
getSelectedVariables
-
setSelectedVariables
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
-
getAllVariables
-
getCountedVariables
-
getOrderBy
-
isOrderedAscending
-
toString
-
toString
-
toStringFromPart
-
addVariable
- Throws:
AntlrWrapException
-
addCountVariable
- Throws:
AntlrWrapException
-
addOrderBy
-
close
- Specified by:
closein classTologStatement- Throws:
InvalidQueryException
-
setLimit
public void setLimit(int limit) -
getLimit
public int getLimit() -
setOffset
- Throws:
InvalidQueryException
-
getOffset
public int getOffset()
-