Class AbstractQueryAttribute<X,Y> 
java.lang.Object
cz.cvut.kbss.jopa.model.metamodel.AbstractQueryAttribute<X,Y> 
- Type Parameters:
- X- The represented type that contains the attribute
- Y- The type of the represented attribute
- All Implemented Interfaces:
- FieldSpecification<X,,- Y> - QueryAttribute<X,- Y> 
- Direct Known Subclasses:
- PluralQueryAttributeImpl,- SingularQueryAttributeImpl
A common class to all attributes defined by a query
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringName of the variable which may be used in the query and would be replaced by the identifier of the entity owning this attribute.
- 
Constructor SummaryConstructorsConstructorDescriptionAbstractQueryAttribute(String query, boolean enableReferencingAttributes, Field field, ManagedType<X> declaringType, FetchType fetchType, ParticipationConstraint[] constraints, ConverterWrapper converter) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanWhether referencing other entity attributes is enabled.Returns participation constraints specified for this attribute.Return the managed type representing the type in which the attribute was declared.Whether the association is lazily loaded or must be eagerly fetched.Return the java.lang.reflect.Member for the represented attribute.Return the java.lang.reflect.Member for the represented attribute.getName()Return the name of the attribute.getQuery()Return the entire query as inserted intoSparql.booleanA query based attribute always includes explicit.abstract booleanIs the attribute collection-valued (represents a Collection, Set, List, or Map).booleanA query based attribute is always inferred.toString()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface cz.cvut.kbss.jopa.model.metamodel.FieldSpecificationgetJavaType, isMappedAttribute
- 
Field Details- 
THIS_PARAMETERName of the variable which may be used in the query and would be replaced by the identifier of the entity owning this attribute.- See Also:
 
 
- 
- 
Constructor Details- 
AbstractQueryAttributepublic AbstractQueryAttribute(String query, boolean enableReferencingAttributes, Field field, ManagedType<X> declaringType, FetchType fetchType, ParticipationConstraint[] constraints, ConverterWrapper converter) 
 
- 
- 
Method Details- 
getQueryDescription copied from interface:QueryAttributeReturn the entire query as inserted intoSparql.- Specified by:
- getQueryin interface- QueryAttribute<X,- Y> 
- Returns:
- Query defining this attribute
 
- 
enableReferencingAttributespublic boolean enableReferencingAttributes()Description copied from interface:QueryAttributeWhether referencing other entity attributes is enabled.- Specified by:
- enableReferencingAttributesin interface- QueryAttribute<X,- Y> 
- Returns:
- truewhen other entity attributes may be referenced from the query
 
- 
getJavaMemberDescription copied from interface:QueryAttributeReturn the java.lang.reflect.Member for the represented attribute.- Specified by:
- getJavaMemberin interface- QueryAttribute<X,- Y> 
- Returns:
- corresponding java.lang.reflect.Member
 
- 
getConstraintsDescription copied from interface:QueryAttributeReturns participation constraints specified for this attribute.- Specified by:
- getConstraintsin interface- QueryAttribute<X,- Y> 
- Returns:
- Array of participation constraints
 
- 
getDeclaringTypeDescription copied from interface:FieldSpecificationReturn the managed type representing the type in which the attribute was declared.- Specified by:
- getDeclaringTypein interface- FieldSpecification<X,- Y> 
- Returns:
- declaring type
 
- 
getJavaFieldDescription copied from interface:FieldSpecificationReturn the java.lang.reflect.Member for the represented attribute.- Specified by:
- getJavaFieldin interface- FieldSpecification<X,- Y> 
- Returns:
- corresponding java.lang.reflect.Member
 
- 
getFetchTypeDescription copied from interface:FieldSpecificationWhether the association is lazily loaded or must be eagerly fetched.- Specified by:
- getFetchTypein interface- FieldSpecification<X,- Y> 
- Returns:
- Fetch type of the field specification
 
- 
isInferredpublic boolean isInferred()A query based attribute is always inferred.- Specified by:
- isInferredin interface- FieldSpecification<X,- Y> 
- Returns:
- always true
- See Also:
 
- 
includeExplicitpublic boolean includeExplicit()A query based attribute always includes explicit.- Specified by:
- includeExplicitin interface- FieldSpecification<X,- Y> 
- Returns:
- always true
- See Also:
 
- 
getNameDescription copied from interface:FieldSpecificationReturn the name of the attribute.- Specified by:
- getNamein interface- FieldSpecification<X,- Y> 
- Returns:
- name
 
- 
isCollectionpublic abstract boolean isCollection()Description copied from interface:FieldSpecificationIs the attribute collection-valued (represents a Collection, Set, List, or Map).- Specified by:
- isCollectionin interface- FieldSpecification<X,- Y> 
- Returns:
- boolean indicating whether the attribute is collection-valued
 
- 
getConverter
- 
toString
 
-