Class SingularAttributeImpl<X,Y>
java.lang.Object
cz.cvut.kbss.jopa.model.metamodel.AbstractAttribute<X,Y>
cz.cvut.kbss.jopa.model.metamodel.SingularAttributeImpl<X,Y>
- All Implemented Interfaces:
Attribute<X,
,Y> Bindable<Y>
,FieldSpecification<X,
,Y> SingularAttribute<X,
Y>
public class SingularAttributeImpl<X,Y>
extends AbstractAttribute<X,Y>
implements SingularAttribute<X,Y>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Nested classes/interfaces inherited from interface cz.cvut.kbss.jopa.model.metamodel.Attribute
Attribute.PersistentAttributeType
Nested classes/interfaces inherited from interface cz.cvut.kbss.jopa.model.metamodel.Bindable
Bindable.BindableType
-
Method Summary
Modifier and TypeMethodDescriptionbuilder
(cz.cvut.kbss.jopa.model.metamodel.PropertyAttributes config) Return the Java type of the represented object.Return the bindable type of the represented object.Return 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).boolean
Is the attribute a version attribute.Methods inherited from class cz.cvut.kbss.jopa.model.metamodel.AbstractAttribute
getCascadeTypes, getConstraints, getConverter, getDatatype, getDeclaringType, getFetchType, getIRI, getJavaField, getJavaMember, getLanguage, getName, getPersistentAttributeType, hasLanguage, includeExplicit, isInferred, isLexicalForm, isNonEmpty, isSimpleLiteral, 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.Attribute
getCascadeTypes, getConstraints, getDatatype, getIRI, getJavaMember, getLanguage, getPersistentAttributeType, hasLanguage, isAssociation, isLexicalForm, isMappedAttribute, isNonEmpty, isSimpleLiteral
Methods inherited from interface cz.cvut.kbss.jopa.model.metamodel.FieldSpecification
getDeclaringType, getFetchType, getJavaField, getName, includeExplicit, isInferred
Methods inherited from interface cz.cvut.kbss.jopa.model.metamodel.SingularAttribute
isId
-
Method Details
-
getType
Description copied from interface:SingularAttribute
Return the type that represents the type of the attribute.- Specified by:
getType
in interfaceSingularAttribute<X,
Y> - Returns:
- type of attribute
-
isVersion
public boolean isVersion()Description copied from interface:SingularAttribute
Is the attribute a version attribute.- Specified by:
isVersion
in interfaceSingularAttribute<X,
Y> - Returns:
- boolean indicating whether the attribute is a version 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> - Returns:
- boolean indicating whether the attribute is collection-valued
-
getBindableJavaType
Description copied from interface:Bindable
Return the Java type of the represented object. If the bindable type of the object isBindable.BindableType.PLURAL_ATTRIBUTE
, the Java element type is returned. If the bindable type isBindable.BindableType.SINGULAR_ATTRIBUTE
orBindable.BindableType.ENTITY_TYPE
, the Java type of the represented entity or attribute is returned.- Specified by:
getBindableJavaType
in interfaceBindable<X>
- Returns:
- Java type
-
getBindableType
Description copied from interface:Bindable
Return the bindable type of the represented object.- Specified by:
getBindableType
in interfaceBindable<X>
- Returns:
- bindable type
-
builder
public static SingularAttributeImpl.SingularAttributeBuilder builder(cz.cvut.kbss.jopa.model.metamodel.PropertyAttributes config)
-