Query.ResultType
Modifier and Type | Field and Description |
---|---|
protected String |
_dataSourceId
The datasource id.
|
protected String |
_description
The query description.
|
protected String |
_factoryId
The id of source factory
|
protected String |
_id
The query id.
|
protected String |
_name
The query name.
|
protected Map<String,String> |
_parameters
The query parameter names.
|
protected Query.ResultType |
_resultType
The query result type.
|
PARAMETER_MATCHER, PARAMETER_PATTERN
Constructor and Description |
---|
AbstractQuery() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,String> |
_buildParameters(String query)
Extract parameters from a query string in the form ${parameterName}.
|
String |
getDataSourceId()
Get the id of datasource on which depends this query.
|
String |
getDescription()
Get the query description.
|
String |
getFactory()
Get the id of source factory
|
String |
getId()
Get the query ID.
|
String |
getName()
Get the query name.
|
Query.ResultType |
getResultType()
Get the query result type.
|
void |
setDataSourceId(String dataSourceId)
Set the id of data source
|
void |
setDescription(String description)
Set the query description.
|
void |
setFactory(String factoryId)
Set the data source factory
|
void |
setId(String id)
Set the query id.
|
void |
setName(String name)
Set the query name.
|
void |
setResultType(Query.ResultType resultType)
Set the query result type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAdditionalConfiguration, getParameters, getType
protected String _description
protected Map<String,String> _parameters
protected Query.ResultType _resultType
protected String _dataSourceId
protected String _factoryId
public AbstractQuery()
public void setName(String name)
name
- the name of the querypublic String getDescription()
Query
getDescription
in interface Query
public void setDescription(String description)
description
- the description of the querypublic Query.ResultType getResultType()
Query
getResultType
in interface Query
public void setResultType(Query.ResultType resultType)
resultType
- the query result type.public String getFactory()
Query
getFactory
in interface Query
public void setFactory(String factoryId)
factoryId
- The id of source factorypublic String getDataSourceId()
Query
getDataSourceId
in interface Query
public void setDataSourceId(String dataSourceId)
dataSourceId
- The id of data sourceprotected Map<String,String> _buildParameters(String query)
query
- the query containing parameters.