public abstract class AbstractDataSource extends DataSourceBase implements DataSourceProvider
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDataSource.AbstractDataSourceNode |
| Modifier and Type | Field and Description |
|---|---|
AbstractDataSource.AbstractDataSourceNode |
rootNode |
int |
SynTaxmode |
| Constructor and Description |
|---|
AbstractDataSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
approveDenyModifySelect(BaseTag xmlTag)
Verifys that a tag select is approved by a user defined callback
Or denies by throwing a DatasourceException or modifies the select
|
abstract void |
close()
Clean up resources.
|
java.util.Map |
getMap()
Returns the map of variables for this datasource.
|
int |
getParamMode()
Get the parameter substitution mode.
|
abstract int |
getQueryMode(java.lang.String query,
BaseTag tag)
Gets the query mode of a select.
|
DataSourceNode |
getRootNode()
Returns the root node for this data set.
|
TagAttributes[] |
getTagAttributes()
Returns the allowed attributes for all tags.
|
void |
populateDatasourceException(DataSourceException exception,
BaseTag tag,
DataSourceNode[] stack)
Populates that properties in a DataSourceException via DataSourceException.setProperties().
|
java.lang.Object |
returnfirstattribute(DataSourceResultRow dsrr) |
java.lang.Object |
returnValue(DataSourceResultRow dsrr) |
void |
setDatasets(java.lang.Object[] datasets)
Set the datasets to use with this datasource.
|
void |
setMap(java.util.Map m)
Adds a map that is used for ${variable} substitution.
|
void |
setParamMode(int paramMode)
Set the parameter substitution mode.
|
void |
validateTag(BaseTag xmlTag)
Verifys that a tag has all required attributes and no unknown attributes.
|
convertToInputStreamequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDatasourceNamepublic AbstractDataSource.AbstractDataSourceNode rootNode
public int SynTaxmode
public abstract void close()
close in interface DataSourceProviderpublic abstract int getQueryMode(java.lang.String query,
BaseTag tag)
throws DataSourceException
getQueryMode in interface DataSourceProviderquery - tag - The tag this select is for. This may be null.DataSourceExceptionpublic DataSourceNode getRootNode()
DataSourceProvidergetRootNode in interface DataSourceProviderpublic void setParamMode(int paramMode)
DataSourceProvidersetParamMode in interface DataSourceProviderparamMode - the parameter substitution mode.public int getParamMode()
DataSourceProvidergetParamMode in interface DataSourceProviderpublic java.util.Map getMap()
DataSourceProvidergetMap in interface DataSourceProviderpublic void validateTag(BaseTag xmlTag)
throws TagException
DataSourceProvidervalidateTag in interface DataSourceProviderxmlTag - The tag to checkTagException - thrown if illegal parameters passed in.public void approveDenyModifySelect(BaseTag xmlTag)
throws DataSourceException
approveDenyModifySelect in interface DataSourceProviderxmlTag - The tag to checkDataSourceException - thrown if illegal parameters passed in.public void setMap(java.util.Map m)
DataSourceProvidersetMap in interface DataSourceProviderm - The map of string pairs.public void setDatasets(java.lang.Object[] datasets)
DataSourceProvidersetDatasets in interface DataSourceProviderdatasets - The datasets to use. Can be null to turn off datasets. This is a DatasetBase[] but because of
how the .NET engine is structured, we need to declare it as an object.public TagAttributes[] getTagAttributes()
DataSourceProvidergetTagAttributes in interface DataSourceProviderpublic void populateDatasourceException(DataSourceException exception, BaseTag tag, DataSourceNode[] stack)
populateDatasourceException in interface DataSourceProviderexception - The exception to populate.tag - The tag we're processing. null if no tag.stack - The node stack at the time of the exception. null if not relevant.public java.lang.Object returnfirstattribute(DataSourceResultRow dsrr) throws DataSourceException
DataSourceExceptionpublic java.lang.Object returnValue(DataSourceResultRow dsrr) throws DataSourceException
DataSourceExceptionCopyright © 2017 Windward Reports - All Rights Reserved. We are java reporting software