Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.metamodel

public Class EntityTypeImpl<X>

extends IdentifiableTypeImpl<X>
implements EntityType<X>
Class Inheritance
All Implemented Interfaces
jakarta.persistence.metamodel.EntityType, jakarta.persistence.metamodel.Bindable, jakarta.persistence.metamodel.IdentifiableType, jakarta.persistence.metamodel.ManagedType, jakarta.persistence.metamodel.Type
Type Parameters
<X>
The represented entity type.
Imports
jakarta.persistence.metamodel.Bindable, .EntityType, .Type, org.eclipse.persistence.descriptors.ClassDescriptor

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
jakarta.persistence.metamodel.EntityType

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Item 54: DI 89: explicit UID will avoid performance hit runtime generation of one

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public Class<X>

Returns:

Java type
getBindableJavaType
()

Implements jakarta.persistence.metamodel.Bindable.getBindableJavaType.

Return the Java type of the represented object.
public Bindable.BindableType

Returns:

bindable type
getBindableType
()

Implements jakarta.persistence.metamodel.Bindable.getBindableType.

Return the bindable type of the represented object.
public String

Returns:

entity name
getName
()

Implements jakarta.persistence.metamodel.EntityType.getName.

Return the entity name
public Type.PersistenceType

Returns:

persistence type
getPersistenceType
()

Implements jakarta.persistence.metamodel.Type.getPersistenceType.

Return the persistence type.
public boolean
isEntity()

Implements abstract org.eclipse.persistence.internal.jpa.metamodel.TypeImpl.isEntity.

INTERNAL: Return whether this type is an Entity (true) or MappedSuperclass (false) or Embeddable (false)
public boolean
isMappedSuperclass()

Implements abstract org.eclipse.persistence.internal.jpa.metamodel.TypeImpl.isMappedSuperclass.

INTERNAL: Return whether this type is an MappedSuperclass (true) or Entity (false) or Embeddable (false)
Inherited from org.eclipse.persistence.internal.jpa.metamodel.IdentifiableTypeImpl:
getDeclaredIdgetDeclaredVersiongetIdgetIdClassAttributesgetIdTypegetSupertypegetVersionhasSingleIdAttributehasVersionAttributeinitializeIdAttributesisIdentifiableTypesetSupertype

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Item 54: DI 89: explicit UID will avoid performance hit runtime generation of one

Constructor Detail

EntityTypeImplback to summary
protected EntityTypeImpl(MetamodelImpl metamodel, ClassDescriptor descriptor)

Method Detail

getBindableJavaTypeback to summary
public Class<X> getBindableJavaType()

Implements jakarta.persistence.metamodel.Bindable.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.

Returns:Class<X>

Java type

Annotations
@Override
getBindableTypeback to summary
public Bindable.BindableType getBindableType()

Implements jakarta.persistence.metamodel.Bindable.getBindableType.

Return the bindable type of the represented object.

Returns:Bindable.BindableType

bindable type

Annotations
@Override
getNameback to summary
public String getName()

Implements jakarta.persistence.metamodel.EntityType.getName.

Return the entity name

Returns:String

entity name

Annotations
@Override
getPersistenceTypeback to summary
public Type.PersistenceType getPersistenceType()

Implements jakarta.persistence.metamodel.Type.getPersistenceType.

Return the persistence type.

Returns:Type.PersistenceType

persistence type

Annotations
@Override
isEntityback to summary
public boolean isEntity()

Implements abstract org.eclipse.persistence.internal.jpa.metamodel.TypeImpl.isEntity.

INTERNAL: Return whether this type is an Entity (true) or MappedSuperclass (false) or Embeddable (false)

Annotations
@Override
isMappedSuperclassback to summary
public boolean isMappedSuperclass()

Implements abstract org.eclipse.persistence.internal.jpa.metamodel.TypeImpl.isMappedSuperclass.

INTERNAL: Return whether this type is an MappedSuperclass (true) or Entity (false) or Embeddable (false)

Annotations
@Override