Jakarta Persistence (JPA) Interface
jakarta.persistence.metamodel.SingularAttribute<X,T>
- Type Parameters:
<X>- The type containing the represented attribute<T>- The type of the represented attribute
- Super Interfaces:
Attribute<X,Y>,Bindable<T>
Instances of the type
SingularAttribute represents persistent single-valued properties or fields. - Since:
- Jakarta Persistence (JPA) 2.0
Public Instance Methods
Class<T> getBindableJavaType()If the bindable type of the object 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.Inherited from
Bindable<T>- Returns:
- Java type.
- Since:
- Jakarta Persistence (JPA) 1.0
Member getJavaMember()Class<Y> getJavaType()String getName()boolean isAssociation()Inherited from
Attribute<X,Y>- Returns:
- boolean indicating whether the attribute corresponds to an association.
- Since:
- Jakarta Persistence (JPA) 1.0
boolean isCollection()Inherited from
Attribute<X,Y>- Returns:
- boolean indicating whether the attribute is collection-valued.
- Since:
- Jakarta Persistence (JPA) 1.0
boolean isId()- Returns:
- boolean indicating whether the attribute is an id.
- Since:
- Jakarta Persistence (JPA) 1.0
boolean isOptional()- Returns:
- boolean indicating whether the attribute can be null.
- See Also:
- Since:
- Jakarta Persistence (JPA) 1.0
boolean isVersion()- Returns:
- boolean indicating whether the attribute is a version attribute.
- Since:
- Jakarta Persistence (JPA) 1.0