Class FlexibleSearchNamedQueryService

  • All Implemented Interfaces:
    NamedQueryService

    public class FlexibleSearchNamedQueryService
    extends java.lang.Object
    implements NamedQueryService
    NamedQueryService implemented as an adapter for Flexible Search Service. This implementation receives requests to perform the search and uses the FlexibleSearchService service to leverage the final search.
    • Constructor Detail

      • FlexibleSearchNamedQueryService

        public FlexibleSearchNamedQueryService()
    • Method Detail

      • search

        public <T> java.util.List<T> search​(NamedQuery namedQuery)
        Description copied from interface: NamedQueryService
        Performs a search based on the given namedQuery attribute
        Specified by:
        search in interface NamedQueryService
        Type Parameters:
        T - - The type to be returned
        Parameters:
        namedQuery - - object holding everything related to the current query.
        Returns:
        the resulting list
      • getInternalNamedQuery

        protected NamedQueryConversionDto getInternalNamedQuery​(NamedQuery namedQuery,
                                                                java.lang.String query)
        Creates the internal named query object, which contains the query statement
        Parameters:
        namedQuery - the valued object to be used in the assignment
        query - the query assigned to this namedQuery
        Returns:
        an internal named query object, internal to this component.
      • setFlexibleSearchService

        public void setFlexibleSearchService​(FlexibleSearchService flexibleSearchService)
      • setNamedQueryFactory

        public void setNamedQueryFactory​(NamedQueryFactory namedQueryFactory)
      • getI18NService

        protected I18NService getI18NService()
      • setI18NService

        public void setI18NService​(I18NService i18NService)