javax.persistence.metamodel
Interface Attribute<X,Y>

All Known Subinterfaces:
CollectionAttribute<X,E>, ListAttribute<X,E>, MapAttribute<X,K,V>, PluralAttribute<X,C,E>, SetAttribute<X,E>, SingularAttribute<X,T>

public interface Attribute<X,Y>

Reflection model for a JPA attribute

Since:
JPA 2.0

Nested Class Summary
static class Attribute.PersistentAttributeType
           
 
Method Summary
 ManagedType<X> getDeclaringType()
           
 java.lang.reflect.Member getJavaMember()
           
 java.lang.Class<Y> getJavaType()
           
 java.lang.String getName()
           
 Attribute.PersistentAttributeType getPersistentAttributeType()
           
 boolean isAssociation()
           
 boolean isCollection()
           
 

Method Detail

getDeclaringType

ManagedType<X> getDeclaringType()

getJavaMember

java.lang.reflect.Member getJavaMember()

getJavaType

java.lang.Class<Y> getJavaType()

getName

java.lang.String getName()

getPersistentAttributeType

Attribute.PersistentAttributeType getPersistentAttributeType()

isAssociation

boolean isAssociation()

isCollection

boolean isCollection()