Class QueryStrategy

    • Constructor Summary

      Constructors 
      Constructor Description
      QueryStrategy()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract java.lang.String buildHQLQuery​(java.util.Properties templateProperties, java.lang.String ddc, java.lang.String query)
      Builds a HQL query by the given parameters.
      abstract boolean isSpecialQuery​(java.lang.String query)
      Indicates if the given query needs to be replaced via a QueryStrategy.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QueryStrategy

        public QueryStrategy()
    • Method Detail

      • isSpecialQuery

        public abstract boolean isSpecialQuery​(java.lang.String query)
        Indicates if the given query needs to be replaced via a QueryStrategy.
        Parameters:
        query - The query in question.
        Returns:
        true if the given query needs to be replaced via a QueryStrategy, false otherwise.
      • buildHQLQuery

        public abstract java.lang.String buildHQLQuery​(java.util.Properties templateProperties,
                                                       java.lang.String ddc,
                                                       java.lang.String query)
        Builds a HQL query by the given parameters.
        Parameters:
        templateProperties - The properties to be used to build the HQL query.
        ddc - The DDC to be used to build the HQL query.
        query - The user query to be mapped to HQL.
        Returns:
        The built HQL query.