Class SqlQuery
java.lang.Object
org.ametys.plugins.externaldata.data.AbstractQuery
org.ametys.plugins.externaldata.data.sql.SqlQuery
- All Implemented Interfaces:
Query
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 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
-
Method Summary
Modifier and TypeMethodDescriptionGet the additional query configuration information.Get the query parameter names.Get the SQL query string.getType()
Get the query type.void
setQueryString
(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 Details
-
_queryString
The query string.
-
-
Constructor Details
-
SqlQuery
public SqlQuery()
-
-
Method Details
-
getType
Description copied from interface:Query
Get the query type.- Returns:
- the query type.
-
getQueryString
Get the SQL query string.- Returns:
- the SQL query string.
-
setQueryString
Set the query string.- Parameters:
queryString
- the query string
-
getParameters
Description copied from interface:Query
Get the query parameter names.- Returns:
- the query parameter names as a Collection.
-
getAdditionalConfiguration
Description copied from interface:Query
Get the additional query configuration information.- Returns:
- the additional query configuration information as a Map of String -> String.
-