Package org.chenile.query.service.impl
Class NamedQueryServiceSpringMybatisImpl
java.lang.Object
org.chenile.query.service.AbstractSearchServiceImpl
org.chenile.query.service.impl.NamedQueryServiceSpringMybatisImpl
- All Implemented Interfaces:
SearchService<Map<String,
Object>>
An implementation of the query service using Mybatis. The service accomplishes search by
first looking up a query name in a query store. It retrieves the metadata about the query
that includes a Mybatis query name. This is used to execute the query using Mybatis.
The results are returned back
-
Nested Class Summary
Nested classes/interfaces inherited from class org.chenile.query.service.AbstractSearchServiceImpl
AbstractSearchServiceImpl.EnhancedSearchRequest
-
Field Summary
Modifier and TypeFieldDescription(package private) org.slf4j.Logger
protected static final String
(package private) org.mybatis.spring.SqlSessionTemplate
Fields inherited from class org.chenile.query.service.AbstractSearchServiceImpl
contextContainer, ORDER_BY, queryStore
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected SearchResponse
doSearch
(AbstractSearchServiceImpl.EnhancedSearchRequest searchRequest, SearchResponse searchResponse, QueryMetadata queryMetadata) executeQuery
(String queryName, Map<String, Object> filters) executeQuery
(AbstractSearchServiceImpl.EnhancedSearchRequest searchRequest) private void
populateDropDownValues
(ColumnMetadata cmd, Map<String, Object> filters) protected int
processCountQuery
(Map<String, Object> filters, SearchResponse searchResponse, QueryMetadata queryMetadata) void
setSessionTemplate
(org.mybatis.spring.SqlSessionTemplate sessionTemplate) Methods inherited from class org.chenile.query.service.AbstractSearchServiceImpl
buildOrderByClause, constructBetweenQuery, constructContainsQuery, constructPagination, enhanceFiltersUsingMetadata, enhanceFiltersWithPropNamesPropValues, extractStateFromObject, getAllowedActionsForWorkflowEntity, getAllowedStatesForCurrentUser, makeSearchResponse, search, setContextContainer, setPaginationInResponse, setQueryStore
-
Field Details
-
logger
org.slf4j.Logger logger -
PAGINATION_PART
- See Also:
-
sessionTemplate
-
-
Constructor Details
-
NamedQueryServiceSpringMybatisImpl
-
-
Method Details
-
search
-
setSessionTemplate
public void setSessionTemplate(org.mybatis.spring.SqlSessionTemplate sessionTemplate) - Parameters:
sessionTemplate
- the sessionTemplate to set
-
doSearch
protected SearchResponse doSearch(AbstractSearchServiceImpl.EnhancedSearchRequest searchRequest, SearchResponse searchResponse, QueryMetadata queryMetadata) - Specified by:
doSearch
in classAbstractSearchServiceImpl
-
populateDropDownValues
-
processCountQuery
protected int processCountQuery(Map<String, Object> filters, SearchResponse searchResponse, QueryMetadata queryMetadata) - Specified by:
processCountQuery
in classAbstractSearchServiceImpl
-
executeQuery
-
executeQuery
- Specified by:
executeQuery
in classAbstractSearchServiceImpl
-