Module org.eclipse.persistence.jpa
Class EntityTypeImpl<X>
java.lang.Object
org.eclipse.persistence.internal.jpa.metamodel.TypeImpl<X>
org.eclipse.persistence.internal.jpa.metamodel.ManagedTypeImpl<X>
org.eclipse.persistence.internal.jpa.metamodel.IdentifiableTypeImpl<X>
org.eclipse.persistence.internal.jpa.metamodel.EntityTypeImpl<X>
- Type Parameters:
X
- The represented entity type.
- All Implemented Interfaces:
Bindable<X>
,EntityType<X>
,IdentifiableType<X>
,ManagedType<X>
,Type<X>
,Serializable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Bindable
Bindable.BindableType
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Type
Type.PersistenceType
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.metamodel.ManagedTypeImpl
descriptor, metamodel
-
Constructor Summary
ModifierConstructorDescriptionprotected
EntityTypeImpl
(MetamodelImpl metamodel, ClassDescriptor descriptor) -
Method Summary
Modifier and TypeMethodDescriptionReturn the Java type of the represented object.Return the bindable type of the represented object.getName()
Return the entity nameReturn the persistence type.boolean
isEntity()
INTERNAL: Return whether this type is an Entity (true) or MappedSuperclass (false) or Embeddable (false)boolean
INTERNAL: Return whether this type is an MappedSuperclass (true) or Entity (false) or Embeddable (false)Methods inherited from class org.eclipse.persistence.internal.jpa.metamodel.IdentifiableTypeImpl
getDeclaredId, getDeclaredVersion, getId, getIdClassAttributes, getIdType, getSupertype, getVersion, hasSingleIdAttribute, hasVersionAttribute, initializeIdAttributes, isIdentifiableType, setSupertype
Methods inherited from class org.eclipse.persistence.internal.jpa.metamodel.ManagedTypeImpl
create, getAttribute, getAttributes, getCollection, getCollection, getDeclaredAttribute, getDeclaredAttribute, getDeclaredAttributes, getDeclaredCollection, getDeclaredCollection, getDeclaredList, getDeclaredList, getDeclaredMap, getDeclaredMap, getDeclaredPluralAttributes, getDeclaredSet, getDeclaredSet, getDeclaredSingularAttribute, getDeclaredSingularAttribute, getDeclaredSingularAttributes, getDescriptor, getList, getList, getMap, getMap, getMembers, getMetamodel, getPluralAttributes, getSet, getSet, getSingularAttribute, getSingularAttribute, getSingularAttributes, getTypeClassFromAttributeOrMethodLevelAccessor, initialize, isManagedType, toStringHelper
Methods inherited from class org.eclipse.persistence.internal.jpa.metamodel.TypeImpl
getJavaType, getJavaType, getJavaTypeName, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface jakarta.persistence.metamodel.IdentifiableType
getDeclaredId, getDeclaredVersion, getId, getIdClassAttributes, getIdType, getSupertype, getVersion, hasSingleIdAttribute, hasVersionAttribute
Methods inherited from interface jakarta.persistence.metamodel.ManagedType
getAttribute, getAttributes, getCollection, getCollection, getDeclaredAttribute, getDeclaredAttributes, getDeclaredCollection, getDeclaredCollection, getDeclaredList, getDeclaredList, getDeclaredMap, getDeclaredMap, getDeclaredPluralAttributes, getDeclaredSet, getDeclaredSet, getDeclaredSingularAttribute, getDeclaredSingularAttribute, getDeclaredSingularAttributes, getList, getList, getMap, getMap, getPluralAttributes, getSet, getSet, getSingularAttribute, getSingularAttribute, getSingularAttributes
Methods inherited from interface jakarta.persistence.metamodel.Type
getJavaType
-
Constructor Details
-
EntityTypeImpl
-
-
Method Details
-
getBindableType
Return the bindable type of the represented object.- Specified by:
getBindableType
in interfaceBindable<X>
- Returns:
- bindable type
-
getBindableJavaType
Return the Java type of the represented object. If the bindable type of the object isPLURAL_ATTRIBUTE
, the Java element type is returned. If the bindable type isSINGULAR_ATTRIBUTE
orENTITY_TYPE
, the Java type of the represented entity or attribute is returned.- Specified by:
getBindableJavaType
in interfaceBindable<X>
- Returns:
- Java type
-
getName
Return the entity name- Specified by:
getName
in interfaceEntityType<X>
- Returns:
- entity name
-
getPersistenceType
Return the persistence type.- Specified by:
getPersistenceType
in interfaceType<X>
- Returns:
- persistence type
-
isEntity
public boolean isEntity()INTERNAL: Return whether this type is an Entity (true) or MappedSuperclass (false) or Embeddable (false) -
isMappedSuperclass
public boolean isMappedSuperclass()INTERNAL: Return whether this type is an MappedSuperclass (true) or Entity (false) or Embeddable (false)- Specified by:
isMappedSuperclass
in classTypeImpl<X>
-