Interface CriteriaFactory<Q>

Type Parameters:
Q - The type of the query statement, usually a String.
All Known Implementing Classes:
ExpressionCriteriaFactory

public interface CriteriaFactory<Q>
The CriteriaFactory constructs a Criteria (tree) from the provided query. The syntax of the query is implementation specific and may look as follows: ( ( ( City = 'Berlin' ) OR ( City = 'Munich' ) ) AND ( Surname = 'Miller' ) ) CAUTION: The syntax supported for the query statement is implementation depended! The ExpressionCriteriaFactory implements a CriteriaFactory being capable of parsing the above query.
Version:
$Id: $Id
Author:
steiner
  • Method Summary

    Modifier and Type
    Method
    Description
    fromQuery(Q aQuery)
    Parsed the given query and constructs a Criteria (tree).
  • Method Details

    • fromQuery

      Criteria fromQuery(Q aQuery) throws ParseException
      Parsed the given query and constructs a Criteria (tree). Whether a CriteriaNode or just a CriteriaLeaf is returned depends on the complexity of the query.
      Parameters:
      aQuery - The query to be parsed.
      Returns:
      A Criteria (tree) representing the query as an object oriented Criteria tree structure.
      Throws:
      ParseException - Thrown in case the query could not be parsed.