EclipseLink 2.0.0_ 2.0.0.v20090520-r4260 API Reference

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

Type Parameters:
X - The represented type that contains the member
Y - The type of the represented member
All Known Subinterfaces:
AbstractCollection<X,C,E>, Attribute<X,T>, Collection<X,E>, List<X,E>, Map<X,K,V>, Set<X,E>

public interface Member<X,Y>

A member of a Java type


Method Summary
 ManagedType<X> getDeclaringType()
          Return the managed type representing the type in which the member was declared.
 java.lang.reflect.Member getJavaMember()
          Return the java.lang.reflect.Member for the represented member.
 java.lang.Class<Y> getMemberJavaType()
          Return the Java type of the represented member.
 java.lang.String getName()
          Return the name of the member.
 boolean isAssociation()
          Is the member an association.
 boolean isCollection()
          Is the member collection-valued.
 

Method Detail

getName

java.lang.String getName()
Return the name of the member.

Returns:
name

getDeclaringType

ManagedType<X> getDeclaringType()
Return the managed type representing the type in which the member was declared.

Returns:
declaring type

getMemberJavaType

java.lang.Class<Y> getMemberJavaType()
Return the Java type of the represented member.

Returns:
Java type

getJavaMember

java.lang.reflect.Member getJavaMember()
Return the java.lang.reflect.Member for the represented member.

Returns:
corresponding java.lang.reflect.Member

isAssociation

boolean isAssociation()
Is the member an association.

Returns:
whether an association

isCollection

boolean isCollection()
Is the member collection-valued.

Returns:
whether a collection

EclipseLink 2.0.0_ 2.0.0.v20090520-r4260 API Reference