|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Query
Data interrogation query class.
Defines an interrogation query (SQL select, LDAP search, ...) on a specified data source, with optional parameters, which returns either a single result (i.e. name of a person in a LDAP directory), or a list of multiple structured results (i.e. list of products from a SQL database).
| Nested Class Summary | |
|---|---|
static class |
Query.ResultType
Query result type. |
| Field Summary | |
|---|---|
static Pattern |
PARAMETER_MATCHER
Parameter matcher. |
static String |
PARAMETER_PATTERN
Parameter pattern. |
| Method Summary | ||
|---|---|---|
|
execute(Map<String,String> parameterValues)
Execute the query with the specified parameter values. |
|
Map<String,String> |
getAdditionalConfiguration()
Get the additional query configuration information. |
|
|
getDataSource()
Get the datasource on which depends this query. |
|
String |
getDescription()
Get the query description. |
|
String |
getId()
Get the query ID. |
|
String |
getName()
Get the query name. |
|
List<String> |
getParameterNames()
Get the query parameter names. |
|
Query.ResultType |
getResultType()
Get the query result type. |
|
String |
getType()
Get the query type. |
|
| Field Detail |
|---|
static final String PARAMETER_PATTERN
static final Pattern PARAMETER_MATCHER
| Method Detail |
|---|
String getId()
String getName()
String getDescription()
String getType()
List<String> getParameterNames()
Query.ResultType getResultType()
Map<String,String> getAdditionalConfiguration()
<T extends DataSource> T getDataSource()
T - class implementing DataSource.
<R extends QueryResult> R execute(Map<String,String> parameterValues)
throws DataInclusionException
R - 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 | ||||||||