public class TologQuery extends TologStatement
Modifier and Type | Field and Description |
---|---|
protected Set<Variable> |
allVariables |
protected Map |
arguments |
protected List |
clauses |
protected Set<Variable> |
countVariables |
protected int |
limit |
protected int |
offset |
protected List |
orderBy |
protected Set<String> |
orderDescending |
protected Map |
ptypemap |
protected List |
selected_variables |
protected int |
TYPE_Number |
protected int |
TYPE_String |
protected int |
TYPE_TMObjectIF |
protected List<Variable> |
variables |
protected Map |
vartypemap |
options
Constructor and Description |
---|
TologQuery() |
Modifier and Type | Method and Description |
---|---|
void |
addCountVariable(Variable variable) |
void |
addOrderBy(Variable variable,
boolean ascending) |
void |
addVariable(Variable variable) |
void |
close() |
Collection |
getAllVariables() |
Object |
getArgument(String name) |
Map |
getArguments() |
List |
getClauses() |
Collection |
getCountedVariables() |
int |
getLimit() |
int |
getOffset() |
List |
getOrderBy() |
Map |
getParameterTypes() |
String[] |
getSelectedVariableNames() |
List |
getSelectedVariables() |
Map |
getVariableTypes() |
boolean |
hasSelectClause() |
boolean |
isOrderedAscending(String name) |
void |
setArguments(Map arguments) |
void |
setClauseList(List clauses) |
void |
setLimit(int limit) |
void |
setOffset(int offset) |
void |
setSelectedVariables(List<Variable> vars)
Used to override the actual query string and set the projection from
code.
|
String |
toString() |
static String |
toString(List clauses) |
protected String |
toStringFromPart() |
getOptions, setOptions
protected List clauses
protected Map arguments
protected Map vartypemap
protected Map ptypemap
protected List orderBy
protected int limit
protected int offset
protected List selected_variables
protected int TYPE_TMObjectIF
protected int TYPE_String
protected int TYPE_Number
public List getClauses()
public void setClauseList(List clauses)
public Map getArguments()
public void setArguments(Map arguments)
public Object getArgument(String name) throws InvalidQueryException
InvalidQueryException
public Map getVariableTypes()
public Map getParameterTypes()
public List getSelectedVariables()
public void setSelectedVariables(List<Variable> vars)
public boolean hasSelectClause()
public String[] getSelectedVariableNames()
public Collection getAllVariables()
public Collection getCountedVariables()
public List getOrderBy()
public boolean isOrderedAscending(String name)
protected String toStringFromPart()
public void addVariable(Variable variable) throws AntlrWrapException
AntlrWrapException
public void addCountVariable(Variable variable) throws AntlrWrapException
AntlrWrapException
public void addOrderBy(Variable variable, boolean ascending)
public void close() throws InvalidQueryException
close
in class TologStatement
InvalidQueryException
public void setLimit(int limit)
public int getLimit()
public void setOffset(int offset) throws InvalidQueryException
InvalidQueryException
public int getOffset()