Interface QueryAttribute<X,Y>

Type Parameters:
X - The represented type that contains the attribute
Y - 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

public interface QueryAttribute<X,Y> extends FieldSpecification<X,Y>
Represents an attribute of a Java type that is defined by a query.
  • Method Details

    • getQuery

      String getQuery()
      Return the entire query as inserted into Sparql.
      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