Interface SingularAttribute<X,Y>
- Type Parameters:
X
- The type of the declaring entity viewY
- The type of attribute
- All Superinterfaces:
Attribute<X,Y>
- All Known Subinterfaces:
MethodSingularAttribute<X,Y>
,SubqueryAttribute<X,Y>
public interface SingularAttribute<X,Y> extends Attribute<X,Y>
Instances of the type SingularAttribute represents single-valued properties or fields.
- 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
-
Method Summary
Modifier and Type Method Description Map<ManagedViewType<? extends Y>,String>
getInheritanceSubtypeMappings()
Returns the inheritance subtype mappings that should be considered for this attribute.Type<Y>
getType()
Returns the type representing the type of the attribute.boolean
isCreateEmptyFlatView()
Returns true if an empty flat view should be created for this attribute, otherwise false.boolean
isId()
Returns true if this attribute maps to the entity id, otherwise false.boolean
isQueryParameter()
Returns true if this attribute maps to a query parameter, otherwise false.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
-
Method Details
-
getType
Returns the type representing the type of the attribute.- Returns:
- The type of the attribute
- Since:
- 1.2.0
-
getInheritanceSubtypeMappings
Map<ManagedViewType<? extends Y>,String> getInheritanceSubtypeMappings()Returns the inheritance subtype mappings that should be considered for this attribute. When the attribute type is not a subview, this returns an empty map.- Returns:
- The inheritance subtype mappings or an empty map
- Since:
- 1.2.0
-
isQueryParameter
boolean isQueryParameter()Returns true if this attribute maps to a query parameter, otherwise false.- Returns:
- True if this attribute maps to a query parameter, otherwise false
-
isId
boolean isId()Returns true if this attribute maps to the entity id, otherwise false.- Returns:
- True if this attribute maps to the entity id, otherwise false
-
isCreateEmptyFlatView
boolean isCreateEmptyFlatView()Returns true if an empty flat view should be created for this attribute, otherwise false.- Returns:
- True if an empty flat view should be created for this attribute, otherwise false
- Since:
- 1.5.0
-