|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ametys.plugins.datainclusion.data.AbstractQuery
public abstract class AbstractQuery
An abstract query.
Defines getters and setters for all base members of a query, and provides
some helpful methods.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ametys.plugins.datainclusion.data.Query |
|---|
Query.ResultType |
| Field Summary | |
|---|---|
protected String |
_description
The query description. |
protected String |
_id
The query id. |
protected String |
_name
The query name. |
protected List<String> |
_parameters
The query parameter names. |
protected Query.ResultType |
_resultType
The query result type. |
| Fields inherited from interface org.ametys.plugins.datainclusion.data.Query |
|---|
PARAMETER_MATCHER, PARAMETER_PATTERN |
| Constructor Summary | |
|---|---|
AbstractQuery()
|
|
| Method Summary | |
|---|---|
protected List<String> |
_buildParameters(String query)
Extract parameters from a query string in the form ${parameterName}. |
String |
getDescription()
Get the query description. |
String |
getId()
Get the query ID. |
String |
getName()
Get the query name. |
Query.ResultType |
getResultType()
Get the query result type. |
void |
setDescription(String description)
Set the query description. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.ametys.plugins.datainclusion.data.Query |
|---|
execute, getAdditionalConfiguration, getDataSource, getParameterNames, getType |
| Field Detail |
|---|
protected String _id
protected String _name
protected String _description
protected List<String> _parameters
protected Query.ResultType _resultType
| Constructor Detail |
|---|
public AbstractQuery()
| Method Detail |
|---|
public String getId()
Query
getId in interface Querypublic void setId(String id)
id - public String getName()
Query
getName in interface Querypublic void setName(String name)
name - public String getDescription()
Query
getDescription in interface Querypublic void setDescription(String description)
description - public Query.ResultType getResultType()
Query
getResultType in interface Querypublic void setResultType(Query.ResultType resultType)
resultType - the query result type.protected List<String> _buildParameters(String query)
query - the query containing parameters.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||