Class SingularQueryAttributeImpl<X,Y>
java.lang.Object
cz.cvut.kbss.jopa.model.metamodel.AbstractQueryAttribute<X,Y>
cz.cvut.kbss.jopa.model.metamodel.SingularQueryAttributeImpl<X,Y>
- Type Parameters:
X
- The represented type that contains the attributeY
- The type of the represented attribute
- All Implemented Interfaces:
FieldSpecification<X,
,Y> QueryAttribute<X,
,Y> SingularQueryAttribute<X,
Y>
public class SingularQueryAttributeImpl<X,Y>
extends AbstractQueryAttribute<X,Y>
implements SingularQueryAttribute<X,Y>
Singular query attributes contain a single value or reference, ie. they are not collections.
-
Field Summary
Fields inherited from class cz.cvut.kbss.jopa.model.metamodel.AbstractQueryAttribute
THIS_PARAMETER
-
Constructor Summary
ConstructorsConstructorDescriptionSingularQueryAttributeImpl
(String query, boolean enableReferencingAttributes, Field field, ManagedType<X> declaringType, FetchType fetchType, Type<Y> type, ParticipationConstraint[] constraints, ConverterWrapper converter) -
Method Summary
Modifier and TypeMethodDescriptionReturn the Java type of the represented attribute.getType()
Return the type that represents the type of the attribute.boolean
Is the attribute collection-valued (represents a Collection, Set, List, or Map).Methods inherited from class cz.cvut.kbss.jopa.model.metamodel.AbstractQueryAttribute
enableReferencingAttributes, getConstraints, getConverter, getDeclaringType, getFetchType, getJavaField, getJavaMember, getName, getQuery, includeExplicit, isInferred, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface cz.cvut.kbss.jopa.model.metamodel.FieldSpecification
getDeclaringType, getFetchType, getJavaField, getName, includeExplicit, isInferred, isMappedAttribute
Methods inherited from interface cz.cvut.kbss.jopa.model.metamodel.QueryAttribute
enableReferencingAttributes, getConstraints, getJavaMember, getQuery
-
Constructor Details
-
SingularQueryAttributeImpl
public SingularQueryAttributeImpl(String query, boolean enableReferencingAttributes, Field field, ManagedType<X> declaringType, FetchType fetchType, Type<Y> type, ParticipationConstraint[] constraints, ConverterWrapper converter)
-
-
Method Details
-
getType
Description copied from interface:SingularQueryAttribute
Return the type that represents the type of the attribute.- Specified by:
getType
in interfaceSingularQueryAttribute<X,
Y> - Returns:
- type of attribute
-
getJavaType
Description copied from interface:FieldSpecification
Return the Java type of the represented attribute.- Specified by:
getJavaType
in interfaceFieldSpecification<X,
Y> - Returns:
- Java type
-
isCollection
public boolean isCollection()Description copied from interface:FieldSpecification
Is the attribute collection-valued (represents a Collection, Set, List, or Map).- Specified by:
isCollection
in interfaceFieldSpecification<X,
Y> - Specified by:
isCollection
in classAbstractQueryAttribute<X,
Y> - Returns:
- boolean indicating whether the attribute is collection-valued
-