Class DirectQueryStrategy


  • public class DirectQueryStrategy
    extends QueryStrategy
    The DirectQueryStrategy can be used to build HQL-Where statements directly from the given string.
    Author:
    sts
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String buildHQLQuery​(java.util.Properties templateProperties, java.lang.String ddc, java.lang.String query)
      Does nothing, just returns the given query.
      boolean isSpecialQuery​(java.lang.String query)
      Always returns false.
      • Methods inherited from class java.lang.Object

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

      • DirectQueryStrategy

        public DirectQueryStrategy()
    • Method Detail

      • isSpecialQuery

        public boolean isSpecialQuery​(java.lang.String query)
        Always returns false. This means that the given query parameter is used as the where statement of the global query.
        Specified by:
        isSpecialQuery in class QueryStrategy
        Parameters:
        query - The user query to be mapped to HQL.
        Returns:
        false.
      • buildHQLQuery

        public java.lang.String buildHQLQuery​(java.util.Properties templateProperties,
                                              java.lang.String ddc,
                                              java.lang.String query)
        Does nothing, just returns the given query.
        Specified by:
        buildHQLQuery in class QueryStrategy
        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 given query.