Class AbstractMethodCollectionAttribute<X,Y>
java.lang.Object
com.blazebit.persistence.view.impl.metamodel.AbstractAttribute<X,Y>
com.blazebit.persistence.view.impl.metamodel.AbstractMethodAttribute<X,C>
com.blazebit.persistence.view.impl.metamodel.AbstractMethodPluralAttribute<X,Collection<Y>,Y>
com.blazebit.persistence.view.impl.metamodel.attribute.AbstractMethodCollectionAttribute<X,Y>
- All Implemented Interfaces:
Attribute<X,Collection<Y>>
,CollectionAttribute<X,Y>
,MethodAttribute<X,Collection<Y>>
,MethodCollectionAttribute<X,Y>
,MethodPluralAttribute<X,Collection<Y>,Y>
,PluralAttribute<X,Collection<Y>,Y>
- Direct Known Subclasses:
CorrelatedMethodCollectionAttribute
,MappingMethodCollectionAttribute
public abstract class AbstractMethodCollectionAttribute<X,Y> extends AbstractMethodPluralAttribute<X,Collection<Y>,Y> implements MethodCollectionAttribute<X,Y>
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Nested Class Summary
Nested classes/interfaces inherited from class com.blazebit.persistence.view.impl.metamodel.AbstractAttribute
AbstractAttribute.ExpressionLocation
Nested classes/interfaces inherited from interface com.blazebit.persistence.view.metamodel.Attribute
Attribute.AttributeType, Attribute.MappingType, Attribute.MemberType
Nested classes/interfaces inherited from interface com.blazebit.persistence.view.metamodel.PluralAttribute
PluralAttribute.CollectionType, PluralAttribute.ElementCollectionType
-
Field Summary
Fields inherited from class com.blazebit.persistence.view.impl.metamodel.AbstractAttribute
batchSize, convertedJavaType, correlated, correlationBasis, correlationBasisExpression, correlationExpression, correlationKeyAlias, correlationProvider, correlationProviderFactory, correlationResult, correlationResultExpression, declaringType, EMPTY, fetches, fetchStrategy, id, javaType, limitExpression, mapping, mappingExpression, mappingType, offsetExpression, orderByItems, subqueryAlias, subqueryExpression, subqueryProvider, subqueryProviderFactory, subqueryResultExpression, updateMappableAttribute
-
Constructor Summary
Constructors Constructor Description AbstractMethodCollectionAttribute(ManagedViewTypeImplementor<X> viewType, MethodAttributeMapping mapping, MetamodelBuildingContext context, int attributeIndex, int dirtyStateIndex, EmbeddableOwner embeddableMapping)
-
Method Summary
Modifier and Type Method Description CollectionInstantiatorImplementor<?,?>
getCollectionInstantiator()
PluralAttribute.CollectionType
getCollectionType()
ContainerAccumulator<?>
getContainerAccumulator()
Comparator<?>
getElementCollectionComparator()
Class<Comparator<?>>
getElementCollectionComparatorClass()
protected Type<?>
getKeyType()
MapInstantiatorImplementor<?,?>
getMapInstantiator()
boolean
isElementCollectionForcedUnique()
boolean
isElementCollectionOrdered()
boolean
isElementCollectionSorted()
boolean
isForcedUnique()
boolean
isIndexed()
protected boolean
isKeySubview()
boolean
isOrdered()
boolean
isSorted()
protected Map<ManagedViewTypeImplementor<?>,String>
keyInheritanceSubtypeMappings()
Methods inherited from class com.blazebit.persistence.view.impl.metamodel.AbstractMethodPluralAttribute
elementInheritanceSubtypeMappings, getAllowedSubtypes, getAttributeType, getComparator, getComparatorClass, getDirtyStateIndex, getElementCollectionType, getElementInheritanceSubtypeMappings, getElementType, getInverseRemoveStrategy, getMappedBy, getParentRequiringCreateSubtypes, getParentRequiringUpdateSubtypes, getPersistCascadeAllowedSubtypes, getReadOnlyAllowedSubtypes, getUpdateCascadeAllowedSubtypes, getWritableMappedByMappings, isCollection, isDeleteCascaded, isDisallowOwnedUpdatableSubview, isMutable, isOptimisticLockProtected, isOrphanRemoval, isPersistCascaded, isSubview, isUpdatable, isUpdateCascaded
Methods inherited from class com.blazebit.persistence.view.impl.metamodel.AbstractMethodAttribute
checkAttribute, createAllowedSubtypesSet, createCollectionFactory, createMapFactory, createParentRequiringCreateSubtypesSet, createParentRequiringUpdateSubtypesSet, determineDirtyStateIndex, determineMutable, determineOptimisticLockProtected, determinePersistSubtypeSet, determineUpdateSubtypeSet, extractAttributeName, getAttributeIndex, getAttributeName, getFilter, getFilters, getJavaMethod, getLocation, getMemberType, getName, getSetterMethod, getTypeArguments, getValue, getViewTypes, hasDirtyStateIndex, isOptimizeCollectionActionsEnabled, isUpdatableOnly, needsDirtyTracker
Methods inherited from class com.blazebit.persistence.view.impl.metamodel.AbstractAttribute
checkNestedAttribute, createCollectionInstantiator, createMapInstantiator, createSimpleExpression, createValueContainerAccumulator, determineForcedUnique, determineIndexMapping, determineKeyMapping, getBatchSize, getCollectionJoinMappings, getConvertedJavaType, getCorrelated, getCorrelationBasis, getCorrelationBasisExpression, getCorrelationExpression, getCorrelationKeyAlias, getCorrelationPredicate, getCorrelationProvider, getCorrelationProviderFactory, getCorrelationResult, getCorrelationResultExpression, getDeclaringType, getFetches, getFetchStrategy, getJavaType, getKeyFetches, getKeyMappingExpression, getLimitExpression, getMapping, getMappingExpression, getMappingIndexExpression, getMappingType, getOffsetExpression, getOrderByItems, getSubqueryAlias, getSubqueryExpression, getSubqueryProvider, getSubqueryProviderFactory, getUpdateMappableAttribute, hasJoinFetchedCollections, hasJpaManagedAttributes, hasSelectOrSubselectFetchedAttributes, isEmbedded, isFilterNulls, isId, isQueryParameter, isSubquery, isUpdateMappable, parseOrderByItems, renderCorrelationBasis, renderCorrelationResult, renderExpression, renderLimit, renderMapping, renderSubqueryExpression, renderSubqueryExpression, replaceThisFromMapping, stripThisFromMapping
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.metamodel.Attribute
getAttributeType, getBatchSize, getConvertedJavaType, getDeclaringType, getFetches, getFetchStrategy, getJavaType, getLimitExpression, getMappingType, getMemberType, getOffsetExpression, getOrderByItems, isCollection, isCorrelated, isSubquery, isSubview, renderLimit
Methods inherited from interface com.blazebit.persistence.view.metamodel.MethodAttribute
getAllowedSubtypes, getFilter, getFilters, getInverseRemoveStrategy, getJavaMethod, getMappedBy, getName, getParentRequiringCreateSubtypes, getParentRequiringUpdateSubtypes, getPersistCascadeAllowedSubtypes, getReadOnlyAllowedSubtypes, getUpdateCascadeAllowedSubtypes, isDeleteCascaded, isMutable, isOptimisticLockProtected, isOrphanRemoval, isPersistCascaded, isUpdatable, isUpdateCascaded
Methods inherited from interface com.blazebit.persistence.view.metamodel.PluralAttribute
getComparator, getComparatorClass, getElementCollectionType, getElementInheritanceSubtypeMappings, getElementType
-
Constructor Details
-
AbstractMethodCollectionAttribute
public AbstractMethodCollectionAttribute(ManagedViewTypeImplementor<X> viewType, MethodAttributeMapping mapping, MetamodelBuildingContext context, int attributeIndex, int dirtyStateIndex, EmbeddableOwner embeddableMapping)
-
-
Method Details
-
getCollectionType
- Specified by:
getCollectionType
in interfacePluralAttribute<X,Collection<Y>,Y>
- Specified by:
getCollectionType
in classAbstractAttribute<X,Collection<Y>>
-
getContainerAccumulator
- Specified by:
getContainerAccumulator
in classAbstractAttribute<X,Collection<Y>>
-
getCollectionInstantiator
- Specified by:
getCollectionInstantiator
in interfaceCollectionAttribute<X,Y>
- Specified by:
getCollectionInstantiator
in classAbstractAttribute<X,Collection<Y>>
-
getMapInstantiator
- Specified by:
getMapInstantiator
in classAbstractAttribute<X,Collection<Y>>
-
isIndexed
public boolean isIndexed()- Specified by:
isIndexed
in interfacePluralAttribute<X,Collection<Y>,Y>
- Specified by:
isIndexed
in classAbstractAttribute<X,Collection<Y>>
-
isSorted
public boolean isSorted()- Specified by:
isSorted
in interfacePluralAttribute<X,Collection<Y>,Y>
- Overrides:
isSorted
in classAbstractMethodPluralAttribute<X,Collection<Y>,Y>
-
isOrdered
public boolean isOrdered()- Specified by:
isOrdered
in interfacePluralAttribute<X,Collection<Y>,Y>
- Overrides:
isOrdered
in classAbstractMethodPluralAttribute<X,Collection<Y>,Y>
-
isForcedUnique
public boolean isForcedUnique()- Specified by:
isForcedUnique
in interfacePluralAttribute<X,Collection<Y>,Y>
- Specified by:
isForcedUnique
in classAbstractAttribute<X,Collection<Y>>
-
isElementCollectionOrdered
public boolean isElementCollectionOrdered()- Specified by:
isElementCollectionOrdered
in interfacePluralAttribute<X,Collection<Y>,Y>
- Specified by:
isElementCollectionOrdered
in classAbstractAttribute<X,Collection<Y>>
-
isElementCollectionSorted
public boolean isElementCollectionSorted()- Specified by:
isElementCollectionSorted
in interfacePluralAttribute<X,Collection<Y>,Y>
- Specified by:
isElementCollectionSorted
in classAbstractAttribute<X,Collection<Y>>
-
isElementCollectionForcedUnique
public boolean isElementCollectionForcedUnique()- Specified by:
isElementCollectionForcedUnique
in interfacePluralAttribute<X,Collection<Y>,Y>
- Specified by:
isElementCollectionForcedUnique
in classAbstractAttribute<X,Collection<Y>>
-
getElementCollectionComparator
- Specified by:
getElementCollectionComparator
in interfacePluralAttribute<X,Collection<Y>,Y>
-
getElementCollectionComparatorClass
- Specified by:
getElementCollectionComparatorClass
in interfacePluralAttribute<X,Collection<Y>,Y>
-
getKeyType
- Specified by:
getKeyType
in classAbstractAttribute<X,Collection<Y>>
-
keyInheritanceSubtypeMappings
- Specified by:
keyInheritanceSubtypeMappings
in classAbstractAttribute<X,Collection<Y>>
-
isKeySubview
protected boolean isKeySubview()- Specified by:
isKeySubview
in classAbstractAttribute<X,Collection<Y>>
-