public interface IDataSourceQueryHelper
Modifier and Type | Method and Description |
---|---|
java.lang.String |
fixQuery(java.lang.String query,
IDataSourceResultRow resultRow) |
IDataSourceResultSet |
getQueryResults(java.lang.String query,
java.lang.String tagType)
Given a select statement.
|
java.lang.String |
getValueFromKey(java.lang.Object o) |
boolean |
isValidQuery(java.lang.String query) |
boolean |
isValidSet(java.lang.Object value) |
java.lang.Object |
resultSetToString(java.lang.String query) |
java.util.Iterator |
selectNodes(IDataSourceResultSet resultSet) |
java.lang.String |
substituteVariables(java.lang.String[] queryParts,
java.lang.Object[] toInsert,
java.lang.String query,
java.util.List<VarResults> parameters)
Called by the AbstractDataSource to substitute values into a select statement.
|
java.lang.String |
valueToString(java.lang.Object object)
Called by AbstractDataSource to return string value of obj returned from getValue(tag, stack) method.
|
IDataSourceResultSet getQueryResults(java.lang.String query, java.lang.String tagType) throws DataSourceException
query
- DataSourceException
java.lang.String substituteVariables(java.lang.String[] queryParts, java.lang.Object[] toInsert, java.lang.String query, java.util.List<VarResults> parameters) throws DataSourceException
This function then returns: SELECT Id FROM Accounts WHERE name = 'Frank'
queryParts
- - The query string broken up into parts such that between each element, an element
of toInsert is inserted (possibly with formatting).toInsert
- - The array of items to insert. toInsert.length is equal to (queryParts.length - 2)query
- parameters
- DataSourceException
java.lang.String valueToString(java.lang.Object object) throws DataSourceException
object
- returned from getValue() call in AbstractDataSourceDataSourceException
java.util.Iterator selectNodes(IDataSourceResultSet resultSet)
boolean isValidSet(java.lang.Object value)
java.lang.String getValueFromKey(java.lang.Object o)
boolean isValidQuery(java.lang.String query)
java.lang.String fixQuery(java.lang.String query, IDataSourceResultRow resultRow) throws DataSourceException
DataSourceException
java.lang.Object resultSetToString(java.lang.String query)
Copyright © 2002-2021 Windward Studios, LLC. - All Rights Reserved. We are Java document generation software