public class JsonDataSource.JsonDataNode extends AbstractDataSourceNode
Constructor and Description |
---|
JsonDataNode(AbstractDataSource abstractDataSource) |
JsonDataNode(AbstractDataSource abstractDataSource,
IDataSourceResultRow row)
JsonDataNode constructor: set query and doc
|
Modifier and Type | Method and Description |
---|---|
void |
close()
We are done with this node.
|
java.io.InputStream |
getBitmap(OutTag tag,
DataSourceNode[] stack,
IMacroState state)
Called when tag is of type BITMAP.
|
int |
getQueryMode(java.lang.String select,
BaseTag tag)
Returns the mode of a query.
|
boolean |
isSelect(java.lang.String select,
boolean textIsNode)
Returns true if the passed in string is believed to be a select.
|
addQuery, addSet, addSwitch, drillDownToVal, endSwitch, evaluate, getCursor, getData, getDataSourceProvider, getDatasourceState, getEquationData, getImport, getImport, getIterator, getLink, getNativeVariable, getOut, getOutStream, getValue, getVariableValue, isCase, isExistingNode, isIf, isLiteralDataSourceNode, iterator, parse
public JsonDataNode(AbstractDataSource abstractDataSource, IDataSourceResultRow row)
row
- public JsonDataNode(AbstractDataSource abstractDataSource)
public boolean isSelect(java.lang.String select, boolean textIsNode)
select
- Determine if this string is a select.textIsNode
- true if plain text is a nod. false if it's a value.public void close() throws DataSourceException
DataSourceNode
close
in interface DataSourceNode
close
in class AbstractDataSourceNode
DataSourceException
- Could not retrieve the data.public int getQueryMode(java.lang.String select, BaseTag tag) throws DataSourceException
DataSourceNode
select
- The query.tag
- The tag this select is for. This may be null.DataSourceException
public java.io.InputStream getBitmap(OutTag tag, DataSourceNode[] stack, IMacroState state) throws DataSourceException
DataSourceNode
getBitmap
in interface DataSourceNode
getBitmap
in class AbstractDataSourceNode
tag
- The values that identify the datasource node to read.stack
- The stack of forEach loops in at this point. Node [0] is the root document node so this will always
have length of at least 1.state
- macrostate of the reportDataSourceException
- Could not retrieve the data. Generally wraps a SqlException or XpathException.Copyright © 2017 Windward Reports - All Rights Reserved. We are java reporting software