java.lang.Object
org.eclipse.persistence.internal.jpa.metamodel.AttributeImpl<X,T>
Type Parameters:
X - The represented type that contains the attribute
T - The type of the represented attribute
All Implemented Interfaces:
Attribute<X,T>, Serializable
Direct Known Subclasses:
PluralAttributeImpl, SingularAttributeImpl

public abstract class AttributeImpl<X,T> extends Object implements Attribute<X,T>, Serializable

Purpose: Provides the implementation for the Attribute interface of the JPA 2.0 Metamodel API (part of the JSR-317 EJB 3.1 Criteria API)

Description: An attribute of a Java type

Since:
EclipseLink 1.2 - JPA 2.0
See Also:
  • Constructor Details

  • Method Details

    • getDeclaringType

      public ManagedType<X> getDeclaringType()
      Return the managed type representing the type in which the attribute was declared.
      Specified by:
      getDeclaringType in interface Attribute<X,T>
      Returns:
      declaring type
    • getDescriptor

      protected ClassDescriptor getDescriptor()
      INTERNAL: Return the Descriptor associated with this attribute
    • getJavaMember

      public Member getJavaMember()
      Return the java.lang.reflect.Member for the represented attribute. In the case of property access the get method will be returned
      Specified by:
      getJavaMember in interface Attribute<X,T>
      Returns:
      corresponding java.lang.reflect.Member
    • getJavaType

      public abstract Class<T> getJavaType()
      Return the Java type of the represented attribute.
      Specified by:
      getJavaType in interface Attribute<X,T>
      Returns:
      Java type
    • getManagedTypeImpl

      public ManagedTypeImpl<X> getManagedTypeImpl()
      INTERNAL: Return the managed type representing the type in which the member was declared.
    • getMapping

      public DatabaseMapping getMapping()
      INTERNAL: Return the databaseMapping that represents the type
    • getMetamodel

      protected MetamodelImpl getMetamodel()
      INTERNAL: Return the concrete metamodel that this attribute is associated with.
      Returns:
      MetamodelImpl
    • getName

      public String getName()
      Return the name of the attribute.
      Specified by:
      getName in interface Attribute<X,T>
      Returns:
      name
    • getPersistentAttributeType

      public Attribute.PersistentAttributeType getPersistentAttributeType()
      Return the persistent attribute type for the attribute.
      Specified by:
      getPersistentAttributeType in interface Attribute<X,T>
      Returns:
      persistent attribute type
    • isAssociation

      public boolean isAssociation()
      Is the attribute an association.
      Specified by:
      isAssociation in interface Attribute<X,T>
      Returns:
      whether boolean indicating whether attribute corresponds to an association
    • isCollection

      public boolean isCollection()
      Is the attribute collection-valued.
      Specified by:
      isCollection in interface Attribute<X,T>
      Returns:
      boolean indicating whether attribute is collection-valued.

      This will be true for the mappings CollectionMapping, AbstractCompositeCollectionMapping, AbstractCompositeDirectCollectionMapping and their subclasses

    • isPlural

      public abstract boolean isPlural()
      INTERNAL: Return whether the attribute is plural or singular