Package com.blazebit.persistence.impl
Class ExpressionUtils
java.lang.Object
com.blazebit.persistence.impl.ExpressionUtils
- Since:
- 1.0.0
- Author:
- Christian Beikov, Moritz Becker
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanstatic javax.persistence.FetchTypegetFetchType(javax.persistence.metamodel.Attribute<?, ?> attr) static booleanstatic booleanisNullable(EntityMetamodel metamodel, com.blazebit.persistence.impl.ConstantifiedJoinNodeAttributeCollector constantifiedJoinNodeAttributeCollector, Expression expr) static booleanisNullable(EntityMetamodel metamodel, Map<String, javax.persistence.metamodel.Type<?>> rootTypes, Expression expr) static ExpressionreplaceSubexpression(Expression superExpression, String placeholder, Expression substitute) static StringunwrapStringLiteral(String stringLiteral)
-
Method Details
-
unwrapStringLiteral
- Parameters:
stringLiteral- A possibly quoted string literal- Returns:
- The stringLiteral without quotes
-
isFunctionFunctionExpression
-
isNullable
public static boolean isNullable(EntityMetamodel metamodel, com.blazebit.persistence.impl.ConstantifiedJoinNodeAttributeCollector constantifiedJoinNodeAttributeCollector, Expression expr) -
isNullable
public static boolean isNullable(EntityMetamodel metamodel, Map<String, javax.persistence.metamodel.Type<?>> rootTypes, Expression expr) -
getFetchType
public static javax.persistence.FetchType getFetchType(javax.persistence.metamodel.Attribute<?, ?> attr) -
containsSubqueryExpression
-
containsSizeExpression
-
replaceSubexpression
public static Expression replaceSubexpression(Expression superExpression, String placeholder, Expression substitute)
-