public interface DataSourceNode
Modifier and Type | Method and Description |
---|---|
boolean |
addQuery(QueryTag tag,
DataSourceNode[] stack)
Called for a query tag.
|
void |
addSet(SetTag tag,
DataSourceNode[] stack,
java.util.Locale locale,
IMacroState macroState)
Called for a set tag.
|
boolean |
addSwitch(SwitchTag tag,
DataSourceNode[] stack)
Called for a switch tag.
|
void |
close()
We are done with this node.
|
void |
endSwitch(EndSwitchTag tag,
DataSourceNode[] stack)
Called when a switch ends.
|
boolean |
evaluate(java.lang.String text,
DataSourceNode[] stack,
IMacroState macroState)
Evaluate an expression for the boolean result.
|
java.io.InputStream |
getBitmap(OutTag tag,
DataSourceNode[] stack,
IMacroState state)
Called when tag is of type BITMAP.
|
java.lang.Object |
getCursor()
Returns the underlying cursor this node presently holds.
|
ChartDataSet |
getData(ChartTag tag,
DataSourceNode[] stack,
java.util.Locale locale)
Returns a set of data used to create a chart.
|
DataSourceProvider |
getDataSourceProvider()
Get the parent datasource.
|
DebugDatasourceState |
getDatasourceState(DataSourceNode[] stack)
Get the state of the datasource.
|
java.lang.Object[] |
getEquationData(java.lang.String query,
DataSourceNode[] stack,
java.util.Locale locale)
Returns an array of data from a given datasource query
|
java.lang.String |
getImport(ImportTag tag,
DataSourceNode[] stack)
Deprecated.
|
java.lang.String |
getImport(ImportTag tag,
DataSourceNode[] stack,
java.util.Locale locale,
IMacroState macroState)
An extended version of getImport() which supports the macro evaluation.
|
DataSourceIterator |
getIterator()
Returns the iterator presently in use for this node.
|
java.lang.String |
getLink(BaseTag tag,
DataSourceNode[] stack)
Called for a link or DrillDown tag.
|
java.lang.Object |
getOut(OutTag tag,
DataSourceNode[] stack,
java.util.Locale locale,
IMacroState state)
Called for an out tag.
|
InputDataContainer |
getOutStream(OutTag tag,
DataSourceNode[] stack,
IMacroState state)
Called for an out tag.
|
int |
getQueryMode(java.lang.String select,
BaseTag tag)
Returns the mode of a query.
|
java.lang.Object[] |
getVariableValue(java.lang.String variable,
DataSourceNode[] stack,
java.util.Locale locale)
Returns the variable value.
|
boolean |
isCase(CaseTag tag,
DataSourceNode[] stack,
IMacroState macroState)
Called for a case tag.
|
boolean |
isExistingNode(BaseTag tag,
DataSourceNode[] stack)
Return true if the passed in node exists.
|
boolean |
isIf(IfTag tag,
DataSourceNode[] stack,
IMacroState macroState)
Called for an if tag.
|
boolean |
isSelect(java.lang.String select,
boolean textIsNode)
Returns true if the passed in string is believed to be a select.
|
DataSourceIterator |
iterator(ForEachTag tag,
DataSourceNode[] stack)
Called for a forEach tag.
|
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.boolean addQuery(QueryTag tag, DataSourceNode[] stack) throws DataSourceException
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.DataSourceException
- Could not retrieve the data. Generally wraps a SqlException or XpathException.void addSet(SetTag tag, DataSourceNode[] stack, java.util.Locale locale, IMacroState macroState) throws DataSourceException
tag
- The name value pair.stack
- The stack of forEach loops in at this point. Node [0] is the root document node so this will alwaysmacroState
- the macro state of the report
have length of at least 1.DataSourceException
- Could not retrieve the data. Generally wraps a SqlException or XpathException.java.io.InputStream getBitmap(OutTag tag, DataSourceNode[] stack, IMacroState state) throws DataSourceException
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.@Deprecated java.lang.String getImport(ImportTag tag, DataSourceNode[] stack) throws DataSourceException
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.DataSourceException
- Could not retrieve the data. Generally wraps a SqlException or XpathException.java.lang.String getImport(ImportTag tag, DataSourceNode[] stack, java.util.Locale locale, IMacroState macroState) throws DataSourceException
DataSourceException
java.lang.String getLink(BaseTag tag, DataSourceNode[] stack) throws DataSourceException
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.DataSourceException
- Could not retrieve the data. Generally wraps a SqlException or XpathException.java.lang.Object getOut(OutTag tag, DataSourceNode[] stack, java.util.Locale locale, IMacroState state) throws DataSourceException
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.locale
- The locale to produce the output in.state
- The macro state of the reportDataSourceException
- Could not retrieve the data. Generally wraps a SqlException or XpathException.InputDataContainer getOutStream(OutTag tag, DataSourceNode[] stack, IMacroState state) throws DataSourceException
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.boolean isExistingNode(BaseTag tag, DataSourceNode[] stack) throws DataSourceException
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.DataSourceException
- Could not retrieve the data. Generally wraps a SqlException or XpathException.boolean evaluate(java.lang.String text, DataSourceNode[] stack, IMacroState macroState) throws DataSourceException
text
- The expression to evaluate.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.macroState
- macrostate of the reportDataSourceException
- Could not retrieve the data. Generally wraps a SqlException or XpathException.boolean isIf(IfTag tag, DataSourceNode[] stack, IMacroState macroState) throws DataSourceException
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.macroState
- macrostate of the reportDataSourceException
- Could not retrieve the data. Generally wraps a SqlException or XpathException.boolean addSwitch(SwitchTag tag, DataSourceNode[] stack) throws DataSourceException
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.DataSourceException
- Could not retrieve the data. Generally wraps a SqlException or XpathException.boolean isCase(CaseTag tag, DataSourceNode[] stack, IMacroState macroState) throws DataSourceException
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.macroState
- macro state of the reportDataSourceException
- Could not retrieve the data. Generally wraps a SqlException or XpathException.void endSwitch(EndSwitchTag tag, DataSourceNode[] stack) throws DataSourceException
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.DataSourceException
- Could not retrieve the data. Generally wraps a SqlException or XpathException.DataSourceIterator iterator(ForEachTag tag, DataSourceNode[] stack) throws DataSourceException
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.DataSourceException
- Could not retrieve the data. Generally wraps a SqlException or XpathException.DataSourceIterator getIterator() throws DataSourceException
DataSourceException
- Could not retrieve the data. Generally wraps a SqlException or XpathException.void close() throws DataSourceException
DataSourceException
- Could not retrieve the data.ChartDataSet getData(ChartTag tag, DataSourceNode[] stack, java.util.Locale locale) throws DataSourceException
tag
- The wr:chart tag with the select setting to use.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.locale
- The locale to produce the output in.DataSourceException
- Could not retrieve the data.java.lang.Object getCursor() throws DataSourceException
DataSourceException
- Could not retrieve the data. Generally wraps a SqlException or XpathException.java.lang.Object[] getVariableValue(java.lang.String variable, DataSourceNode[] stack, java.util.Locale locale) throws DataSourceException
variable
- The string containing the variable name.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.locale
- The locale to produce the output in.DataSourceException
java.lang.Object[] getEquationData(java.lang.String query, DataSourceNode[] stack, java.util.Locale locale) throws DataSourceException
query
- The datasource query.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.locale
- The locale to produce the output in.DataSourceException
int getQueryMode(java.lang.String select, BaseTag tag) throws DataSourceException
select
- The query.tag
- The tag this select is for. This may be null.DataSourceException
DebugDatasourceState getDatasourceState(DataSourceNode[] stack)
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.DataSourceProvider getDataSourceProvider()
Copyright © 2017 Windward Reports - All Rights Reserved. We are java reporting software