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 classNested classes/interfaces inherited from interface cz.cvut.kbss.jopa.model.metamodel.Attribute
Attribute.PersistentAttributeTypeNested 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.booleanIs the attribute collection-valued (represents a Collection, Set, List, or Map).booleanIs 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface cz.cvut.kbss.jopa.model.metamodel.Attribute
getCascadeTypes, getConstraints, getDatatype, getIRI, getJavaMember, getLanguage, getPersistentAttributeType, hasLanguage, isAssociation, isLexicalForm, isMappedAttribute, isNonEmpty, isSimpleLiteralMethods inherited from interface cz.cvut.kbss.jopa.model.metamodel.FieldSpecification
getDeclaringType, getFetchType, getJavaField, getName, includeExplicit, isInferredMethods inherited from interface cz.cvut.kbss.jopa.model.metamodel.SingularAttribute
isId
-
Method Details
-
getType
Description copied from interface:SingularAttributeReturn the type that represents the type of the attribute.- Specified by:
getTypein interfaceSingularAttribute<X,Y> - Returns:
- type of attribute
-
isVersion
public boolean isVersion()Description copied from interface:SingularAttributeIs the attribute a version attribute.- Specified by:
isVersionin interfaceSingularAttribute<X,Y> - Returns:
- boolean indicating whether the attribute is a version attribute
-
getJavaType
Description copied from interface:FieldSpecificationReturn the Java type of the represented attribute.- Specified by:
getJavaTypein interfaceFieldSpecification<X,Y> - Returns:
- Java type
-
isCollection
public boolean isCollection()Description copied from interface:FieldSpecificationIs the attribute collection-valued (represents a Collection, Set, List, or Map).- Specified by:
isCollectionin interfaceFieldSpecification<X,Y> - Returns:
- boolean indicating whether the attribute is collection-valued
-
getBindableJavaType
Description copied from interface:BindableReturn 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_ATTRIBUTEorBindable.BindableType.ENTITY_TYPE, the Java type of the represented entity or attribute is returned.- Specified by:
getBindableJavaTypein interfaceBindable<X>- Returns:
- Java type
-
getBindableType
Description copied from interface:BindableReturn the bindable type of the represented object.- Specified by:
getBindableTypein interfaceBindable<X>- Returns:
- bindable type
-
builder
public static SingularAttributeImpl.SingularAttributeBuilder builder(cz.cvut.kbss.jopa.model.metamodel.PropertyAttributes config)
-