Type Parameters:
X - The represented entity type.
All Implemented Interfaces:
Bindable<X>, EntityType<X>, IdentifiableType<X>, ManagedType<X>, Type<X>, Serializable

public class EntityTypeImpl<X> extends IdentifiableTypeImpl<X> implements EntityType<X>

Purpose: Provides the implementation for the EntityType interface of the JPA 2.0 Metamodel API (part of the JSR-317 EJB 3.1 Criteria API)
EntityTypeImpl implements the IdentifiableType interface via EntityType

Description: Instances of the type EntityType represent entity types.

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

  • Method Details

    • getBindableType

      public Bindable.BindableType getBindableType()
      Return the bindable type of the represented object.
      Specified by:
      getBindableType in interface Bindable<X>
      Returns:
      bindable type
    • getBindableJavaType

      public Class<X> getBindableJavaType()
      Return the Java type of the represented object. 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.
      Specified by:
      getBindableJavaType in interface Bindable<X>
      Returns:
      Java type
    • getName

      public String getName()
      Return the entity name
      Specified by:
      getName in interface EntityType<X>
      Returns:
      entity name
    • getPersistenceType

      public Type.PersistenceType getPersistenceType()
      Return the persistence type.
      Specified by:
      getPersistenceType in interface Type<X>
      Returns:
      persistence type
    • isEntity

      public boolean isEntity()
      INTERNAL: Return whether this type is an Entity (true) or MappedSuperclass (false) or Embeddable (false)
      Specified by:
      isEntity in class TypeImpl<X>
    • isMappedSuperclass

      public boolean isMappedSuperclass()
      INTERNAL: Return whether this type is an MappedSuperclass (true) or Entity (false) or Embeddable (false)
      Specified by:
      isMappedSuperclass in class TypeImpl<X>