public class QueryNode extends Object
The QueryNode represents a virtual or temporary group in the modeler. QueryNodes may be nested to indicate data queries built from other virtual or temporary groups. The root node of a tree of QueryNode objects should be defining a virtual group. Leaves should be other physical or virtual groups. Internal nodes of the tree are temporary groups.
A QueryNode must have a group name and a query. It may have a command (just used for convenient storage during conversion - this is not persisted).
Constructor and Description |
---|
QueryNode(String query)
Construct a query node with the required parameters.
|
Modifier and Type | Method and Description |
---|---|
Command |
getCommand()
Get command corresponding to query, may be null
|
String |
getQuery()
Get SQL query
|
UpdateValidator.UpdateInfo |
getUpdateInfo() |
void |
setCommand(Command command)
Set command - this is provided as a convenient place to cache this command
during conversion.
|
void |
setQuery(String query)
Set the SQL query
|
void |
setUpdateInfo(UpdateValidator.UpdateInfo updateInfo) |
String |
toString()
Print plantree structure starting at this node
|
public QueryNode(String query)
query
- SQL querypublic String getQuery()
public void setQuery(String query)
public void setCommand(Command command)
command
- Command corresponding to querypublic Command getCommand()
public String toString()
public UpdateValidator.UpdateInfo getUpdateInfo()
public void setUpdateInfo(UpdateValidator.UpdateInfo updateInfo)
Copyright © 2020. All rights reserved.