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
Modifier and Type Method Description static voidexpandBindings(Map<String,Integer> bindingMap, Map<String,String> columnBindingMap, Map<String,ExtendedAttribute<?,?>> attributeEntries, ClauseType clause, AbstractCommonQueryBuilder<?,?,?,?,?> queryBuilder, String keyFunctionExpression, boolean enableElementCollectionIdCutoff)static AttributeHoldergetAttributeForJoining(EntityMetamodel metamodel, Expression resolvedExpression)static AttributeHoldergetAttributeForJoining(EntityMetamodel metamodel, PathExpression expression)static AttributeHoldergetAttributeForJoining(EntityMetamodel metamodel, javax.persistence.metamodel.Type<?> baseNodeType, Expression joinExpression, String baseNodeAlias)static Map<String,ExtendedAttribute<?,?>>getCollectionAttributeEntries(EntityMetamodel metamodel, javax.persistence.metamodel.EntityType<?> entityType, ExtendedAttribute<?,?> attribute)static Collection<String>getEmbeddedPropertyPaths(Map<String,? extends ExtendedAttribute<?,?>> attributeEntries, String attributeName, boolean needsElementCollectionIdCutoff, boolean filterCollections)
-
Method Details
-
expandBindings
public static void expandBindings(Map<String,Integer> bindingMap, Map<String,String> columnBindingMap, Map<String,ExtendedAttribute<?,?>> attributeEntries, ClauseType clause, AbstractCommonQueryBuilder<?,?,?,?,?> queryBuilder, String keyFunctionExpression, boolean enableElementCollectionIdCutoff) -
getEmbeddedPropertyPaths
public static Collection<String> getEmbeddedPropertyPaths(Map<String,? extends ExtendedAttribute<?,?>> attributeEntries, String attributeName, boolean needsElementCollectionIdCutoff, boolean filterCollections) -
getCollectionAttributeEntries
public static Map<String,ExtendedAttribute<?,?>> getCollectionAttributeEntries(EntityMetamodel metamodel, javax.persistence.metamodel.EntityType<?> entityType, ExtendedAttribute<?,?> attribute) -
getAttributeForJoining
public static AttributeHolder getAttributeForJoining(EntityMetamodel metamodel, PathExpression expression) -
getAttributeForJoining
public static AttributeHolder getAttributeForJoining(EntityMetamodel metamodel, Expression resolvedExpression) -
getAttributeForJoining
public static AttributeHolder getAttributeForJoining(EntityMetamodel metamodel, javax.persistence.metamodel.Type<?> baseNodeType, Expression joinExpression, String baseNodeAlias)
-