X - The represented entity type.public class EntityTypeImpl<X> extends IdentifiableTypeImpl<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.
javax.persistence.metamodel.EntityType,
Serialized Formdescriptor, metamodel| Modifier | Constructor and Description |
|---|---|
protected |
EntityTypeImpl(MetamodelImpl metamodel,
ClassDescriptor descriptor) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<X> |
getBindableJavaType()
Return the Java type of the represented object.
|
Bindable.BindableType |
getBindableType()
Return the bindable type of the represented object.
|
java.lang.String |
getName()
Return the entity name
|
Type.PersistenceType |
getPersistenceType()
Return the persistence type.
|
boolean |
isEntity()
INTERNAL:
Return whether this type is an Entity (true) or MappedSuperclass (false) or Embeddable (false)
|
boolean |
isMappedSuperclass()
INTERNAL:
Return whether this type is an MappedSuperclass (true) or Entity (false) or Embeddable (false)
|
getDeclaredId, getDeclaredVersion, getId, getIdClassAttributes, getIdType, getSupertype, getVersion, hasSingleIdAttribute, hasVersionAttribute, initializeIdAttributes, isIdentifiableType, setSupertypecreate, 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, toStringHelpergetJavaType, getJavaType, getJavaTypeName, toStringprotected EntityTypeImpl(MetamodelImpl metamodel, ClassDescriptor descriptor)
public Bindable.BindableType getBindableType()
public java.lang.Class<X> getBindableJavaType()
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.public java.lang.String getName()
public Type.PersistenceType getPersistenceType()
public boolean isEntity()
public boolean isMappedSuperclass()
isMappedSuperclass in class TypeImpl<X>