Interface ListAttribute<X,E>
- Type Parameters:
X
- The type of the declaring entity viewE
- The element type of the represented List
- All Superinterfaces:
Attribute<X,List<E>>
,PluralAttribute<X,List<E>,E>
- All Known Subinterfaces:
MethodListAttribute<X,E>
,MethodMultiListAttribute<X,E,C>
public interface ListAttribute<X,E> extends PluralAttribute<X,List<E>,E>
Instances of the type ListAttribute represent List-valued attributes.
- Since:
- 1.0.0
- Author:
- Christian Beikov
-
Nested Class Summary
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
-
Method Summary
Modifier and Type Method Description <R extends List<E> & RecordingContainer<? extends List<E>>>
CollectionInstantiator<List<E>,R>getCollectionInstantiator()
Returns the collection instantiator for this attribute.String
getIndexMapping()
Returns the index mapping of the attribute.void
renderIndexMapping(String parent, ServiceProvider serviceProvider, StringBuilder sb)
Renders the index mapping for the given parent expression to the given string builder.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
Methods inherited from interface com.blazebit.persistence.view.metamodel.PluralAttribute
getCollectionType, getComparator, getComparatorClass, getElementCollectionType, getElementInheritanceSubtypeMappings, getElementType, isForcedUnique, isIndexed, isOrdered, isSorted
-
Method Details
-
getCollectionInstantiator
<R extends List<E> & RecordingContainer<? extends List<E>>> CollectionInstantiator<List<E>,R> getCollectionInstantiator()Returns the collection instantiator for this attribute.- Type Parameters:
R
- The recording collection type- Returns:
- The collection instantiator
- Since:
- 1.5.0
-
getIndexMapping
String getIndexMapping()Returns the index mapping of the attribute.- Returns:
- The index mapping of the attribute
- Since:
- 1.5.0
-
renderIndexMapping
Renders the index mapping for the given parent expression to the given string builder.- Parameters:
parent
- The parent expressionserviceProvider
- The service providersb
- The string builder- Since:
- 1.5.0
-