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 java.util.Map<?,​?>> Expression<java.lang.Integer> mapSize​(Expression<M> mapExpression)
        Create an expression that tests the size of a map.

        NOTE : Due to type-erasure we cannot name this the same as CriteriaBuilder.size(javax.persistence.criteria.Expression<C>)

        Parameters:
        mapExpression - The expression resolving to a Map for which we want to know the size
        Returns:
        size expression
      • mapSize

        <M extends java.util.Map<?,​?>> Expression<java.lang.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