|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ametys.plugins.datainclusion.data.AbstractQuery
org.ametys.plugins.datainclusion.data.sql.SqlQuery
public class SqlQuery
A query on a SQL server.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ametys.plugins.datainclusion.data.Query |
|---|
Query.ResultType |
| Field Summary | |
|---|---|
protected SqlDataSource |
_dataSource
The SQL data source. |
protected String |
_queryString
The query string. |
| Fields inherited from class org.ametys.plugins.datainclusion.data.AbstractQuery |
|---|
_description, _id, _name, _parameters, _resultType |
| Fields inherited from interface org.ametys.plugins.datainclusion.data.Query |
|---|
PARAMETER_MATCHER, PARAMETER_PATTERN |
| Constructor Summary | |
|---|---|
SqlQuery()
|
|
| Method Summary | |
|---|---|
QueryResult |
execute(Map parameterValues)
Execute the query with the specified parameter values. |
Map<String,String> |
getAdditionalConfiguration()
Get the additional query configuration information. |
SqlDataSource |
getDataSource()
Get the datasource on which depends this query. |
List<String> |
getParameterNames()
Get the query parameter names. |
String |
getQueryString()
Get the SQL query string. |
String |
getType()
Get the query type. |
void |
setDataSource(SqlDataSource dataSource)
Set this query data source. |
void |
setQueryString(String queryString)
Set the query string. |
| Methods inherited from class org.ametys.plugins.datainclusion.data.AbstractQuery |
|---|
_buildParameters, getDescription, getId, getName, getResultType, setDescription, setId, setName, setResultType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SqlDataSource _dataSource
protected String _queryString
| Constructor Detail |
|---|
public SqlQuery()
| Method Detail |
|---|
public String getType()
Query
public String getQueryString()
public void setQueryString(String queryString)
queryString - public List<String> getParameterNames()
Query
public SqlDataSource getDataSource()
Query
public void setDataSource(SqlDataSource dataSource)
dataSource - public Map<String,String> getAdditionalConfiguration()
Query
public QueryResult execute(Map parameterValues)
throws DataInclusionException
Query
parameterValues - the parameter values as a Map (name -> value).
DataInclusionException
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||