JPA Interface

Attribute

Type Parameters:
<X> - The represented type that contains the attribute
<Y> - The type of the represented attribute

Represents an attribute of a Java type.
Since:
JPA 2.0

Public Methods

ManagedType<X> getDeclaringType()
Return the managed type representing the type in which the attribute was declared.
Return:
declaring type
Since:
JPA 2.0
Member getJavaMember()
Return the java.lang.reflect.Member for the represented attribute.
Return:
corresponding java.lang.reflect.Member
Since:
JPA 2.0
Class<Y> getJavaType()
Return the Java type of the represented attribute.
Return:
Java type
Since:
JPA 2.0
String getName()
Return the name of the attribute.
Return:
name
Since:
JPA 2.0
Attribute<X,Y>.PersistentAttributeType getPersistentAttributeType()
Return the persistent attribute type for the attribute.
Return:
persistent attribute type
Since:
JPA 2.0
boolean isAssociation()
Is the attribute an association.
Return:
boolean indicating whether the attribute corresponds to an association
Since:
JPA 2.0
boolean isCollection()
Is the attribute collection-valued (represents a Collection, Set, List, or Map).
Return:
boolean indicating whether the attribute is collection-valued
Since:
JPA 2.0