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.BindableTypeNested 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
ConstructorsModifierConstructorDescriptionprotectedEntityTypeImpl(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.booleanisEntity()INTERNAL: Return whether this type is an Entity (true) or MappedSuperclass (false) or Embeddable (false)booleanINTERNAL: 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, setSupertypeMethods 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, toStringHelperMethods inherited from class org.eclipse.persistence.internal.jpa.metamodel.TypeImpl
getJavaType, getJavaType, getJavaTypeName, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.persistence.metamodel.IdentifiableType
getDeclaredId, getDeclaredVersion, getId, getIdClassAttributes, getIdType, getSupertype, getVersion, hasSingleIdAttribute, hasVersionAttributeMethods 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, getSingularAttributesMethods inherited from interface jakarta.persistence.metamodel.Type
getJavaType
-
Constructor Details
-
EntityTypeImpl
-
-
Method Details
-
getBindableType
Return the bindable type of the represented object.- Specified by:
getBindableTypein 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_ATTRIBUTEorENTITY_TYPE, the Java type of the represented entity or attribute is returned.- Specified by:
getBindableJavaTypein interfaceBindable<X>- Returns:
- Java type
-
getName
Return the entity name- Specified by:
getNamein interfaceEntityType<X>- Returns:
- entity name
-
getPersistenceType
Return the persistence type.- Specified by:
getPersistenceTypein 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:
isMappedSuperclassin classTypeImpl<X>
-