Interface JpaRSQLCriteriaBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      javax.persistence.criteria.Predicate createCriteria​(cz.jirutka.rsql.parser.ast.ComparisonNode comparisonNode, Class<?> rootType)
      Create a Predicate based on a comparison Node and root repository domain type.
      javax.persistence.criteria.Predicate createCriteria​(cz.jirutka.rsql.parser.ast.LogicalNode logicalNode, Class<?> rootType)
      Create a Predicate based on a logical Node and root repository domain type.
      javax.persistence.criteria.Predicate createCriteria​(cz.jirutka.rsql.parser.ast.Node node, Class<?> rootType)
      Create a Predicate based on a generic Node and root repository domain type.
      javax.persistence.criteria.Predicate createCriteria​(String selector, cz.jirutka.rsql.parser.ast.ComparisonOperator operator, List<String> arguments, Class<?> rootType)
      Create a Predicate based on a set of comparison parameters and a root repository domain type.
    • Method Detail

      • createCriteria

        javax.persistence.criteria.Predicate createCriteria​(cz.jirutka.rsql.parser.ast.Node node,
                                                            Class<?> rootType)
        Create a Predicate based on a generic Node and root repository domain type.
        Parameters:
        node - A generic node structure in a structured RSQL query
        rootType - The root repository domain type
        Returns:
        The query criteria
      • createCriteria

        javax.persistence.criteria.Predicate createCriteria​(cz.jirutka.rsql.parser.ast.LogicalNode logicalNode,
                                                            Class<?> rootType)
        Create a Predicate based on a logical Node and root repository domain type. Logical nodes are 'and'/'or' combinations of comparison nodes.
        Parameters:
        logicalNode - A logical node structure in a structured RSQL query
        rootType - the root repository domain type
        Returns:
        The query criteria
      • createCriteria

        javax.persistence.criteria.Predicate createCriteria​(cz.jirutka.rsql.parser.ast.ComparisonNode comparisonNode,
                                                            Class<?> rootType)
        Create a Predicate based on a comparison Node and root repository domain type. Comparison nodes filter values on a specific field.
        Parameters:
        comparisonNode - A comparison node structure in a structured RSQL query
        rootType - the root repository domain type
        Returns:
        The query criteria
      • createCriteria

        javax.persistence.criteria.Predicate createCriteria​(String selector,
                                                            cz.jirutka.rsql.parser.ast.ComparisonOperator operator,
                                                            List<String> arguments,
                                                            Class<?> rootType)
        Create a Predicate based on a set of comparison parameters and a root repository domain type.
        Parameters:
        selector - The field
        operator - The type of comparison (=,!=,lt,etc...)
        arguments - One or more values to check against the field
        rootType - the root repository domain type
        Returns:
        The query criteria