Class ExpressionQueryFactoryImpl

  • All Implemented Interfaces:
    QueryFactory<java.lang.String>

    public class ExpressionQueryFactoryImpl
    extends java.lang.Object
    implements QueryFactory<java.lang.String>
    The ExpressionCriteriaFactoryImpl is capable of creating query String instances from Criteria instances; the query String instances which can be used as parts of SQL statements.
    Version:
    $Id: $Id
    Author:
    steiner
    • Constructor Detail

      • ExpressionQueryFactoryImpl

        public ExpressionQueryFactoryImpl()
    • Method Detail

      • fromCriteria

        public java.lang.String fromCriteria​(Criteria aCriteria)
        Generates a query from the provided Criteria (tree).
        Specified by:
        fromCriteria in interface QueryFactory<java.lang.String>
        Parameters:
        aCriteria - The Criteria from which to generate the query.
        Returns:
        A query generated from the provided Criteria (tree).
      • toQuery

        public java.lang.String toQuery​(IntersectWithCriteria aCriteriaNode,
                                        boolean isCriteriaTreeRoot)
        Generates a query string for the given CriteriaNode.
        Parameters:
        aCriteriaNode - The CriteriaNode for which to generate the query.
        isCriteriaTreeRoot - True in case the CriteriaNode is the root of the Criteria tree. Being root means dedicated handling of the CriteriaNode then not being root.
        Returns:
        The query generated from the given CriteriaNode.
      • toQuery

        public java.lang.String toQuery​(LessThanCriteria<?> aCriteriaLeaf,
                                        boolean isCriteriaTreeRoot)
        Generates a query string for the given CriteriaLeaf.
        Parameters:
        aCriteriaLeaf - The CriteriaLeaf for which to generate the query.
        isCriteriaTreeRoot - True in case the CriteriaLeaf is the root of the Criteria tree. Being root means dedicated handling of the CriteriaLeaf then not being root.
        Returns:
        The query generated from the given CriteriaLeaf.