public class EntityTypeImpl<X> extends AbstractIdentifiableType<X> implements EntityType<X>, Serializable
EntityType
contract.AbstractIdentifiableType.Builder<X>
Type.PersistenceType
Bindable.BindableType
Constructor and Description |
---|
EntityTypeImpl(Class<X> javaType,
AbstractIdentifiableType<? super X> superType,
String jpaEntityName,
boolean hasIdentifierProperty,
boolean isVersioned) |
Modifier and Type | Method and Description |
---|---|
Class<X> |
getBindableJavaType()
Return the Java type of the represented object.
|
Bindable.BindableType |
getBindableType()
Return the bindable type of the represented object.
|
String |
getName()
Return the entity name.
|
Type.PersistenceType |
getPersistenceType()
Return the persistence type.
|
protected boolean |
requiresSupertypeForNonDeclaredIdentifier()
Indicates if a non-null super type is required to provide the
identifier attribute(s) if this object does not have a declared
identifier.
|
checkDeclaredId, checkDeclaredVersion, checkSimpleId, getBuilder, getDeclaredId, getDeclaredVersion, getDeclaredVersion, getId, getIdClassAttributes, getIdType, getSupertype, getVersion, hasDeclaredVersionAttribute, hasSingleIdAttribute, hasVersionAttribute, requireSupertype
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, isPrimitiveVariant, lock
getJavaType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDeclaredId, getDeclaredVersion, getId, getIdClassAttributes, getIdType, getSupertype, getVersion, hasSingleIdAttribute, hasVersionAttribute
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
getJavaType
public EntityTypeImpl(Class<X> javaType, AbstractIdentifiableType<? super X> superType, String jpaEntityName, boolean hasIdentifierProperty, boolean isVersioned)
public String getName()
EntityType
getName
in interface EntityType<X>
public Bindable.BindableType getBindableType()
Bindable
getBindableType
in interface Bindable<X>
public Class<X> getBindableJavaType()
Bindable
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.getBindableJavaType
in interface Bindable<X>
public Type.PersistenceType getPersistenceType()
Type
getPersistenceType
in interface Type<X>
protected boolean requiresSupertypeForNonDeclaredIdentifier()
AbstractIdentifiableType
requiresSupertypeForNonDeclaredIdentifier
in class AbstractIdentifiableType<X>
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.