Interface HibernateCriteriaBuilder

  • All Superinterfaces:
    CriteriaBuilder

    public interface HibernateCriteriaBuilder
    extends CriteriaBuilder
    Hibernate extensions to the JPA CriteriaBuilder. Currently there are no extensions; these are coming in 6.0
    • Method Detail

      • mapSize

        <M extends Map<?,​?>> Expression<Integer> mapSize​(M map)
        Create an expression that tests the size of a map.
        Parameters:
        map - The Map for which we want to know the size
        Returns:
        size expression
      • asc

        Order asc​(Expression<?> x,
                  boolean nullsFirst)
        Create an ordering by the ascending value of the expression.
        Parameters:
        x - expression used to define the ordering
        nullsFirst - Whether null should be sorted first
        Returns:
        ascending ordering corresponding to the expression
      • desc

        Order desc​(Expression<?> x,
                   boolean nullsFirst)
        Create an ordering by the descending value of the expression.
        Parameters:
        x - expression used to define the ordering
        nullsFirst - Whether null should be sorted first
        Returns:
        descending ordering corresponding to the expression