public class PassthroughQueryImpl extends java.lang.Object implements IWizardQuery
Constructor and Description |
---|
PassthroughQueryImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisplayName()
Display name of the query implementation.
|
protected java.util.ArrayList |
getDqlSelectColumns(java.lang.String dql)
Returns an arraylist of the columns that are selected from the specified
DQL statement
|
QueryResult |
getResults(java.lang.String ticket,
Action queryAction)
Execute the query described by the Action object, and return the results wrapped in a QueryResult object.
|
void |
setDisplayName(java.lang.String displayName)
Set the display name of the query implementation.
|
protected java.lang.String |
stripDistinct(java.lang.String columnName)
Strips the "distinct " text from a column name if necessary
|
protected java.lang.String |
stripTableIdentifier(java.lang.String columnName)
Strips the table identifier before the column name including the '.' if necessary
|
public QueryResult getResults(java.lang.String ticket, Action queryAction)
getResults
in interface IWizardQuery
ticket
- Authentication TicketqueryAction
- Action object holding the query informationQueryResult
error
returns true if method failed, otherwise falseresults
contains an array of QueryResultRow
s returned by querypublic java.lang.String getDisplayName()
getDisplayName
in interface IWizardQuery
public void setDisplayName(java.lang.String displayName)
setDisplayName
in interface IWizardQuery
displayName
- display name of the implementationprotected java.util.ArrayList getDqlSelectColumns(java.lang.String dql) throws java.lang.Exception
dql
- the dql statementjava.lang.Exception
- if an error occursprotected java.lang.String stripDistinct(java.lang.String columnName)
columnName
- protected java.lang.String stripTableIdentifier(java.lang.String columnName)
columnName
-