类 AbstractIdentifiableType<J>
- java.lang.Object
-
- org.hibernate.metamodel.model.domain.internal.AbstractType<J>
-
- org.hibernate.metamodel.model.domain.internal.AbstractManagedType<J>
-
- org.hibernate.metamodel.model.domain.internal.AbstractIdentifiableType<J>
-
- 所有已实现的接口:
Serializable,javax.persistence.metamodel.IdentifiableType<J>,javax.persistence.metamodel.ManagedType<J>,javax.persistence.metamodel.Type<J>,DomainType<J>,IdentifiableDomainType<J>,ManagedDomainType<J>,SimpleDomainType<J>,DomainTypeDescriptor<J>,IdentifiableTypeDescriptor<J>,ManagedTypeDescriptor<J>,SimpleTypeDescriptor<J>
- 直接已知子类:
EntityTypeImpl,MappedSuperclassTypeImpl
public abstract class AbstractIdentifiableType<J> extends AbstractManagedType<J> implements IdentifiableTypeDescriptor<J>, Serializable
Defines commonality for the JPAIdentifiableTypetypes. 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.- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 org.hibernate.metamodel.model.domain.spi.IdentifiableTypeDescriptor
IdentifiableTypeDescriptor.InFlightAccess<X>
-
从接口继承的嵌套类/接口 org.hibernate.metamodel.model.domain.spi.ManagedTypeDescriptor
ManagedTypeDescriptor.InFlightAccess<J>
-
-
构造器概要
构造器 构造器 说明 AbstractIdentifiableType(Class<J> javaType, String typeName, IdentifiableTypeDescriptor<? super J> superType, boolean hasIdClass, boolean hasIdentifierProperty, boolean versioned, SessionFactoryImplementor sessionFactory)
-
方法概要
-
从类继承的方法 org.hibernate.metamodel.model.domain.internal.AbstractManagedType
findAttribute, findDeclaredAttribute, findSubType, findSubType, getAttribute, getAttributes, getCollection, getCollection, getDeclaredAttribute, getDeclaredAttributes, getDeclaredCollection, getDeclaredCollection, getDeclaredList, getDeclaredList, getDeclaredMap, getDeclaredMap, getDeclaredPluralAttributes, getDeclaredSet, getDeclaredSet, getDeclaredSingularAttribute, getDeclaredSingularAttribute, getDeclaredSingularAttributes, getList, getList, getMap, getMap, getName, getPluralAttribute, getPluralAttributes, getSet, getSet, getSingularAttribute, getSingularAttribute, getSingularAttributes, isPrimitiveVariant, makeSubGraph, sessionFactory
-
从类继承的方法 org.hibernate.metamodel.model.domain.internal.AbstractType
getJavaType, getTypeName
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.metamodel.model.domain.DomainType
getTypeName
-
从接口继承的方法 org.hibernate.metamodel.model.domain.spi.IdentifiableTypeDescriptor
getSupertype
-
从接口继承的方法 javax.persistence.metamodel.ManagedType
getAttributes, getDeclaredAttributes, getDeclaredPluralAttributes, getDeclaredSingularAttributes, getPluralAttributes, getSingularAttributes
-
从接口继承的方法 org.hibernate.metamodel.model.domain.spi.ManagedTypeDescriptor
findAttribute, findDeclaredAttribute, findSubType, findSubType, getAttribute, getCollection, getCollection, getDeclaredAttribute, getDeclaredCollection, getDeclaredCollection, getDeclaredList, getDeclaredList, getDeclaredMap, getDeclaredMap, getDeclaredSet, getDeclaredSet, getDeclaredSingularAttribute, getDeclaredSingularAttribute, getDefaultGraph, getList, getList, getMap, getMap, getName, getPluralAttribute, getSet, getSet, getSingularAttribute, getSingularAttribute, makeSubGraph, makeSubGraph
-
-
-
-
构造器详细资料
-
AbstractIdentifiableType
public AbstractIdentifiableType(Class<J> javaType, String typeName, IdentifiableTypeDescriptor<? super J> superType, boolean hasIdClass, boolean hasIdentifierProperty, boolean versioned, SessionFactoryImplementor sessionFactory)
-
-
方法详细资料
-
createInFlightAccess
protected IdentifiableTypeDescriptor.InFlightAccess createInFlightAccess()
- 覆盖:
createInFlightAccess在类中AbstractManagedType<J>
-
getInFlightAccess
public IdentifiableTypeDescriptor.InFlightAccess<J> getInFlightAccess()
从接口复制的说明:ManagedTypeDescriptorIn-flight access to the managed type. Used to add attributes, etc. Valid only during boot.- 指定者:
getInFlightAccess在接口中IdentifiableTypeDescriptor<J>- 指定者:
getInFlightAccess在接口中ManagedTypeDescriptor<J>- 覆盖:
getInFlightAccess在类中AbstractManagedType<J>
-
hasIdClass
public boolean hasIdClass()
- 指定者:
hasIdClass在接口中IdentifiableTypeDescriptor<J>
-
hasSingleIdAttribute
public boolean hasSingleIdAttribute()
- 指定者:
hasSingleIdAttribute在接口中javax.persistence.metamodel.IdentifiableType<J>
-
getSuperType
public IdentifiableTypeDescriptor<? super J> getSuperType()
从接口复制的说明:ManagedTypeDescriptorGet this ManagedType's super type descriptor. ATM only supported for theIdentifiableTypeDescriptorbranch of the ManagedType tree- 指定者:
getSuperType在接口中IdentifiableTypeDescriptor<J>- 指定者:
getSuperType在接口中ManagedTypeDescriptor<J>- 覆盖:
getSuperType在类中AbstractManagedType<J>
-
getId
public <Y> SingularPersistentAttribute<? super J,Y> getId(Class<Y> javaType)
- 指定者:
getId在接口中javax.persistence.metamodel.IdentifiableType<J>- 指定者:
getId在接口中IdentifiableTypeDescriptor<J>
-
locateIdAttribute
public SingularPersistentAttribute locateIdAttribute()
- 指定者:
locateIdAttribute在接口中IdentifiableTypeDescriptor<J>
-
getDeclaredId
public <Y> SingularPersistentAttribute<J,Y> getDeclaredId(Class<Y> javaType)
- 指定者:
getDeclaredId在接口中javax.persistence.metamodel.IdentifiableType<J>- 指定者:
getDeclaredId在接口中IdentifiableTypeDescriptor<J>
-
getIdType
public SimpleTypeDescriptor<?> getIdType()
- 指定者:
getIdType在接口中javax.persistence.metamodel.IdentifiableType<J>- 指定者:
getIdType在接口中IdentifiableTypeDescriptor<J>
-
getIdClassAttributesSafely
public Set<SingularPersistentAttribute<? super J,?>> getIdClassAttributesSafely()
A form ofgetIdClassAttributes()which prefers to returnnullrather than throw exceptions- 返回:
- IdClass attributes or
null
-
getIdClassAttributes
public Set<javax.persistence.metamodel.SingularAttribute<? super J,?>> getIdClassAttributes()
- 指定者:
getIdClassAttributes在接口中javax.persistence.metamodel.IdentifiableType<J>
-
collectIdClassAttributes
public void collectIdClassAttributes(Set<SingularPersistentAttribute<? super J,?>> attributes)
- 指定者:
collectIdClassAttributes在接口中IdentifiableTypeDescriptor<J>
-
visitIdClassAttributes
public void visitIdClassAttributes(Consumer<SingularPersistentAttribute<? super J,?>> attributeConsumer)
- 指定者:
visitIdClassAttributes在接口中IdentifiableTypeDescriptor<J>
-
hasVersionAttribute
public boolean hasVersionAttribute()
- 指定者:
hasVersionAttribute在接口中javax.persistence.metamodel.IdentifiableType<J>
-
hasDeclaredVersionAttribute
public boolean hasDeclaredVersionAttribute()
-
getVersion
public <Y> SingularPersistentAttribute<? super J,Y> getVersion(Class<Y> javaType)
- 指定者:
getVersion在接口中javax.persistence.metamodel.IdentifiableType<J>- 指定者:
getVersion在接口中IdentifiableTypeDescriptor<J>
-
locateVersionAttribute
public SingularPersistentAttribute locateVersionAttribute()
- 指定者:
locateVersionAttribute在接口中IdentifiableTypeDescriptor<J>
-
getDeclaredVersion
public <Y> SingularPersistentAttribute<J,Y> getDeclaredVersion(Class<Y> javaType)
- 指定者:
getDeclaredVersion在接口中javax.persistence.metamodel.IdentifiableType<J>- 指定者:
getDeclaredVersion在接口中IdentifiableTypeDescriptor<J>
-
getDeclaredVersion
public javax.persistence.metamodel.SingularAttribute<J,?> getDeclaredVersion()
For used to retrieve the declared version when populating the static metamodel.- 返回:
- The declared
-
-