Class SqlQuery
- java.lang.Object
 - 
- org.ametys.plugins.externaldata.data.AbstractQuery
 - 
- org.ametys.plugins.externaldata.data.sql.SqlQuery
 
 
 
- 
- All Implemented Interfaces:
 Query
public class SqlQuery extends AbstractQuery
A query on a SQL server. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface org.ametys.plugins.externaldata.data.Query
Query.ResultType 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description protected String_queryStringThe query string.- 
Fields inherited from class org.ametys.plugins.externaldata.data.AbstractQuery
_dataSourceId, _description, _factoryId, _id, _name, _parameters, _resultType 
- 
Fields inherited from interface org.ametys.plugins.externaldata.data.Query
PARAMETER_MATCHER, PARAMETER_PATTERN 
 - 
 
- 
Constructor Summary
Constructors Constructor Description SqlQuery() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getAdditionalConfiguration()Get the additional query configuration information.Map<String,String>getParameters()Get the query parameter names.StringgetQueryString()Get the SQL query string.DataSourceClientInteraction.DataSourceTypegetType()Get the query type.voidsetQueryString(String queryString)Set the query string.- 
Methods inherited from class org.ametys.plugins.externaldata.data.AbstractQuery
_buildParameters, getDataSourceId, getDescription, getFactory, getId, getName, getResultType, setDataSourceId, setDescription, setFactory, setId, setName, setResultType 
 - 
 
 - 
 
- 
- 
Field Detail
- 
_queryString
protected String _queryString
The query string. 
 - 
 
- 
Constructor Detail
- 
SqlQuery
public SqlQuery()
 
 - 
 
- 
Method Detail
- 
getType
public DataSourceClientInteraction.DataSourceType getType()
Description copied from interface:QueryGet the query type.- Returns:
 - the query type.
 
 
- 
getQueryString
public String getQueryString()
Get the SQL query string.- Returns:
 - the SQL query string.
 
 
- 
setQueryString
public void setQueryString(String queryString)
Set the query string.- Parameters:
 queryString- the query string
 
- 
getParameters
public Map<String,String> getParameters()
Description copied from interface:QueryGet the query parameter names.- Returns:
 - the query parameter names as a Collection.
 
 
- 
getAdditionalConfiguration
public Map<String,String> getAdditionalConfiguration()
Description copied from interface:QueryGet the additional query configuration information.- Returns:
 - the additional query configuration information as a Map of String -> String.
 
 
 - 
 
 -