public abstract class AbstractDataSource.AbstractDataSourceNode extends java.lang.Object implements DataSourceNode
| Constructor and Description |
|---|
AbstractDataSourceNode() |
| 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)
Adds the set tag value to the usermap.
|
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)
Called for an import tag.
|
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 query,
BaseTag tag)
Returns the mode of a query.
|
java.lang.String |
getValue(BaseTag tag,
DataSourceNode[] stack,
IMacroState macroState,
java.util.Locale locale) |
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 |
isQuery(java.lang.String s) |
boolean |
isSelect(java.lang.String select,
boolean textIsNode)
Returns true if the passed in string is believed to be a select.
|
abstract DataSourceIterator |
iterator(ForEachTag tag,
DataSourceNode[] stack)
Called for a forEach tag.
|
public boolean isQuery(java.lang.String s)
public void addSet(SetTag tag,
DataSourceNode[] stack,
java.util.Locale locale,
IMacroState macroState)
throws DataSourceException
addSet in interface DataSourceNodetag - The tag to addstack - 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.DataSourceExceptionpublic boolean isSelect(java.lang.String select,
boolean textIsNode)
DataSourceNodeisSelect in interface DataSourceNodeselect - Determine if this string is a select.textIsNode - true if plain text is a nod. false if it's a value.public int getQueryMode(java.lang.String query,
BaseTag tag)
throws DataSourceException
DataSourceNodegetQueryMode in interface DataSourceNodequery - The query.tag - The tag this select is for. This may be null.DataSourceExceptionpublic boolean addQuery(QueryTag tag,
DataSourceNode[] stack)
throws DataSourceException
DataSourceNodeaddQuery in interface DataSourceNodetag - 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.public java.io.InputStream getBitmap(OutTag tag,
DataSourceNode[] stack,
IMacroState state)
throws DataSourceException
DataSourceNodegetBitmap in interface DataSourceNodetag - 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.public java.lang.String getImport(ImportTag tag,
DataSourceNode[] stack)
throws DataSourceException
DataSourceNodegetImport in interface DataSourceNodetag - 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.public java.lang.String getImport(ImportTag tag,
DataSourceNode[] stack,
java.util.Locale locale,
IMacroState macroState)
throws DataSourceException
DataSourceNodegetImport in interface DataSourceNodeDataSourceExceptionpublic java.lang.String getLink(BaseTag tag,
DataSourceNode[] stack)
throws DataSourceException
DataSourceNodegetLink in interface DataSourceNodetag - 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.public java.lang.String getValue(BaseTag tag,
DataSourceNode[] stack,
IMacroState macroState,
java.util.Locale locale)
throws DataSourceException
DataSourceExceptionpublic java.lang.Object getOut(OutTag tag,
DataSourceNode[] stack,
java.util.Locale locale,
IMacroState state)
throws DataSourceException
DataSourceNodegetOut in interface DataSourceNodetag - 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.public InputDataContainer getOutStream(OutTag tag, DataSourceNode[] stack, IMacroState state) throws DataSourceException
DataSourceNodegetOutStream in interface DataSourceNodetag - 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.public boolean isExistingNode(BaseTag tag,
DataSourceNode[] stack)
throws DataSourceException
DataSourceNodeisExistingNode in interface DataSourceNodetag - 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.public boolean evaluate(java.lang.String text,
DataSourceNode[] stack,
IMacroState macroState)
throws DataSourceException
DataSourceNodeevaluate in interface DataSourceNodetext - 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.public boolean isIf(IfTag tag,
DataSourceNode[] stack,
IMacroState macroState)
throws DataSourceException
DataSourceNodeisIf in interface DataSourceNodetag - 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.public boolean addSwitch(SwitchTag tag,
DataSourceNode[] stack)
throws DataSourceException
DataSourceNodeaddSwitch in interface DataSourceNodetag - 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.public boolean isCase(CaseTag tag,
DataSourceNode[] stack,
IMacroState macroState)
throws DataSourceException
DataSourceNodeisCase in interface DataSourceNodetag - 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.public void endSwitch(EndSwitchTag tag,
DataSourceNode[] stack)
DataSourceNodeendSwitch in interface DataSourceNodetag - 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.public abstract DataSourceIterator iterator(ForEachTag tag, DataSourceNode[] stack) throws DataSourceException
DataSourceNodeiterator in interface DataSourceNodetag - 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.public DataSourceIterator getIterator() throws DataSourceException
DataSourceNodegetIterator in interface DataSourceNodeDataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.public void close()
throws DataSourceException
DataSourceNodeclose in interface DataSourceNodeDataSourceException - Could not retrieve the data.public ChartDataSet getData(ChartTag tag,
DataSourceNode[] stack,
java.util.Locale locale)
throws DataSourceException
DataSourceNodegetData in interface DataSourceNodetag - 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.public java.lang.Object getCursor()
throws DataSourceException
DataSourceNodegetCursor in interface DataSourceNodeDataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.public java.lang.Object[] getVariableValue(java.lang.String variable,
DataSourceNode[] stack,
java.util.Locale locale)
throws DataSourceException
DataSourceNodegetVariableValue in interface DataSourceNodevariable - 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.DataSourceExceptionpublic java.lang.Object[] getEquationData(java.lang.String query,
DataSourceNode[] stack,
java.util.Locale locale)
throws DataSourceException
DataSourceNodegetEquationData in interface DataSourceNodequery - 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.DataSourceExceptionpublic DebugDatasourceState getDatasourceState(DataSourceNode[] stack)
DataSourceNodegetDatasourceState in interface DataSourceNodestack - 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.public DataSourceProvider getDataSourceProvider()
DataSourceNodegetDataSourceProvider in interface DataSourceNodeCopyright © 2017 Windward Reports - All Rights Reserved. We are java reporting software