|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

public interface SearchQueryHandler
Defines methods for an object that handles search query requests.
| Field Summary | |
|---|---|
static int |
FEATURE_MAX_NUMBER
Feature that allows specifying the maximum number of results to be returned. |
static int |
FEATURE_OFFSET
Feature that allows specifying an index in the list of results, as a starting popublic final static int for results to be returned. |
static int |
FEATURE_REGEXP
Feature that allows to search on string by a regular expression. |
static int |
SUPPORT_NONE
Support level for features that are not supported. |
static int |
SUPPORT_NORMAL
Support level for features that are available for use under normal circumstances. |
static int |
SUPPORT_OPTIMAL
Support level for features that are optimally supported. |
static int |
SUPPORT_WEAK
Support level for features that are supported, but not recommended when performance is critical. |
| Method Summary | |
|---|---|
String |
createSqlString(SearchQuery query)
Makes a String of a query, taking into consideration if the database supports offset and maxnumber features. |
int |
getSupportLevel(Constraint constraint,
SearchQuery query)
Gets the level at which a constraint is supported for a query by this handler. |
int |
getSupportLevel(int feature,
SearchQuery query)
Gets the level at which a feature is supported for a query by this handler. |
| Field Detail |
|---|
static final int SUPPORT_NONE
static final int SUPPORT_WEAK
static final int SUPPORT_NORMAL
static final int SUPPORT_OPTIMAL
static final int FEATURE_MAX_NUMBER
SearchQuery.getMaxNumber(),
Constant Field Valuesstatic final int FEATURE_OFFSET
SearchQuery.getOffset(),
Constant Field Valuesstatic final int FEATURE_REGEXP
SearchQuery.getOffset(),
Constant Field Values| Method Detail |
|---|
int getSupportLevel(int feature,
SearchQuery query)
throws SearchQueryException
SearchQueryException
int getSupportLevel(Constraint constraint,
SearchQuery query)
throws SearchQueryException
SearchQueryException
String createSqlString(SearchQuery query)
throws SearchQueryException
query - the query to convert to sql
SearchQueryException - when error occurs while making the string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||