Class Members.SingularAttributeImpl<X,​T>

  • Type Parameters:
    X - The type containing the represented attribute
    T - The type of the represented attribute
    All Implemented Interfaces:
    jakarta.persistence.metamodel.Attribute<X,​T>, jakarta.persistence.metamodel.Bindable<T>, jakarta.persistence.metamodel.SingularAttribute<X,​T>, Comparable<Members.Member<X,​T>>
    Enclosing class:
    Members

    public static final class Members.SingularAttributeImpl<X,​T>
    extends Members.Member<X,​T>
    implements jakarta.persistence.metamodel.SingularAttribute<X,​T>
    Represents single-valued persistent attributes.
    • Method Detail

      • isId

        public boolean isId()
        Affirms if this attribute is an id attribute.
        Specified by:
        isId in interface jakarta.persistence.metamodel.SingularAttribute<X,​T>
      • isVersion

        public boolean isVersion()
        Affirms if this attribute represents a version attribute.
        Specified by:
        isVersion in interface jakarta.persistence.metamodel.SingularAttribute<X,​T>
      • isOptional

        public boolean isOptional()
        Affirms if this attribute can be null.
        Specified by:
        isOptional in interface jakarta.persistence.metamodel.SingularAttribute<X,​T>
      • getBindableType

        public jakarta.persistence.metamodel.Bindable.BindableType getBindableType()
        Categorizes bindable type represented by this attribute.
        Specified by:
        getBindableType in interface jakarta.persistence.metamodel.Bindable<X>
      • getBindableJavaType

        public Class<T> getBindableJavaType()
        Returns the bindable Java type of this attribute. If the bindable category of this attribute is PLURAL_ATTRIBUTE, the Java element type is returned. If the bindable type is SINGULAR_ATTRIBUTE or ENTITY_TYPE, the Java type of the represented entity or attribute is returned.
        Specified by:
        getBindableJavaType in interface jakarta.persistence.metamodel.Bindable<X>
      • getPersistentAttributeType

        public jakarta.persistence.metamodel.Attribute.PersistentAttributeType getPersistentAttributeType()
        Categorizes the attribute.
        Specified by:
        getPersistentAttributeType in interface jakarta.persistence.metamodel.Attribute<X,​T>
        Overrides:
        getPersistentAttributeType in class Members.Member<X,​T>