类的使用
org.hibernate.mapping.PersistentClass
-
使用PersistentClass的程序包 程序包 说明 org.hibernate.boot This package contains the contracts that make up the Hibernate native bootstrapping API (building a SessionFactory).org.hibernate.boot.internal org.hibernate.boot.model.source.internal.hbm org.hibernate.boot.spi org.hibernate.bytecode.enhance.spi.interceptor interceptor implementationsorg.hibernate.cache.cfg.internal org.hibernate.cfg This package defines APIs for configuring Hibernate, and classes for building the Hibernate configuration-time metamodel.org.hibernate.cfg.annotations org.hibernate.hql.spi.id Support for multi-table update and delete statements via id-tables.org.hibernate.hql.spi.id.global org.hibernate.hql.spi.id.local org.hibernate.hql.spi.id.persistent Package contains an implementation of MultiTableBulkIdStrategy based on the use of a persistent (ANSI SQL term) table to hold id values.org.hibernate.internal An internal package containing mostly implementations of central Hibernate APIs.org.hibernate.mapping This package defines the Hibernate configuration-time metamodel.org.hibernate.metamodel.model.domain.internal org.hibernate.persister.entity This package abstracts persistence mechanisms for entities, and defines the Hibernate runtime metamodel.org.hibernate.persister.internal org.hibernate.persister.spi org.hibernate.proxy.pojo org.hibernate.tuple This package defines a runtime metamodel for entities at the object level and abstracts the differences between the various entity modes.org.hibernate.tuple.entity -
-
org.hibernate.boot中PersistentClass的使用
返回PersistentClass的org.hibernate.boot中的方法 修饰符和类型 方法 说明 PersistentClassMetadata. getEntityBinding(String entityName)Retrieves the PersistentClass entity mapping metadata representation for the given entity name.返回变量类型为PersistentClass的类型的org.hibernate.boot中的方法 修饰符和类型 方法 说明 Collection<PersistentClass>Metadata. getEntityBindings()Retrieves the PersistentClass entity metadata representation for all known entities. -
org.hibernate.boot.internal中PersistentClass的使用
返回PersistentClass的org.hibernate.boot.internal中的方法 修饰符和类型 方法 说明 PersistentClassInFlightMetadataCollectorImpl. getEntityBinding(String entityName)PersistentClassMetadataImpl. getEntityBinding(String entityName)返回变量类型为PersistentClass的类型的org.hibernate.boot.internal中的方法 修饰符和类型 方法 说明 Map<String,PersistentClass>InFlightMetadataCollectorImpl. getEntityBindingMap()Map<String,PersistentClass>MetadataImpl. getEntityBindingMap()Collection<PersistentClass>InFlightMetadataCollectorImpl. getEntityBindings()Collection<PersistentClass>MetadataImpl. getEntityBindings()参数类型为PersistentClass的org.hibernate.boot.internal中的方法 修饰符和类型 方法 说明 voidInFlightMetadataCollectorImpl. addEntityBinding(PersistentClass persistentClass)类型变量类型为PersistentClass的org.hibernate.boot.internal中的构造器参数 构造器 说明 MetadataImpl(UUID uuid, MetadataBuildingOptions metadataBuildingOptions, MutableIdentifierGeneratorFactory identifierGeneratorFactory, Map<String,PersistentClass> entityBindingMap, Map<Class,MappedSuperclass> mappedSuperclassMap, Map<String,Collection> collectionBindingMap, Map<String,TypeDefinition> typeDefinitionMap, Map<String,FilterDefinition> filterDefinitionMap, Map<String,FetchProfile> fetchProfileMap, Map<String,String> imports, Map<String,IdentifierGeneratorDefinition> idGeneratorDefinitionMap, Map<String,NamedQueryDefinition> namedQueryMap, Map<String,NamedSQLQueryDefinition> namedNativeQueryMap, Map<String,NamedProcedureCallDefinition> namedProcedureCallMap, Map<String,ResultSetMappingDefinition> sqlResultSetMappingMap, Map<String,NamedEntityGraphDefinition> namedEntityGraphMap, Map<String,SQLFunction> sqlFunctionMap, Database database, BootstrapContext bootstrapContext) -
org.hibernate.boot.model.source.internal.hbm中PersistentClass的使用
返回PersistentClass的org.hibernate.boot.model.source.internal.hbm中的方法 修饰符和类型 方法 说明 PersistentClassHbmLocalMetadataBuildingContext. findEntityBinding(String entityName, String clazz)PersistentClassMappingDocument. findEntityBinding(String entityName, String clazz) -
org.hibernate.boot.spi中PersistentClass的使用
返回PersistentClass的org.hibernate.boot.spi中的方法 修饰符和类型 方法 说明 PersistentClassAbstractDelegatingMetadata. getEntityBinding(String entityName)返回变量类型为PersistentClass的类型的org.hibernate.boot.spi中的方法 修饰符和类型 方法 说明 Map<String,PersistentClass>InFlightMetadataCollector. getEntityBindingMap()Needed for SecondPass handlingCollection<PersistentClass>AbstractDelegatingMetadata. getEntityBindings()参数类型为PersistentClass的org.hibernate.boot.spi中的方法 修饰符和类型 方法 说明 voidInFlightMetadataCollector. addEntityBinding(PersistentClass persistentClass)Add the PersistentClass for an entity mapping. -
org.hibernate.bytecode.enhance.spi.interceptor中PersistentClass的使用
参数类型为PersistentClass的org.hibernate.bytecode.enhance.spi.interceptor中的方法 修饰符和类型 方法 说明 static LazyAttributesMetadataLazyAttributesMetadata. from(PersistentClass mappedEntity, boolean isEnhanced, boolean allowEnhancementAsProxy)Build a LazyFetchGroupMetadata based on the attributes defined for the PersistentClass -
org.hibernate.cache.cfg.internal中PersistentClass的使用
参数类型为PersistentClass的org.hibernate.cache.cfg.internal中的方法 修饰符和类型 方法 说明 DomainDataRegionConfigImpl.BuilderDomainDataRegionConfigImpl.Builder. addEntityConfig(PersistentClass bootEntityDescriptor, AccessType accessType) -
org.hibernate.cfg中PersistentClass的使用
返回PersistentClass的org.hibernate.cfg中的方法 修饰符和类型 方法 说明 PersistentClassClassPropertyHolder. getPersistentClass()PersistentClassCollectionPropertyHolder. getPersistentClass()PersistentClassComponentPropertyHolder. getPersistentClass()PersistentClassPropertyHolder. getPersistentClass()参数类型为PersistentClass的org.hibernate.cfg中的方法 修饰符和类型 方法 说明 voidEjb3JoinColumn. addDefaultJoinColumnName(PersistentClass referencedEntity, String logicalReferencedColumn)static PropertyHolderPropertyHolderBuilder. buildPropertyHolder(org.hibernate.annotations.common.reflection.XClass clazzToProcess, PersistentClass persistentClass, EntityBinder entityBinder, MetadataBuildingContext context, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)static PropertyHolderPropertyHolderBuilder. buildPropertyHolder(PersistentClass persistentClass, Map<String,Join> joins, MetadataBuildingContext context, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)must only be used on second level phases (has to be settled already) static intEjb3JoinColumn. checkReferencedColumnsType(Ejb3JoinColumn[] columns, PersistentClass referencedEntity, MetadataBuildingContext context)voidEjb3JoinColumn. copyReferencedStructureAndCreateDefaultJoinColumns(PersistentClass referencedEntity, Iterator columnIterator, SimpleValue value)static voidBinderHelper. createSyntheticPropertyReference(Ejb3JoinColumn[] columns, PersistentClass ownerEntity, PersistentClass associatedEntity, Value value, boolean inverse, MetadataBuildingContext context)static ObjectBinderHelper. findColumnOwner(PersistentClass persistentClass, String columnName, MetadataBuildingContext context)Find the column owner (ie PersistentClass or Join) of columnName.static PropertyBinderHelper. findPropertyByName(PersistentClass associatedClass, String propertyName)Retrieve the property by path in a recursive way, including IndetifierProperty in the loop If propertyName is null or empty, the IdentifierProperty is returnedvoidEjb3JoinColumn. linkValueUsingDefaultColumnNaming(Column referencedColumn, PersistentClass referencedEntity, SimpleValue value)voidEjb3JoinColumn. setPersistentClass(PersistentClass persistentClass, Map<String,Join> joins, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)Override persistent class on oneToMany Cases for late settings Must only be used on second level pass binding参数类型为PersistentClass的org.hibernate.cfg中的构造器 构造器 说明 ClassPropertyHolder(PersistentClass persistentClass, org.hibernate.annotations.common.reflection.XClass entityXClass, Map<String,Join> joins, MetadataBuildingContext context, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)ClassPropertyHolder(PersistentClass persistentClass, org.hibernate.annotations.common.reflection.XClass entityXClass, EntityBinder entityBinder, MetadataBuildingContext context, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass) -
org.hibernate.cfg.annotations中PersistentClass的使用
参数类型为PersistentClass的org.hibernate.cfg.annotations中的方法 修饰符和类型 方法 说明 static voidTableBinder. bindFk(PersistentClass referencedEntity, PersistentClass destinationEntity, Ejb3JoinColumn[] columns, SimpleValue value, boolean unique, MetadataBuildingContext buildingContext)static voidCollectionBinder. bindManytoManyInverseFk(PersistentClass referencedEntity, Ejb3JoinColumn[] columns, SimpleValue value, boolean unique, MetadataBuildingContext buildingContext)bind the inverse FK of a ManyToMany If we are in a mappedBy case, read the columns from the associated collection element Otherwise delegates to the usual algorithmprotected CollectionArrayBinder. createCollection(PersistentClass persistentClass)protected CollectionBagBinder. createCollection(PersistentClass persistentClass)protected abstract CollectionCollectionBinder. createCollection(PersistentClass persistentClass)protected CollectionIdBagBinder. createCollection(PersistentClass persistentClass)protected CollectionListBinder. createCollection(PersistentClass persistentClass)protected CollectionMapBinder. createCollection(PersistentClass persistentClass)protected CollectionPrimitiveArrayBinder. createCollection(PersistentClass persistentClass)protected CollectionSetBinder. createCollection(PersistentClass persistentClass)protected ValueMapBinder. createFormulatedValue(Value value, Collection collection, String targetPropertyName, PersistentClass associatedClass, PersistentClass targetPropertyPersistentClass, MetadataBuildingContext buildingContext)static voidTableBinder. linkJoinColumnWithValueOverridingNameIfImplicit(PersistentClass referencedEntity, Iterator columnIterator, Ejb3JoinColumn[] columns, SimpleValue value)参数类型为PersistentClass的org.hibernate.cfg.annotations中的构造器 构造器 说明 EntityBinder(javax.persistence.Entity ejb3Ann, Entity hibAnn, org.hibernate.annotations.common.reflection.XClass annotatedClass, PersistentClass persistentClass, MetadataBuildingContext context) -
org.hibernate.hql.spi.id中PersistentClass的使用
参数类型为PersistentClass的org.hibernate.hql.spi.id中的方法 修饰符和类型 方法 说明 protected abstract TTAbstractMultiTableBulkIdStrategyImpl. buildIdTableInfo(PersistentClass entityBinding, Table idTable, JdbcServices jdbcServices, MetadataImplementor metadata, CT context)protected QualifiedTableNameAbstractMultiTableBulkIdStrategyImpl. determineIdTableName(JdbcEnvironment jdbcEnvironment, PersistentClass entityBinding)booleanIdTableHelper. needsIdTable(PersistentClass entityBinding) -
org.hibernate.hql.spi.id.global中PersistentClass的使用
参数类型为PersistentClass的org.hibernate.hql.spi.id.global中的方法 修饰符和类型 方法 说明 protected org.hibernate.hql.spi.id.global.IdTableInfoImplGlobalTemporaryTableBulkIdStrategy. buildIdTableInfo(PersistentClass entityBinding, Table idTable, JdbcServices jdbcServices, MetadataImplementor metadata, org.hibernate.hql.spi.id.global.PreparationContextImpl context) -
org.hibernate.hql.spi.id.local中PersistentClass的使用
参数类型为PersistentClass的org.hibernate.hql.spi.id.local中的方法 修饰符和类型 方法 说明 protected IdTableInfoImplLocalTemporaryTableBulkIdStrategy. buildIdTableInfo(PersistentClass entityBinding, Table idTable, JdbcServices jdbcServices, MetadataImplementor metadata, AbstractMultiTableBulkIdStrategyImpl.PreparationContext context) -
org.hibernate.hql.spi.id.persistent中PersistentClass的使用
参数类型为PersistentClass的org.hibernate.hql.spi.id.persistent中的方法 修饰符和类型 方法 说明 protected org.hibernate.hql.spi.id.persistent.IdTableInfoImplPersistentTableBulkIdStrategy. buildIdTableInfo(PersistentClass entityBinding, Table idTable, JdbcServices jdbcServices, MetadataImplementor metadata, org.hibernate.hql.spi.id.persistent.PreparationContextImpl context)protected QualifiedTableNamePersistentTableBulkIdStrategy. determineIdTableName(JdbcEnvironment jdbcEnvironment, PersistentClass entityBinding) -
org.hibernate.internal中PersistentClass的使用
参数类型为PersistentClass的org.hibernate.internal中的构造器 构造器 说明 FilterConfiguration(String name, String condition, boolean autoAliasInjection, Map<String,String> aliasTableMap, Map<String,String> aliasEntityMap, PersistentClass persistentClass) -
org.hibernate.mapping中PersistentClass的使用
org.hibernate.mapping中PersistentClass的子类 修饰符和类型 类 说明 classJoinedSubclassA subclass in a table-per-subclass mappingclassRootClassThe root class of an inheritance hierarchyclassSingleTableSubclassclassSubclassA subclass in a table-per-class-hierarchy mappingclassUnionSubclassA subclass in a table-per-concrete-class mapping返回PersistentClass的org.hibernate.mapping中的方法 修饰符和类型 方法 说明 PersistentClassOneToMany. getAssociatedClass()PersistentClassCollection. getOwner()PersistentClassComponent. getOwner()PersistentClassJoin. getPersistentClass()PersistentClassProperty. getPersistentClass()abstract PersistentClassPersistentClass. getSuperclass()PersistentClassRootClass. getSuperclass()PersistentClassSubclass. getSuperclass()PersistentClassMappedSuperclass. getSuperPersistentClass()Returns the PersistentClass of the first superclass marked as @Entity or null if none exists参数类型为PersistentClass的org.hibernate.mapping中的方法 修饰符和类型 方法 说明 voidOneToMany. setAssociatedClass(PersistentClass associatedClass)Associated entity on the many sidevoidCollection. setOwner(PersistentClass owner)已过时。Inject the owner into constructor.voidComponent. setOwner(PersistentClass owner)voidJoin. setPersistentClass(PersistentClass persistentClass)voidProperty. setPersistentClass(PersistentClass persistentClass)voidSubclass. setSuperclass(PersistentClass superclass) -
org.hibernate.metamodel.model.domain.internal中PersistentClass的使用
参数类型为PersistentClass的org.hibernate.metamodel.model.domain.internal中的构造器 构造器 说明 EntityTypeImpl(Class javaType, IdentifiableTypeDescriptor<? super J> superType, PersistentClass persistentClass, SessionFactoryImplementor sessionFactory) -
org.hibernate.persister.entity中PersistentClass的使用
参数类型为PersistentClass的org.hibernate.persister.entity中的方法 修饰符和类型 方法 说明 protected StringUnionSubclassEntityPersister. generateSubquery(PersistentClass model, Mapping mapping)protected voidAbstractEntityPersister. initSubclassPropertyAliasesMap(PersistentClass model)Must be called by subclasses, at the end of their constructors参数类型为PersistentClass的org.hibernate.persister.entity中的构造器 构造器 说明 AbstractEntityPersister(PersistentClass persistentClass, EntityDataAccess cacheAccessStrategy, NaturalIdDataAccess naturalIdRegionAccessStrategy, PersisterCreationContext creationContext)JoinedSubclassEntityPersister(PersistentClass persistentClass, EntityDataAccess cacheAccessStrategy, NaturalIdDataAccess naturalIdRegionAccessStrategy, PersisterCreationContext creationContext)SingleTableEntityPersister(PersistentClass persistentClass, EntityDataAccess cacheAccessStrategy, NaturalIdDataAccess naturalIdRegionAccessStrategy, PersisterCreationContext creationContext)UnionSubclassEntityPersister(PersistentClass persistentClass, EntityDataAccess cacheAccessStrategy, NaturalIdDataAccess naturalIdRegionAccessStrategy, PersisterCreationContext creationContext) -
org.hibernate.persister.internal中PersistentClass的使用
参数类型为PersistentClass的org.hibernate.persister.internal中的方法 修饰符和类型 方法 说明 EntityPersisterPersisterFactoryImpl. createEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, PersisterCreationContext creationContext)Class<? extends EntityPersister>StandardPersisterClassResolver. getEntityPersisterClass(PersistentClass metadata) -
org.hibernate.persister.spi中PersistentClass的使用
参数类型为PersistentClass的org.hibernate.persister.spi中的方法 修饰符和类型 方法 说明 EntityPersisterPersisterFactory. createEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, PersisterCreationContext creationContext)Create an entity persister instance.Class<? extends EntityPersister>PersisterClassResolver. getEntityPersisterClass(PersistentClass metadata)Returns the entity persister class for a given entityName or null if the entity persister class should be the default. -
org.hibernate.proxy.pojo中PersistentClass的使用
参数类型为PersistentClass的org.hibernate.proxy.pojo中的方法 修饰符和类型 方法 说明 static Set<Class>ProxyFactoryHelper. extractProxyInterfaces(PersistentClass persistentClass, String entityName)static voidProxyFactoryHelper. validateProxyability(PersistentClass persistentClass) -
org.hibernate.tuple中PersistentClass的使用
参数类型为PersistentClass的org.hibernate.tuple中的方法 修饰符和类型 方法 说明 static IdentifierPropertyPropertyFactory. buildIdentifierAttribute(PersistentClass mappedEntity, IdentifierGenerator generator)Generates the attribute representation of the identifier for a given entity mapping.参数类型为PersistentClass的org.hibernate.tuple中的构造器 构造器 说明 DynamicMapInstantiator(PersistentClass mappingInfo) -
org.hibernate.tuple.entity中PersistentClass的使用
参数类型为PersistentClass的org.hibernate.tuple.entity中的方法 修饰符和类型 方法 说明 protected abstract InstantiatorAbstractEntityTuplizer. buildInstantiator(EntityMetamodel entityMetamodel, PersistentClass mappingInfo)Build an appropriate Instantiator for the given mapped entity.protected InstantiatorDynamicMapEntityTuplizer. buildInstantiator(EntityMetamodel entityMetamodel, PersistentClass mappingInfo)protected InstantiatorPojoEntityTuplizer. buildInstantiator(EntityMetamodel entityMetamodel, PersistentClass persistentClass)protected abstract GetterAbstractEntityTuplizer. buildPropertyGetter(Property mappedProperty, PersistentClass mappedEntity)Build an appropriate Getter for the given property.protected GetterDynamicMapEntityTuplizer. buildPropertyGetter(Property mappedProperty, PersistentClass mappedEntity)protected GetterPojoEntityTuplizer. buildPropertyGetter(Property mappedProperty, PersistentClass mappedEntity)protected abstract SetterAbstractEntityTuplizer. buildPropertySetter(Property mappedProperty, PersistentClass mappedEntity)Build an appropriate Setter for the given property.protected SetterDynamicMapEntityTuplizer. buildPropertySetter(Property mappedProperty, PersistentClass mappedEntity)protected SetterPojoEntityTuplizer. buildPropertySetter(Property mappedProperty, PersistentClass mappedEntity)protected abstract ProxyFactoryAbstractEntityTuplizer. buildProxyFactory(PersistentClass mappingInfo, Getter idGetter, Setter idSetter)Build an appropriate ProxyFactory for the given mapped entity.protected ProxyFactoryDynamicMapEntityTuplizer. buildProxyFactory(PersistentClass mappingInfo, Getter idGetter, Setter idSetter)protected ProxyFactoryPojoEntityTuplizer. buildProxyFactory(PersistentClass persistentClass, Getter idGetter, Setter idSetter)protected ProxyFactoryPojoEntityTuplizer. buildProxyFactoryInternal(PersistentClass persistentClass, Getter idGetter, Setter idSetter)EntityTuplizerEntityTuplizerFactory. constructDefaultTuplizer(EntityMode entityMode, EntityMetamodel metamodel, PersistentClass persistentClass)Construct an instance of the default tuplizer for the given entity-mode.EntityTuplizerEntityTuplizerFactory. constructTuplizer(Class<? extends EntityTuplizer> tuplizerClass, EntityMetamodel metamodel, PersistentClass persistentClass)Construct an instance of the given tuplizer class.EntityTuplizerEntityTuplizerFactory. constructTuplizer(String tuplizerClassName, EntityMetamodel metamodel, PersistentClass persistentClass)Construct an instance of the given tuplizer class.static BytecodeEnhancementMetadataBytecodeEnhancementMetadataPojoImpl. from(PersistentClass persistentClass, Set<String> identifierAttributeNames, CompositeType nonAggregatedCidMapper, boolean allowEnhancementAsProxy)Static constructor参数类型为PersistentClass的org.hibernate.tuple.entity中的构造器 构造器 说明 AbstractEntityTuplizer(EntityMetamodel entityMetamodel, PersistentClass mappingInfo)Constructs a new AbstractEntityTuplizer instance.EntityMetamodel(PersistentClass persistentClass, EntityPersister persister, SessionFactoryImplementor sessionFactory)PojoEntityInstantiator(EntityMetamodel entityMetamodel, PersistentClass persistentClass, ReflectionOptimizer.InstantiationOptimizer optimizer)PojoEntityTuplizer(EntityMetamodel entityMetamodel, PersistentClass mappedEntity)
-