Interface ParameterAttribute<X,Y>
- Type Parameters:
X
- The type of the declaring entity viewY
- The type of attribute
- All Superinterfaces:
Attribute<X,Y>
public interface ParameterAttribute<X,Y> extends Attribute<X,Y>
Represents an attribute of a view type specified by a constructor parameter.
- 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 MappingConstructor<X>
getDeclaringConstructor()
Returns the declaring constructor.int
getIndex()
Returns the index of the parameter within the constructor.boolean
isSelfParameter()
Returns whether the parameter is a "self" parameter i.e. annotated withSelf
.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
-
getIndex
int getIndex()Returns the index of the parameter within the constructor.- Returns:
- The index of the parameter within the constructor
-
getDeclaringConstructor
MappingConstructor<X> getDeclaringConstructor()Returns the declaring constructor.- Returns:
- The declaring constructor
-
isSelfParameter
boolean isSelfParameter()Returns whether the parameter is a "self" parameter i.e. annotated withSelf
.- Returns:
- Whether the parameter is a self parameter
- Since:
- 1.5.0
-