public class Query extends java.lang.Object implements QueryIF
ImplementationIF
Constructor and Description |
---|
Query(XSDContextIF ctx,
Querystructureext qseXSD)
Create the object.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the query.
|
protected ResultIF |
distinct(ResultIF result)
Get a distinct result based on the given result set.
|
ResultIF |
query(XSDContextIF context)
Get the result set from query.
|
protected ResultIF |
reorganize(OdsCacheIF cache,
QueryStructureExt qse,
ResultSetExt res)
The query result is ordered by the elements.
|
void |
setDisinct(boolean flag)
Request a disinct result set.
|
void |
setMaxRows(int maxRows)
Set the maximum number of row to be selected.
|
public Query(XSDContextIF ctx, Querystructureext qseXSD)
ctx
- the context.qseXSD
- the query structure xml descriptor.public void setMaxRows(int maxRows)
setMaxRows
in interface QueryIF
maxRows
- the maximum number.public void setDisinct(boolean flag)
setDisinct
in interface QueryIF
flag
- if true the result set is disinct.public ResultIF query(XSDContextIF context) throws AoException, java.text.ParseException
query
in interface QueryIF
context
- the context.AoException
- if ASAM ODS fails.java.text.ParseException
- if unable to parse the XML structure.protected ResultIF reorganize(OdsCacheIF cache, QueryStructureExt qse, ResultSetExt res)
qse
- The request.res
- the result.