public abstract class AbstractIdentifiableType<X> extends AbstractManagedType<X> implements javax.persistence.metamodel.IdentifiableType<X>, Serializable
IdentifiableType types. JPA defines
identifiable types as entities or mapped-superclasses. Basically things to which an
identifier can be attached.
NOTE : Currently we only really have support for direct entities in the Hibernate metamodel
as the information for them is consumed into the closest actual entity subclass(es) in the
internal Hibernate mapping-metamodel.AbstractManagedType.Builder<X>| 构造器和说明 |
|---|
AbstractIdentifiableType(Class<X> javaType,
String typeName,
AbstractIdentifiableType<? super X> superType,
boolean hasIdClass,
boolean hasIdentifierProperty,
boolean versioned) |
| 限定符和类型 | 方法和说明 |
|---|---|
<Y> javax.persistence.metamodel.SingularAttribute<X,Y> |
getDeclaredId(Class<Y> javaType) |
javax.persistence.metamodel.SingularAttribute<X,?> |
getDeclaredVersion()
For used to retrieve the declared version when populating the static metamodel.
|
<Y> javax.persistence.metamodel.SingularAttribute<X,Y> |
getDeclaredVersion(Class<Y> javaType) |
<Y> javax.persistence.metamodel.SingularAttribute<? super X,Y> |
getId(Class<Y> javaType) |
Set<javax.persistence.metamodel.SingularAttribute<? super X,?>> |
getIdClassAttributes() |
Set<javax.persistence.metamodel.SingularAttribute<? super X,?>> |
getIdClassAttributesSafely()
A form of
getIdClassAttributes() which prefers to return null rather than throw exceptions |
javax.persistence.metamodel.Type<?> |
getIdType() |
AbstractIdentifiableType<? super X> |
getSupertype() |
<Y> javax.persistence.metamodel.SingularAttribute<? super X,Y> |
getVersion(Class<Y> javaType) |
boolean |
hasIdClass() |
boolean |
hasSingleIdAttribute() |
boolean |
hasVersionAttribute() |
protected SingularAttributeImpl |
internalGetId() |
getAttribute, getAttributes, getBuilder, 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, lockgetJavaType, getTypeNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, 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, getSingularAttributespublic AbstractIdentifiableType(Class<X> javaType, String typeName, AbstractIdentifiableType<? super X> superType, boolean hasIdClass, boolean hasIdentifierProperty, boolean versioned)
public boolean hasIdClass()
public boolean hasSingleIdAttribute()
hasSingleIdAttribute 在接口中 javax.persistence.metamodel.IdentifiableType<X>public AbstractIdentifiableType<? super X> getSupertype()
getSupertype 在接口中 javax.persistence.metamodel.IdentifiableType<X>getSupertype 在类中 AbstractManagedType<X>public <Y> javax.persistence.metamodel.SingularAttribute<? super X,Y> getId(Class<Y> javaType)
getId 在接口中 javax.persistence.metamodel.IdentifiableType<X>protected SingularAttributeImpl internalGetId()
public <Y> javax.persistence.metamodel.SingularAttribute<X,Y> getDeclaredId(Class<Y> javaType)
getDeclaredId 在接口中 javax.persistence.metamodel.IdentifiableType<X>public javax.persistence.metamodel.Type<?> getIdType()
getIdType 在接口中 javax.persistence.metamodel.IdentifiableType<X>public Set<javax.persistence.metamodel.SingularAttribute<? super X,?>> getIdClassAttributesSafely()
getIdClassAttributes() which prefers to return null rather than throw exceptionsnullpublic Set<javax.persistence.metamodel.SingularAttribute<? super X,?>> getIdClassAttributes()
getIdClassAttributes 在接口中 javax.persistence.metamodel.IdentifiableType<X>public boolean hasVersionAttribute()
hasVersionAttribute 在接口中 javax.persistence.metamodel.IdentifiableType<X>public <Y> javax.persistence.metamodel.SingularAttribute<? super X,Y> getVersion(Class<Y> javaType)
getVersion 在接口中 javax.persistence.metamodel.IdentifiableType<X>public <Y> javax.persistence.metamodel.SingularAttribute<X,Y> getDeclaredVersion(Class<Y> javaType)
getDeclaredVersion 在接口中 javax.persistence.metamodel.IdentifiableType<X>public javax.persistence.metamodel.SingularAttribute<X,?> getDeclaredVersion()
Copyright © 2019. All rights reserved.