Class ParameterAttributeMapping
java.lang.Object
com.blazebit.persistence.view.impl.metamodel.AttributeMapping
com.blazebit.persistence.view.impl.metamodel.ParameterAttributeMapping
- All Implemented Interfaces:
EntityViewAttributeMapping
,EntityViewParameterMapping
public class ParameterAttributeMapping extends AttributeMapping implements EntityViewParameterMapping
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.blazebit.persistence.view.spi.EntityViewAttributeMapping
EntityViewAttributeMapping.ContainerBehavior, EntityViewAttributeMapping.ElementCollectionBehavior
-
Field Summary
Fields inherited from class com.blazebit.persistence.view.impl.metamodel.AttributeMapping
attribute, comparatorClass, containerBehavior, context, createEmptyFlatViews, declaredElementType, declaredElementTypeClass, declaredKeyType, declaredKeyTypeClass, declaredType, declaredTypeClass, defaultBatchSize, disallowOwnedUpdatableSubview, elementCollectionBehavior, elementCollectionComparatorClass, elementCollectionForceUniqueness, elementCollectionType, elementInheritanceSubtypeClassMappings, elementInheritanceSubtypeMappings, elementInheritanceSubtypes, elementType, elementViewMapping, embeddableAttributeMap, embeddableElementInheritanceSubtypesMap, embeddableElementTypeMap, embeddableInheritanceSubtypesMap, embeddableKeyInheritanceSubtypesMap, embeddableKeyTypeMap, embeddableTypeMap, forceUniqueness, inheritanceSubtypeClassMappings, inheritanceSubtypeMappings, inheritanceSubtypes, isCollection, keyInheritanceSubtypeClassMappings, keyInheritanceSubtypeMappings, keyInheritanceSubtypes, keyType, keyViewMapping, limitExpression, mapping, mappingIndex, offsetExpression, orderByItems, possibleIndexTargets, possibleTargets, resolvedTypeMappings, type, typeMapping, viewMapping
-
Constructor Summary
Constructors Constructor Description ParameterAttributeMapping(ViewMapping viewMapping, Annotation mapping, MappingIndex mappingIndex, MetamodelBootContext context, ConstructorMapping constructor, int index, boolean isCollection, PluralAttribute.ElementCollectionType elementCollectionType, Class<?> declaredTypeClass, Class<?> declaredKeyTypeClass, Class declaredElementTypeClass, Type type, Type keyType, Type elementType, Map<Class<?>,String> inheritanceSubtypeClassMappings, Map<Class<?>,String> keyInheritanceSubtypeClassMappings, Map<Class<?>,String> elementInheritanceSubtypeClassMappings)
-
Method Summary
Methods inherited from class com.blazebit.persistence.view.impl.metamodel.AttributeMapping
circularDependencyDebug, circularDependencyError, determineIndexed, getBaseTypes, getComparatorClass, getContainerBehavior, getCreateEmptyFlatViews, getDeclaredElementType, getDeclaredKeyType, getDeclaredType, getDefaultBatchSize, getElementCollectionBehavior, getElementCollectionComparatorClass, getElementCollectionType, getElementInheritanceSubtypes, getElementType, getElementTypes, getElementViewMapping, getInheritanceSubtypes, getJavaType, getKeyInheritanceSubtypes, getKeyType, getKeyTypes, getKeyViewMapping, getLimitExpression, getMapping, getMappingIndex, getOffsetExpression, getOrderByItems, getPossibleIndexTargetTypes, getPossibleTargetTypes, getType, initializeViewMappings, isCollection, isDisallowOwnedUpdatableSubview, isElementCollectionForceUniqueness, isForceUniqueness, isSorted, setContainerDefault, setContainerIndexed, setContainerOrdered, setContainerSorted, setCreateEmptyFlatViews, setDefaultBatchSize, setDisallowOwnedUpdatableSubview, setElementCollectionDefault, setElementCollectionForceUniqueness, setElementCollectionOrdered, setElementCollectionSorted, setForceUniqueness, setLimit, unknownSubviewType, validateDependencies
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.blazebit.persistence.view.spi.EntityViewAttributeMapping
getComparatorClass, getContainerBehavior, getCreateEmptyFlatViews, getDeclaredElementType, getDeclaredKeyType, getDeclaredType, getDefaultBatchSize, getElementCollectionBehavior, getElementCollectionComparatorClass, getLimitExpression, getOffsetExpression, getOrderByItems, isCollection, isDisallowOwnedUpdatableSubview, isElementCollectionForceUniqueness, isForceUniqueness, setContainerDefault, setContainerIndexed, setContainerOrdered, setContainerSorted, setCreateEmptyFlatViews, setDefaultBatchSize, setDisallowOwnedUpdatableSubview, setElementCollectionDefault, setElementCollectionForceUniqueness, setElementCollectionOrdered, setElementCollectionSorted, setForceUniqueness, setLimit
-
Constructor Details
-
ParameterAttributeMapping
public ParameterAttributeMapping(ViewMapping viewMapping, Annotation mapping, MappingIndex mappingIndex, MetamodelBootContext context, ConstructorMapping constructor, int index, boolean isCollection, PluralAttribute.ElementCollectionType elementCollectionType, Class<?> declaredTypeClass, Class<?> declaredKeyTypeClass, Class declaredElementTypeClass, Type type, Type keyType, Type elementType, Map<Class<?>,String> inheritanceSubtypeClassMappings, Map<Class<?>,String> keyInheritanceSubtypeClassMappings, Map<Class<?>,String> elementInheritanceSubtypeClassMappings)
-
-
Method Details
-
getDeclaringConstructor
- Specified by:
getDeclaringConstructor
in interfaceEntityViewParameterMapping
-
getDeclaringView
- Specified by:
getDeclaringView
in interfaceEntityViewAttributeMapping
-
getIndex
public int getIndex()- Specified by:
getIndex
in interfaceEntityViewParameterMapping
-
isId
public boolean isId()- Specified by:
isId
in classAttributeMapping
-
isVersion
public boolean isVersion()- Specified by:
isVersion
in classAttributeMapping
-
getErrorLocation
- Specified by:
getErrorLocation
in classAttributeMapping
-
getMappedBy
- Specified by:
getMappedBy
in classAttributeMapping
-
determineDisallowOwnedUpdatableSubview
public boolean determineDisallowOwnedUpdatableSubview(MetamodelBuildingContext context, EmbeddableOwner embeddableMapping, javax.persistence.metamodel.Attribute<?,?> updateMappableAttribute)- Specified by:
determineDisallowOwnedUpdatableSubview
in classAttributeMapping
-
determineMappedBy
public String determineMappedBy(javax.persistence.metamodel.ManagedType<?> managedType, String mapping, MetamodelBuildingContext context, EmbeddableOwner embeddableMapping)- Specified by:
determineMappedBy
in classAttributeMapping
-
determineWritableMappedByMappings
public Map<String,String> determineWritableMappedByMappings(javax.persistence.metamodel.ManagedType<?> managedType, String mappedBy, MetamodelBuildingContext context)- Specified by:
determineWritableMappedByMappings
in classAttributeMapping
-
getInverseRemoveStrategy
- Specified by:
getInverseRemoveStrategy
in classAttributeMapping
-
getLocation
-
getParameterAttribute
public <X> AbstractParameterAttribute<? super X,?> getParameterAttribute(MappingConstructorImpl<X> constructor, MetamodelBuildingContext context, EmbeddableOwner embeddableMapping)
-