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 boolean
static boolean
static javax.persistence.FetchType
getFetchType
(javax.persistence.metamodel.Attribute<?, ?> attr) static boolean
static boolean
isNullable
(EntityMetamodel metamodel, com.blazebit.persistence.impl.ConstantifiedJoinNodeAttributeCollector constantifiedJoinNodeAttributeCollector, Expression expr) static boolean
isNullable
(EntityMetamodel metamodel, Map<String, javax.persistence.metamodel.Type<?>> rootTypes, Expression expr) static Expression
replaceSubexpression
(Expression superExpression, String placeholder, Expression substitute) static String
unwrapStringLiteral
(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)
-