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:
java.io.Serializable,javax.persistence.metamodel.Bindable<X>,javax.persistence.metamodel.EntityType<X>,javax.persistence.metamodel.IdentifiableType<X>,javax.persistence.metamodel.ManagedType<X>,javax.persistence.metamodel.Type<X>
public class EntityTypeImpl<X> extends IdentifiableTypeImpl<X> implements javax.persistence.metamodel.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 EntityTypeDescription: Instances of the type EntityType represent entity types.
- Since:
- EclipseLink 1.2 - JPA 2.0
- See Also:
EntityType, Serialized Form
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.jpa.metamodel.ManagedTypeImpl
descriptor, metamodel
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEntityTypeImpl(MetamodelImpl metamodel, org.eclipse.persistence.descriptors.ClassDescriptor descriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<X>getBindableJavaType()Return the Java type of the represented object.javax.persistence.metamodel.Bindable.BindableTypegetBindableType()Return the bindable type of the represented object.java.lang.StringgetName()Return the entity namejavax.persistence.metamodel.Type.PersistenceTypegetPersistenceType()Return the persistence type.booleanisEntity()INTERNAL: Return whether this type is an Entity (true) or MappedSuperclass (false) or Embeddable (false)booleanisMappedSuperclass()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 javax.persistence.metamodel.IdentifiableType
getDeclaredId, getDeclaredVersion, getId, getIdClassAttributes, getIdType, getSupertype, getVersion, hasSingleIdAttribute, hasVersionAttribute
-
Methods inherited from interface javax.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
-
-
-
-
Constructor Detail
-
EntityTypeImpl
protected EntityTypeImpl(MetamodelImpl metamodel, org.eclipse.persistence.descriptors.ClassDescriptor descriptor)
-
-
Method Detail
-
getBindableType
public javax.persistence.metamodel.Bindable.BindableType getBindableType()
Return the bindable type of the represented object.- Specified by:
getBindableTypein interfacejavax.persistence.metamodel.Bindable<X>- Returns:
- bindable type
-
getBindableJavaType
public java.lang.Class<X> 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 interfacejavax.persistence.metamodel.Bindable<X>- Returns:
- Java type
-
getName
public java.lang.String getName()
Return the entity name- Specified by:
getNamein interfacejavax.persistence.metamodel.EntityType<X>- Returns:
- entity name
-
getPersistenceType
public javax.persistence.metamodel.Type.PersistenceType getPersistenceType()
Return the persistence type.- Specified by:
getPersistenceTypein interfacejavax.persistence.metamodel.Type<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>- Returns:
-
-