Class BooleanExpressionPredicateHelper
java.lang.Object
com.broadleafcommerce.common.jpa.data.dialect.BooleanExpressionPredicateHelper
Helper class for the
BooleanExpressionPredicate.- Author:
- Dima Myroniuk (dmyroniuk)
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidhandle(org.hibernate.sql.ast.tree.predicate.BooleanExpressionPredicate predicate, org.hibernate.sql.ast.spi.AbstractSqlAstTranslator<?> translator, Consumer<org.hibernate.sql.ast.tree.predicate.BooleanExpressionPredicate> fallback) Handles conversion from Boolean as 'Y' or 'N' if the provided predicate hasPrimitiveBooleanConverter.static booleanhasPrimitiveBooleanConverter(org.hibernate.sql.ast.tree.predicate.BooleanExpressionPredicate predicate) Determine if the boolean predicate hasPrimitiveBooleanConverter.
-
Method Details
-
handle
public static void handle(org.hibernate.sql.ast.tree.predicate.BooleanExpressionPredicate predicate, org.hibernate.sql.ast.spi.AbstractSqlAstTranslator<?> translator, Consumer<org.hibernate.sql.ast.tree.predicate.BooleanExpressionPredicate> fallback) Handles conversion from Boolean as 'Y' or 'N' if the provided predicate hasPrimitiveBooleanConverter.- Parameters:
predicate- boolean expression predicatetranslator- SQL AST translatorfallback- fallback consumer, that is called if the provided predicate doesn't havePrimitiveBooleanConverter
-
hasPrimitiveBooleanConverter
public static boolean hasPrimitiveBooleanConverter(org.hibernate.sql.ast.tree.predicate.BooleanExpressionPredicate predicate) Determine if the boolean predicate hasPrimitiveBooleanConverter.- Parameters:
predicate- boolean expression predicate- Returns:
- true if boolean predicate has
PrimitiveBooleanConverter, false otherwise
-