Uses of Class
org.hibernate.mapping.PersistentClass
-
Packages that use PersistentClass Package Description org.hibernate.boot This package contains the contracts that make up the Hibernate native bootstrapping API (building a SessionFactory).org.hibernate.boot.spi org.hibernate.bytecode.enhance.spi.interceptor interceptor implementationsorg.hibernate.cfg 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.mapping org.hibernate.persister.entity org.hibernate.persister.spi org.hibernate.proxy.pojo org.hibernate.tuple org.hibernate.tuple.entity -
-
Uses of PersistentClass in org.hibernate.boot
Methods in org.hibernate.boot that return PersistentClass Modifier and Type Method Description PersistentClass
Metadata. getEntityBinding(java.lang.String entityName)
Retrieves the PersistentClass entity mapping metadata representation for the given entity name.Methods in org.hibernate.boot that return types with arguments of type PersistentClass Modifier and Type Method Description java.util.Collection<PersistentClass>
Metadata. getEntityBindings()
Retrieves the PersistentClass entity metadata representation for all known entities. -
Uses of PersistentClass in org.hibernate.boot.spi
Methods in org.hibernate.boot.spi that return PersistentClass Modifier and Type Method Description PersistentClass
AbstractDelegatingMetadata. getEntityBinding(java.lang.String entityName)
Methods in org.hibernate.boot.spi that return types with arguments of type PersistentClass Modifier and Type Method Description java.util.Map<java.lang.String,PersistentClass>
InFlightMetadataCollector. getEntityBindingMap()
Needed for SecondPass handlingjava.util.Collection<PersistentClass>
AbstractDelegatingMetadata. getEntityBindings()
Methods in org.hibernate.boot.spi with parameters of type PersistentClass Modifier and Type Method Description void
InFlightMetadataCollector. addEntityBinding(PersistentClass persistentClass)
Add the PersistentClass for an entity mapping. -
Uses of PersistentClass in org.hibernate.bytecode.enhance.spi.interceptor
Methods in org.hibernate.bytecode.enhance.spi.interceptor with parameters of type PersistentClass Modifier and Type Method Description static LazyAttributesMetadata
LazyAttributesMetadata. from(PersistentClass mappedEntity, boolean isEnhanced, boolean collectionsInDefaultFetchGroupEnabled, PersisterCreationContext creationContext)
Build a LazyFetchGroupMetadata based on the attributes defined for the PersistentClass -
Uses of PersistentClass in org.hibernate.cfg
Methods in org.hibernate.cfg that return PersistentClass Modifier and Type Method Description PersistentClass
ClassPropertyHolder. getPersistentClass()
PersistentClass
CollectionPropertyHolder. getPersistentClass()
PersistentClass
ComponentPropertyHolder. getPersistentClass()
PersistentClass
PropertyHolder. getPersistentClass()
Methods in org.hibernate.cfg with parameters of type PersistentClass Modifier and Type Method Description void
Ejb3JoinColumn. addDefaultJoinColumnName(PersistentClass referencedEntity, java.lang.String logicalReferencedColumn)
static PropertyHolder
PropertyHolderBuilder. buildPropertyHolder(org.hibernate.annotations.common.reflection.XClass clazzToProcess, PersistentClass persistentClass, EntityBinder entityBinder, MetadataBuildingContext context, java.util.Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
static PropertyHolder
PropertyHolderBuilder. buildPropertyHolder(PersistentClass persistentClass, java.util.Map<java.lang.String,Join> joins, MetadataBuildingContext context, java.util.Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
must only be used on second level phases (has to be settled already) static int
Ejb3JoinColumn. checkReferencedColumnsType(Ejb3JoinColumn[] columns, PersistentClass referencedEntity, MetadataBuildingContext context)
void
Ejb3JoinColumn. copyReferencedStructureAndCreateDefaultJoinColumns(PersistentClass referencedEntity, java.util.Iterator columnIterator, SimpleValue value)
static void
BinderHelper. createSyntheticPropertyReference(Ejb3JoinColumn[] columns, PersistentClass ownerEntity, PersistentClass associatedEntity, Value value, boolean inverse, MetadataBuildingContext context)
static java.lang.Object
BinderHelper. findColumnOwner(PersistentClass persistentClass, java.lang.String columnName, MetadataBuildingContext context)
Find the column owner (ie PersistentClass or Join) of columnName.static Property
BinderHelper. findPropertyByName(PersistentClass associatedClass, java.lang.String propertyName)
Retrieve the property by path in a recursive way, including IdentifierProperty in the loop If propertyName is null or empty, the IdentifierProperty is returnedvoid
Ejb3JoinColumn. linkValueUsingDefaultColumnNaming(Column referencedColumn, PersistentClass referencedEntity, SimpleValue value)
void
Ejb3JoinColumn. setPersistentClass(PersistentClass persistentClass, java.util.Map<java.lang.String,Join> joins, java.util.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 bindingConstructors in org.hibernate.cfg with parameters of type PersistentClass Constructor Description ClassPropertyHolder(PersistentClass persistentClass, org.hibernate.annotations.common.reflection.XClass entityXClass, java.util.Map<java.lang.String,Join> joins, MetadataBuildingContext context, java.util.Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
ClassPropertyHolder(PersistentClass persistentClass, org.hibernate.annotations.common.reflection.XClass entityXClass, EntityBinder entityBinder, MetadataBuildingContext context, java.util.Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
-
Uses of PersistentClass in org.hibernate.cfg.annotations
Methods in org.hibernate.cfg.annotations with parameters of type PersistentClass Modifier and Type Method Description static void
TableBinder. bindFk(PersistentClass referencedEntity, PersistentClass destinationEntity, Ejb3JoinColumn[] columns, SimpleValue value, boolean unique, MetadataBuildingContext buildingContext)
static void
CollectionBinder. 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 Collection
ArrayBinder. createCollection(PersistentClass persistentClass)
protected Collection
BagBinder. createCollection(PersistentClass persistentClass)
protected abstract Collection
CollectionBinder. createCollection(PersistentClass persistentClass)
protected Collection
IdBagBinder. createCollection(PersistentClass persistentClass)
protected Collection
ListBinder. createCollection(PersistentClass persistentClass)
protected Collection
MapBinder. createCollection(PersistentClass persistentClass)
protected Collection
PrimitiveArrayBinder. createCollection(PersistentClass persistentClass)
protected Collection
SetBinder. createCollection(PersistentClass persistentClass)
protected Value
MapBinder. createFormulatedValue(Value value, Collection collection, java.lang.String targetPropertyName, PersistentClass associatedClass, PersistentClass targetPropertyPersistentClass, MetadataBuildingContext buildingContext)
static void
TableBinder. linkJoinColumnWithValueOverridingNameIfImplicit(PersistentClass referencedEntity, java.util.Iterator columnIterator, Ejb3JoinColumn[] columns, SimpleValue value)
Method parameters in org.hibernate.cfg.annotations with type arguments of type PersistentClass Modifier and Type Method Description protected void
CollectionBinder. bindOneToManySecondPass(Collection collection, java.util.Map<java.lang.String,PersistentClass> persistentClasses, Ejb3JoinColumn[] fkJoinColumns, org.hibernate.annotations.common.reflection.XClass collectionType, boolean cascadeDeleteEnabled, NotFoundAction notFoundAction, MetadataBuildingContext buildingContext, java.util.Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)
protected boolean
CollectionBinder. bindStarToManySecondPass(java.util.Map<java.lang.String,PersistentClass> persistentClasses, org.hibernate.annotations.common.reflection.XClass collType, Ejb3JoinColumn[] fkJoinColumns, Ejb3JoinColumn[] keyColumns, Ejb3JoinColumn[] inverseColumns, Ejb3Column[] elementColumns, boolean isEmbedded, org.hibernate.annotations.common.reflection.XProperty property, boolean unique, TableBinder associationTableBinder, NotFoundAction notFoundAction, MetadataBuildingContext buildingContext)
return true if it's a Fk, false if it's an association tableConstructors in org.hibernate.cfg.annotations with parameters of type PersistentClass Constructor Description EntityBinder(Entity ejb3Ann, Entity hibAnn, org.hibernate.annotations.common.reflection.XClass annotatedClass, PersistentClass persistentClass, MetadataBuildingContext context)
-
Uses of PersistentClass in org.hibernate.hql.spi.id
Methods in org.hibernate.hql.spi.id with parameters of type PersistentClass Modifier and Type Method Description protected abstract TT
AbstractMultiTableBulkIdStrategyImpl. buildIdTableInfo(PersistentClass entityBinding, Table idTable, JdbcServices jdbcServices, MetadataImplementor metadata, CT context, SqlStringGenerationContext sqlStringGenerationContext)
protected QualifiedTableName
AbstractMultiTableBulkIdStrategyImpl. determineIdTableName(JdbcEnvironment jdbcEnvironment, PersistentClass entityBinding)
boolean
IdTableHelper. needsIdTable(PersistentClass entityBinding)
-
Uses of PersistentClass in org.hibernate.hql.spi.id.global
Methods in org.hibernate.hql.spi.id.global with parameters of type PersistentClass Modifier and Type Method Description protected org.hibernate.hql.spi.id.global.IdTableInfoImpl
GlobalTemporaryTableBulkIdStrategy. buildIdTableInfo(PersistentClass entityBinding, Table idTable, JdbcServices jdbcServices, MetadataImplementor metadata, org.hibernate.hql.spi.id.global.PreparationContextImpl context, SqlStringGenerationContext sqlStringGenerationContext)
-
Uses of PersistentClass in org.hibernate.hql.spi.id.local
Methods in org.hibernate.hql.spi.id.local with parameters of type PersistentClass Modifier and Type Method Description protected IdTableInfoImpl
LocalTemporaryTableBulkIdStrategy. buildIdTableInfo(PersistentClass entityBinding, Table idTable, JdbcServices jdbcServices, MetadataImplementor metadata, org.hibernate.hql.spi.id.local.PreparationContextImpl context, SqlStringGenerationContext sqlStringGenerationContext)
-
Uses of PersistentClass in org.hibernate.hql.spi.id.persistent
Methods in org.hibernate.hql.spi.id.persistent with parameters of type PersistentClass Modifier and Type Method Description protected org.hibernate.hql.spi.id.persistent.IdTableInfoImpl
PersistentTableBulkIdStrategy. buildIdTableInfo(PersistentClass entityBinding, Table idTable, JdbcServices jdbcServices, MetadataImplementor metadata, org.hibernate.hql.spi.id.persistent.PreparationContextImpl context, SqlStringGenerationContext sqlStringGenerationContext)
protected QualifiedTableName
PersistentTableBulkIdStrategy. determineIdTableName(JdbcEnvironment jdbcEnvironment, PersistentClass entityBinding)
-
Uses of PersistentClass in org.hibernate.mapping
Subclasses of PersistentClass in org.hibernate.mapping Modifier and Type Class Description class
JoinedSubclass
A subclass in a table-per-subclass mappingclass
RootClass
The root class of an inheritance hierarchyclass
SingleTableSubclass
class
Subclass
A subclass in a table-per-class-hierarchy mappingclass
UnionSubclass
A subclass in a table-per-concrete-class mappingMethods in org.hibernate.mapping that return PersistentClass Modifier and Type Method Description PersistentClass
OneToMany. getAssociatedClass()
PersistentClass
Collection. getOwner()
PersistentClass
Component. getOwner()
PersistentClass
Join. getPersistentClass()
PersistentClass
Property. getPersistentClass()
abstract PersistentClass
PersistentClass. getSuperclass()
PersistentClass
RootClass. getSuperclass()
PersistentClass
Subclass. getSuperclass()
PersistentClass
MappedSuperclass. getSuperPersistentClass()
Returns the PersistentClass of the first superclass marked as @Entity or null if none existsMethods in org.hibernate.mapping with parameters of type PersistentClass Modifier and Type Method Description void
OneToMany. setAssociatedClass(PersistentClass associatedClass)
Associated entity on the many sidevoid
Collection. setOwner(PersistentClass owner)
Deprecated.Inject the owner into constructor.void
Component. setOwner(PersistentClass owner)
void
Join. setPersistentClass(PersistentClass persistentClass)
void
Property. setPersistentClass(PersistentClass persistentClass)
void
Subclass. setSuperclass(PersistentClass superclass)
-
Uses of PersistentClass in org.hibernate.persister.entity
Methods in org.hibernate.persister.entity with parameters of type PersistentClass Modifier and Type Method Description protected java.lang.String
UnionSubclassEntityPersister. generateSubquery(PersistentClass model, Mapping mapping)
protected void
AbstractEntityPersister. initSubclassPropertyAliasesMap(PersistentClass model)
Must be called by subclasses, at the end of their constructorsConstructors in org.hibernate.persister.entity with parameters of type PersistentClass Constructor Description 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)
-
Uses of PersistentClass in org.hibernate.persister.spi
Methods in org.hibernate.persister.spi with parameters of type PersistentClass Modifier and Type Method Description EntityPersister
PersisterFactory. createEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, PersisterCreationContext creationContext)
Create an entity persister instance.java.lang.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. -
Uses of PersistentClass in org.hibernate.proxy.pojo
Methods in org.hibernate.proxy.pojo with parameters of type PersistentClass Modifier and Type Method Description static java.util.Set<java.lang.Class>
ProxyFactoryHelper. extractProxyInterfaces(PersistentClass persistentClass, java.lang.String entityName)
static void
ProxyFactoryHelper. validateProxyability(PersistentClass persistentClass)
-
Uses of PersistentClass in org.hibernate.tuple
Methods in org.hibernate.tuple with parameters of type PersistentClass Modifier and Type Method Description static IdentifierProperty
PropertyFactory. buildIdentifierAttribute(PersistentClass mappedEntity, IdentifierGenerator generator)
Generates the attribute representation of the identifier for a given entity mapping.Constructors in org.hibernate.tuple with parameters of type PersistentClass Constructor Description DynamicMapInstantiator(PersistentClass mappingInfo)
-
Uses of PersistentClass in org.hibernate.tuple.entity
Methods in org.hibernate.tuple.entity with parameters of type PersistentClass Modifier and Type Method Description protected abstract Instantiator
AbstractEntityTuplizer. buildInstantiator(EntityMetamodel entityMetamodel, PersistentClass mappingInfo)
Build an appropriate Instantiator for the given mapped entity.protected Instantiator
DynamicMapEntityTuplizer. buildInstantiator(EntityMetamodel entityMetamodel, PersistentClass mappingInfo)
protected Instantiator
PojoEntityTuplizer. buildInstantiator(EntityMetamodel entityMetamodel, PersistentClass persistentClass)
protected abstract Getter
AbstractEntityTuplizer. buildPropertyGetter(Property mappedProperty, PersistentClass mappedEntity)
Build an appropriate Getter for the given property.protected Getter
DynamicMapEntityTuplizer. buildPropertyGetter(Property mappedProperty, PersistentClass mappedEntity)
protected Getter
PojoEntityTuplizer. buildPropertyGetter(Property mappedProperty, PersistentClass mappedEntity)
protected abstract Setter
AbstractEntityTuplizer. buildPropertySetter(Property mappedProperty, PersistentClass mappedEntity)
Build an appropriate Setter for the given property.protected Setter
DynamicMapEntityTuplizer. buildPropertySetter(Property mappedProperty, PersistentClass mappedEntity)
protected Setter
PojoEntityTuplizer. buildPropertySetter(Property mappedProperty, PersistentClass mappedEntity)
protected abstract ProxyFactory
AbstractEntityTuplizer. buildProxyFactory(PersistentClass mappingInfo, Getter idGetter, Setter idSetter)
Build an appropriate ProxyFactory for the given mapped entity.protected ProxyFactory
DynamicMapEntityTuplizer. buildProxyFactory(PersistentClass mappingInfo, Getter idGetter, Setter idSetter)
protected ProxyFactory
PojoEntityTuplizer. buildProxyFactory(PersistentClass persistentClass, Getter idGetter, Setter idSetter)
protected ProxyFactory
PojoEntityTuplizer. buildProxyFactoryInternal(PersistentClass persistentClass, Getter idGetter, Setter idSetter)
EntityTuplizer
EntityTuplizerFactory. constructDefaultTuplizer(EntityMode entityMode, EntityMetamodel metamodel, PersistentClass persistentClass)
Construct an instance of the default tuplizer for the given entity-mode.EntityTuplizer
EntityTuplizerFactory. constructTuplizer(java.lang.Class<? extends EntityTuplizer> tuplizerClass, EntityMetamodel metamodel, PersistentClass persistentClass)
Construct an instance of the given tuplizer class.EntityTuplizer
EntityTuplizerFactory. constructTuplizer(java.lang.String tuplizerClassName, EntityMetamodel metamodel, PersistentClass persistentClass)
Construct an instance of the given tuplizer class.static BytecodeEnhancementMetadata
BytecodeEnhancementMetadataPojoImpl. from(PersistentClass persistentClass, java.util.Set<java.lang.String> identifierAttributeNames, CompositeType nonAggregatedCidMapper, boolean collectionsInDefaultFetchGroupEnabled, PersisterCreationContext creationContext)
Static constructorConstructors in org.hibernate.tuple.entity with parameters of type PersistentClass Constructor Description AbstractEntityTuplizer(EntityMetamodel entityMetamodel, PersistentClass mappingInfo)
Constructs a new AbstractEntityTuplizer instance.EntityMetamodel(PersistentClass persistentClass, EntityPersister persister, PersisterCreationContext creationContext)
PojoEntityInstantiator(EntityMetamodel entityMetamodel, PersistentClass persistentClass, ReflectionOptimizer.InstantiationOptimizer optimizer)
PojoEntityTuplizer(EntityMetamodel entityMetamodel, PersistentClass mappedEntity)
-