Class HqlQueryTransformer

    • Constructor Detail

      • HqlQueryTransformer

        public HqlQueryTransformer()
    • Method Detail

      • transformHqlQuery

        public abstract String transformHqlQuery​(String hqlQuery,
                                                 Map<String,​String> requestParameters,
                                                 Map<String,​Object> queryNamedParameters)
        Returns the transformed hql query
        hqlQuery - original hql query
        requestParameters - the parameters of the request
        queryNamedParameters - the named parameters of the hql query that will be used to fetch the table data. If the transformed hql query uses named parameters that did not exist in the original hql query, the named parameters must be added to this map
        the transformed hql query
      • transFormQuery

        public static String transFormQuery​(String hqlQuery,
                                            Map<String,​Object> queryNamedParameters,
                                            Map<String,​String> parameters,
                                            BaseOBObject obj,
                                            javax.enterprise.inject.Instance<HqlQueryTransformer> hqlQueryTransformers)
        If there is any HQL Query Transformer defined, uses its transformHqlQuery to transform the query
        hqlQuery - the original HQL query
        queryNamedParameters - the named parameters that will be used in the query
        parameters - the parameters of the request
        the transformed query