Interface SampleQuery
- All Known Implementing Classes:
AllProductsSampleQuery,CountFromLanguageSampleQuery,CountTypeInstancesSampleQuery,OracleCheckEncodingSampleQuery,ShowMySqlTablesSampleQuery,TotalItemCountSampleQuery
public interface SampleQuery
Interface which defines sample query which can be used on FlexibleSearch console page. The query can be
FlexibleSearch query or direct SQL query, implementing class have to define whether query is FlexibleSearch based or
direct. Also database compatibility have to be defined.
-
Method Summary
Modifier and TypeMethodDescriptionGets the additional optional description (to be displayed below main description).getQuery()Gets the query string.Gets the query description.booleanChecks if query is compatible wit current database.booleanChecks if query is flexible search.
-
Method Details
-
getQueryDescription
String getQueryDescription()Gets the query description.- Returns:
- the query description
-
getAdditionalDescription
String getAdditionalDescription()Gets the additional optional description (to be displayed below main description).- Returns:
- the additional description
-
getQuery
String getQuery()Gets the query string.- Returns:
- the query
-
isCompatibleWitCurrentDb
boolean isCompatibleWitCurrentDb()Checks if query is compatible wit current database.- Returns:
- true, if is compatible wit current database
-
isFlexibleSearch
boolean isFlexibleSearch()Checks if query is flexible search. False means that query is direct SQL query.- Returns:
- true, if is flexible search
-