Package com.blazebit.persistence.impl
Class JpaUtils
- java.lang.Object
-
- com.blazebit.persistence.impl.JpaUtils
-
public final class JpaUtils extends Object
- Since:
- 1.0.0
- Author:
- Christian Beikov
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidexpandBindings(Map<String,Integer> bindingMap, Map<String,String> columnBindingMap, Map<String,com.blazebit.persistence.spi.ExtendedAttribute<?,?>> attributeEntries, ClauseType clause, AbstractCommonQueryBuilder<?,?,?,?,?> queryBuilder, String keyFunctionExpression)static AttributeHoldergetAttributeForJoining(com.blazebit.persistence.parser.EntityMetamodel metamodel, com.blazebit.persistence.parser.expression.Expression resolvedExpression)static AttributeHoldergetAttributeForJoining(com.blazebit.persistence.parser.EntityMetamodel metamodel, com.blazebit.persistence.parser.expression.PathExpression expression)static AttributeHoldergetAttributeForJoining(com.blazebit.persistence.parser.EntityMetamodel metamodel, javax.persistence.metamodel.Type<?> baseNodeType, com.blazebit.persistence.parser.expression.Expression joinExpression, String baseNodeAlias)static Map<String,com.blazebit.persistence.spi.ExtendedAttribute<?,?>>getCollectionAttributeEntries(com.blazebit.persistence.parser.EntityMetamodel metamodel, javax.persistence.metamodel.EntityType<?> entityType, com.blazebit.persistence.spi.ExtendedAttribute<?,?> attribute)static Collection<String>getEmbeddedPropertyPaths(Map<String,com.blazebit.persistence.spi.ExtendedAttribute<?,?>> attributeEntries, String attributeName, boolean needsElementCollectionIdCutoff, boolean filterCollections)
-
-
-
Method Detail
-
expandBindings
public static void expandBindings(Map<String,Integer> bindingMap, Map<String,String> columnBindingMap, Map<String,com.blazebit.persistence.spi.ExtendedAttribute<?,?>> attributeEntries, ClauseType clause, AbstractCommonQueryBuilder<?,?,?,?,?> queryBuilder, String keyFunctionExpression)
-
getEmbeddedPropertyPaths
public static Collection<String> getEmbeddedPropertyPaths(Map<String,com.blazebit.persistence.spi.ExtendedAttribute<?,?>> attributeEntries, String attributeName, boolean needsElementCollectionIdCutoff, boolean filterCollections)
-
getCollectionAttributeEntries
public static Map<String,com.blazebit.persistence.spi.ExtendedAttribute<?,?>> getCollectionAttributeEntries(com.blazebit.persistence.parser.EntityMetamodel metamodel, javax.persistence.metamodel.EntityType<?> entityType, com.blazebit.persistence.spi.ExtendedAttribute<?,?> attribute)
-
getAttributeForJoining
public static AttributeHolder getAttributeForJoining(com.blazebit.persistence.parser.EntityMetamodel metamodel, com.blazebit.persistence.parser.expression.PathExpression expression)
-
getAttributeForJoining
public static AttributeHolder getAttributeForJoining(com.blazebit.persistence.parser.EntityMetamodel metamodel, com.blazebit.persistence.parser.expression.Expression resolvedExpression)
-
getAttributeForJoining
public static AttributeHolder getAttributeForJoining(com.blazebit.persistence.parser.EntityMetamodel metamodel, javax.persistence.metamodel.Type<?> baseNodeType, com.blazebit.persistence.parser.expression.Expression joinExpression, String baseNodeAlias)
-
-