Class AbstractMethodPluralAttribute<X,C,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,C,Y>
- All Implemented Interfaces:
Attribute<X,,C> MethodAttribute<X,,C> PluralAttribute<X,C, Y>
- Direct Known Subclasses:
AbstractMethodCollectionAttribute,AbstractMethodListAttribute,AbstractMethodMapAttribute,AbstractMethodSetAttribute
public abstract class AbstractMethodPluralAttribute<X,C,Y>
extends AbstractMethodAttribute<X,C>
implements PluralAttribute<X,C,Y>
- Since:
- 1.0.0
- Author:
- Christian Beikov
-
Nested Class Summary
Nested classes/interfaces inherited from class com.blazebit.persistence.view.impl.metamodel.AbstractAttribute
AbstractAttribute.ExpressionLocationNested classes/interfaces inherited from interface com.blazebit.persistence.view.metamodel.Attribute
Attribute.AttributeType, Attribute.MappingType, Attribute.MemberTypeNested 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, isAggregate, javaType, limitExpression, mapping, mappingExpression, mappingType, offsetExpression, orderByItems, subqueryAlias, subqueryExpression, subqueryProvider, subqueryProviderFactory, subqueryResultExpression, updateMappableAttribute -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMethodPluralAttribute(ManagedViewTypeImplementor<X> viewType, MethodAttributeMapping mapping, MetamodelBuildingContext context, int attributeIndex, int dirtyStateIndex, EmbeddableOwner embeddableMapping) -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<ManagedViewTypeImplementor<?>,String> Comparator<?>Class<Comparator<?>>intMap<ManagedViewType<? extends Y>,String> booleanbooleanprotected booleanbooleanbooleanbooleanbooleanbooleanbooleanisSorted()booleanbooleanbooleanMethods 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, needsDirtyTrackerMethods inherited from class com.blazebit.persistence.view.impl.metamodel.AbstractAttribute
checkNestedAttribute, createCollectionInstantiator, createMapInstantiator, createSimpleExpression, createValueContainerAccumulator, determineForcedUnique, determineIndexMapping, determineKeyMapping, getBatchSize, getCollectionInstantiator, getCollectionJoinMappings, getCollectionType, getContainerAccumulator, getConvertedJavaType, getCorrelated, getCorrelationBasis, getCorrelationBasisExpression, getCorrelationExpression, getCorrelationKeyAlias, getCorrelationPredicate, getCorrelationProvider, getCorrelationProviderFactory, getCorrelationResult, getCorrelationResultExpression, getDeclaringType, getFetches, getFetchStrategy, getJavaType, getKeyFetches, getKeyMappingExpression, getKeyType, getLimitExpression, getMapInstantiator, getMapping, getMappingExpression, getMappingIndexExpression, getMappingType, getOffsetExpression, getOrderByItems, getSubqueryAlias, getSubqueryExpression, getSubqueryProvider, getSubqueryProviderFactory, getUpdateMappableAttribute, hasJoinFetchedCollections, hasJpaManagedAttributes, hasSelectOrSubselectFetchedAttributes, isAggregate, isElementCollectionForcedUnique, isElementCollectionOrdered, isElementCollectionSorted, isEmbedded, isFilterNulls, isForcedUnique, isId, isIndexed, isKeySubview, isQueryParameter, isSubquery, isUpdateMappable, keyInheritanceSubtypeMappings, parseOrderByItems, renderCorrelationBasis, renderCorrelationResult, renderExpression, renderLimit, renderMapping, renderSubqueryExpression, renderSubqueryExpression, replaceThisFromMapping, stripThisFromMappingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.blazebit.persistence.view.metamodel.Attribute
getBatchSize, getConvertedJavaType, getDeclaringType, getFetches, getFetchStrategy, getJavaType, getLimitExpression, getMappingType, getMemberType, getOffsetExpression, getOrderByItems, isCorrelated, isSubquery, renderLimitMethods inherited from interface com.blazebit.persistence.view.metamodel.PluralAttribute
getCollectionType, getElementCollectionComparator, getElementCollectionComparatorClass, isElementCollectionForcedUnique, isElementCollectionOrdered, isElementCollectionSorted, isForcedUnique, isIndexed
-
Constructor Details
-
AbstractMethodPluralAttribute
public AbstractMethodPluralAttribute(ManagedViewTypeImplementor<X> viewType, MethodAttributeMapping mapping, MetamodelBuildingContext context, int attributeIndex, int dirtyStateIndex, EmbeddableOwner embeddableMapping)
-
-
Method Details
-
isDisallowOwnedUpdatableSubview
protected boolean isDisallowOwnedUpdatableSubview()- Specified by:
isDisallowOwnedUpdatableSubviewin classAbstractAttribute<X,C>
-
getDirtyStateIndex
public int getDirtyStateIndex()- Specified by:
getDirtyStateIndexin classAbstractMethodAttribute<X,C>
-
getWritableMappedByMappings
- Specified by:
getWritableMappedByMappingsin classAbstractMethodAttribute<X,C>
-
getMappedBy
- Specified by:
getMappedByin interfaceMethodAttribute<X,C> - Specified by:
getMappedByin classAbstractAttribute<X,C>
-
getInverseRemoveStrategy
- Specified by:
getInverseRemoveStrategyin interfaceMethodAttribute<X,C>
-
isUpdatable
public boolean isUpdatable()- Specified by:
isUpdatablein interfaceMethodAttribute<X,C> - Specified by:
isUpdatablein classAbstractAttribute<X,C>
-
isMutable
public boolean isMutable()- Specified by:
isMutablein interfaceMethodAttribute<X,C> - Specified by:
isMutablein classAbstractAttribute<X,C>
-
isOptimisticLockProtected
public boolean isOptimisticLockProtected()- Specified by:
isOptimisticLockProtectedin interfaceMethodAttribute<X,C>
-
isPersistCascaded
public boolean isPersistCascaded()- Specified by:
isPersistCascadedin interfaceMethodAttribute<X,C>
-
isUpdateCascaded
public boolean isUpdateCascaded()- Specified by:
isUpdateCascadedin interfaceMethodAttribute<X,C> - Specified by:
isUpdateCascadedin classAbstractAttribute<X,C>
-
isDeleteCascaded
public boolean isDeleteCascaded()- Specified by:
isDeleteCascadedin interfaceMethodAttribute<X,C>
-
isOrphanRemoval
public boolean isOrphanRemoval()- Specified by:
isOrphanRemovalin interfaceMethodAttribute<X,C>
-
getReadOnlyAllowedSubtypes
- Specified by:
getReadOnlyAllowedSubtypesin interfaceMethodAttribute<X,C>
-
getPersistCascadeAllowedSubtypes
- Specified by:
getPersistCascadeAllowedSubtypesin interfaceMethodAttribute<X,C>
-
getUpdateCascadeAllowedSubtypes
- Specified by:
getUpdateCascadeAllowedSubtypesin interfaceMethodAttribute<X,C> - Specified by:
getUpdateCascadeAllowedSubtypesin classAbstractAttribute<X,C>
-
getAllowedSubtypes
- Specified by:
getAllowedSubtypesin interfaceMethodAttribute<X,C> - Specified by:
getAllowedSubtypesin classAbstractAttribute<X,C>
-
getParentRequiringUpdateSubtypes
- Specified by:
getParentRequiringUpdateSubtypesin interfaceMethodAttribute<X,C> - Specified by:
getParentRequiringUpdateSubtypesin classAbstractAttribute<X,C>
-
getParentRequiringCreateSubtypes
- Specified by:
getParentRequiringCreateSubtypesin interfaceMethodAttribute<X,C> - Specified by:
getParentRequiringCreateSubtypesin classAbstractAttribute<X,C>
-
getAttributeType
- Specified by:
getAttributeTypein interfaceAttribute<X,C>
-
getElementType
- Specified by:
getElementTypein interfacePluralAttribute<X,C, Y> - Specified by:
getElementTypein classAbstractAttribute<X,C>
-
getElementCollectionType
- Specified by:
getElementCollectionTypein interfacePluralAttribute<X,C, Y> - Specified by:
getElementCollectionTypein classAbstractAttribute<X,C>
-
getElementInheritanceSubtypeMappings
- Specified by:
getElementInheritanceSubtypeMappingsin interfacePluralAttribute<X,C, Y>
-
elementInheritanceSubtypeMappings
- Specified by:
elementInheritanceSubtypeMappingsin classAbstractAttribute<X,C>
-
isCollection
public boolean isCollection()- Specified by:
isCollectionin interfaceAttribute<X,C>
-
isSubview
public boolean isSubview() -
isSorted
public boolean isSorted()- Specified by:
isSortedin interfacePluralAttribute<X,C, Y> - Specified by:
isSortedin classAbstractAttribute<X,C>
-
isOrdered
public boolean isOrdered()- Specified by:
isOrderedin interfacePluralAttribute<X,C, Y>
-
getComparatorClass
- Specified by:
getComparatorClassin interfacePluralAttribute<X,C, Y>
-
getComparator
- Specified by:
getComparatorin interfacePluralAttribute<X,C, Y>
-