Interface QueryAttribute<X,Y>
- Type Parameters:
X
- The represented type that contains the attributeY
- The type of the represented attribute
- All Superinterfaces:
FieldSpecification<X,
Y>
- All Known Subinterfaces:
PluralQueryAttribute<X,
,C, E> SingularQueryAttribute<X,
T>
- All Known Implementing Classes:
AbstractQueryAttribute
,PluralQueryAttributeImpl
,SingularQueryAttributeImpl
Represents an attribute of a Java type that is defined by a query.
-
Method Summary
Methods inherited from interface cz.cvut.kbss.jopa.model.metamodel.FieldSpecification
getDeclaringType, getFetchType, getJavaField, getJavaType, getName, includeExplicit, isCollection, isInferred, isMappedAttribute
-
Method Details
-
getQuery
String getQuery()Return the entire query as inserted intoSparql
.- Returns:
- Query defining this attribute
-
enableReferencingAttributes
boolean enableReferencingAttributes()Whether referencing other entity attributes is enabled.- Returns:
true
when other entity attributes may be referenced from the query
-
getJavaMember
Member getJavaMember()Return the java.lang.reflect.Member for the represented attribute.- Returns:
- corresponding java.lang.reflect.Member
-
getConstraints
ParticipationConstraint[] getConstraints()Returns participation constraints specified for this attribute.- Returns:
- Array of participation constraints
-