Uses of Interface
org.hibernate.persister.entity.EntityPersister
-
-
Uses of EntityPersister in org.hibernate
Methods in org.hibernate that return EntityPersister Modifier and Type Method Description EntityPersisterCustomEntityDirtinessStrategy.AttributeInformation. getContainingPersister()Get a reference to the persister for the entity containing this attribute.Methods in org.hibernate with parameters of type EntityPersister Modifier and Type Method Description booleanCustomEntityDirtinessStrategy. canDirtyCheck(Object entity, EntityPersister persister, Session session)Is this strategy capable of telling whether the given entity is dirty? A return oftruemeans thatCustomEntityDirtinessStrategy.isDirty(java.lang.Object, org.hibernate.persister.entity.EntityPersister, org.hibernate.Session)will be called next as the definitive means to determine whether the entity is dirty.voidCustomEntityDirtinessStrategy. findDirty(Object entity, EntityPersister persister, Session session, CustomEntityDirtinessStrategy.DirtyCheckContext dirtyCheckContext)Callback used to hook into Hibernate algorithm for determination of which attributes have changed.booleanCustomEntityDirtinessStrategy. isDirty(Object entity, EntityPersister persister, Session session)The callback used by Hibernate to determine if the given entity is dirty.voidCustomEntityDirtinessStrategy. resetDirty(Object entity, EntityPersister persister, Session session)Callback used by Hibernate to signal that the entity dirty flag should be cleared. -
Uses of EntityPersister in org.hibernate.cache.spi
Methods in org.hibernate.cache.spi with parameters of type EntityPersister Modifier and Type Method Description ObjectCacheKeysFactory. createEntityKey(Object id, EntityPersister persister, SessionFactoryImplementor factory, String tenantIdentifier)ObjectCacheKeysFactory. createNaturalIdKey(Object naturalIdValues, EntityPersister persister, SharedSessionContractImplementor session) -
Uses of EntityPersister in org.hibernate.cache.spi.access
Methods in org.hibernate.cache.spi.access with parameters of type EntityPersister Modifier and Type Method Description ObjectEntityDataAccess. generateCacheKey(Object id, EntityPersister rootEntityDescriptor, SessionFactoryImplementor factory, String tenantIdentifier)To create instances of keys for this region, Hibernate will invoke this method exclusively so that generated implementations can generate optimised keys.ObjectNaturalIdDataAccess. generateCacheKey(Object naturalIdValues, EntityPersister rootEntityDescriptor, SharedSessionContractImplementor session)To create instances of NaturalIdCacheKey for this region, Hibernate will invoke this method exclusively so that generated implementations can generate optimised keys. -
Uses of EntityPersister in org.hibernate.cache.spi.entry
Methods in org.hibernate.cache.spi.entry that return EntityPersister Modifier and Type Method Description EntityPersisterReferenceCacheEntryImpl. getSubclassPersister()Methods in org.hibernate.cache.spi.entry with parameters of type EntityPersister Modifier and Type Method Description Object[]StandardCacheEntryImpl. assemble(Object instance, Object id, EntityPersister persister, Interceptor interceptor, EventSource session)Assemble the previously disassembled state represented by this entry into the given entity instance.Constructors in org.hibernate.cache.spi.entry with parameters of type EntityPersister Constructor Description ReferenceCacheEntryImpl(Object reference, EntityPersister subclassPersister)Constructs a ReferenceCacheEntryImplStandardCacheEntryImpl(Object[] state, EntityPersister persister, Object version, SharedSessionContractImplementor session, Object owner)Constructs a StandardCacheEntryImplStructuredCacheEntry(EntityPersister persister)Constructs a StructuredCacheEntry strategy -
Uses of EntityPersister in org.hibernate.cache.spi.support
Methods in org.hibernate.cache.spi.support with parameters of type EntityPersister Modifier and Type Method Description ObjectAbstractEntityDataAccess. generateCacheKey(Object id, EntityPersister rootEntityDescriptor, SessionFactoryImplementor factory, String tenantIdentifier)ObjectAbstractNaturalIdDataAccess. generateCacheKey(Object naturalIdValues, EntityPersister persister, SharedSessionContractImplementor session)ObjectEntityReadWriteAccess. generateCacheKey(Object id, EntityPersister rootEntityDescriptor, SessionFactoryImplementor factory, String tenantIdentifier)ObjectNaturalIdReadWriteAccess. generateCacheKey(Object naturalIdValues, EntityPersister rootEntityDescriptor, SharedSessionContractImplementor session) -
Uses of EntityPersister in org.hibernate.cfg.beanvalidation
Constructors in org.hibernate.cfg.beanvalidation with parameters of type EntityPersister Constructor Description HibernateTraversableResolver(EntityPersister persister, ConcurrentHashMap<EntityPersister,Set<String>> associationsPerEntityPersister, SessionFactoryImplementor factory)Constructor parameters in org.hibernate.cfg.beanvalidation with type arguments of type EntityPersister Constructor Description HibernateTraversableResolver(EntityPersister persister, ConcurrentHashMap<EntityPersister,Set<String>> associationsPerEntityPersister, SessionFactoryImplementor factory) -
Uses of EntityPersister in org.hibernate.engine.profile
Methods in org.hibernate.engine.profile that return EntityPersister Modifier and Type Method Description EntityPersisterAssociation. getOwner()Constructors in org.hibernate.engine.profile with parameters of type EntityPersister Constructor Description Association(EntityPersister owner, String associationPath)Constructs an association defining what is to be fetched. -
Uses of EntityPersister in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return EntityPersister Modifier and Type Method Description EntityPersisterSessionDelegatorBaseImpl. getEntityPersister(String entityName, Object object)EntityPersisterSharedSessionContractImplementor. getEntityPersister(String entityName, Object object)Get theEntityPersisterfor any instanceEntityPersisterEntityEntry. getPersister()EntityPersisterEntityKey. getPersister()Methods in org.hibernate.engine.spi with parameters of type EntityPersister Modifier and Type Method Description EntityEntryPersistenceContext. addEntity(Object entity, Status status, Object[] loadedState, EntityKey entityKey, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement)Adds an entity to the internal caches.EntityEntryPersistenceContext. addEntry(Object entity, Status status, Object[] loadedState, Object rowId, Object id, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement)Generates an appropriate EntityEntry instance and adds it to the event source's internal caches.EntityEntryEntityEntryFactory. createEntityEntry(Status status, Object[] loadedState, Object rowId, Object id, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement, PersistenceContext persistenceContext)CreatesEntityEntry.EntityKeySessionDelegatorBaseImpl. generateEntityKey(Object id, EntityPersister persister)EntityKeySharedSessionContractImplementor. generateEntityKey(Object id, EntityPersister persister)Hide the changing requirements of entity key creationObject[]PersistenceContext. getDatabaseSnapshot(Object id, EntityPersister persister)Get the current state of the entity as known to the underlying database, or null if there is no corresponding rowObjectPersistenceContext. getNaturalIdSnapshot(Object id, EntityPersister persister)Get the values of the natural id fields as known to the underlying database, or null if the entity has no natural id or there is no corresponding row.ObjectSessionDelegatorBaseImpl. instantiate(EntityPersister persister, Object id)ObjectSessionImplementor. instantiate(EntityPersister persister, Object id)ObjectSharedSessionContractImplementor. instantiate(EntityPersister persister, Object id)Instantiate the entity class of an EntityPersister, initializing with the given identifier.ObjectPersistenceContext. narrowProxy(Object proxy, EntityPersister persister, EntityKey key, Object object)If the existing proxy is insufficiently "narrow" (derived), instantiate a new proxy and overwrite the registration of the old one.voidCascadingAction. noCascade(EventSource session, Object parent, EntityPersister persister, Type propertyType, int propertyIndex)Called (in the case ofCascadingAction.requiresNoCascadeChecking()returning true) to validate that no cascade on the given property is considered a valid semantic.voidCascadingActions.BaseCascadingAction. noCascade(EventSource session, Object parent, EntityPersister persister, Type propertyType, int propertyIndex)ObjectPersistenceContext. proxyFor(EntityPersister persister, EntityKey key, Object impl)Return the existing proxy associated with the givenEntityKey, or the third argument (the entity associated with the key) if no proxy exists.voidPersistenceContext. registerInsertedKey(EntityPersister persister, Object id)Register keys inserted during the current transactionbooleanPersistenceContext. wasInsertedDuringTransaction(EntityPersister persister, Object id)Allows callers to check to see if the identified entity was inserted during the current transaction.Constructors in org.hibernate.engine.spi with parameters of type EntityPersister Constructor Description EntityKey(Object id, EntityPersister persister)Construct a unique identifier for an entity class instance. -
Uses of EntityPersister in org.hibernate.event.spi
Methods in org.hibernate.event.spi that return EntityPersister Modifier and Type Method Description EntityPersisterResolveNaturalIdEvent. getEntityPersister()EntityPersisterAbstractPreDatabaseOperationEvent. getPersister()The persister for the entity.EntityPersisterPostDeleteEvent. getPersister()EntityPersisterPostInsertEvent. getPersister()EntityPersisterPostLoadEvent. getPersister()EntityPersisterPostUpdateEvent. getPersister()EntityPersisterPreLoadEvent. getPersister()Methods in org.hibernate.event.spi with parameters of type EntityPersister Modifier and Type Method Description ObjectEventSource. instantiate(EntityPersister persister, Object id)Instantiate an entity instance, using either an interceptor, or the given persisterPostLoadEventPostLoadEvent. setPersister(EntityPersister persister)PreLoadEventPreLoadEvent. setPersister(EntityPersister persister)Constructors in org.hibernate.event.spi with parameters of type EntityPersister Constructor Description AbstractPreDatabaseOperationEvent(EventSource source, Object entity, Object id, EntityPersister persister)Constructs an event containing the pertinent information.PostDeleteEvent(Object entity, Object id, Object[] deletedState, EntityPersister persister, EventSource source)PostInsertEvent(Object entity, Object id, Object[] state, EntityPersister persister, EventSource source)PostUpdateEvent(Object entity, Object id, Object[] state, Object[] oldState, int[] dirtyProperties, EntityPersister persister, EventSource source)PreDeleteEvent(Object entity, Object id, Object[] deletedState, EntityPersister persister, EventSource source)Constructs an event containing the pertinent information.PreInsertEvent(Object entity, Object id, Object[] state, EntityPersister persister, EventSource source)Constructs an event containing the pertinent information.PreUpdateEvent(Object entity, Object id, Object[] state, Object[] oldState, EntityPersister persister, EventSource source)Constructs an event containing the pertinent information.ResolveNaturalIdEvent(Map<String,Object> naturalIdValues, EntityPersister entityPersister, EventSource source)ResolveNaturalIdEvent(Map<String,Object> naturalIdValues, EntityPersister entityPersister, LockOptions lockOptions, EventSource source) -
Uses of EntityPersister in org.hibernate.id
Subinterfaces of EntityPersister in org.hibernate.id Modifier and Type Interface Description interfacePostInsertIdentityPersisterA persister that may have an identity assigned by execution of a SQLINSERT. -
Uses of EntityPersister in org.hibernate.loader.access
Methods in org.hibernate.loader.access that return EntityPersister Modifier and Type Method Description protected EntityPersisterBaseNaturalIdLoadAccessImpl. entityPersister()Constructors in org.hibernate.loader.access with parameters of type EntityPersister Constructor Description IdentifierLoadAccessImpl(LoadAccessContext context, EntityPersister entityPersister) -
Uses of EntityPersister in org.hibernate.loader.entity
Methods in org.hibernate.loader.entity with parameters of type EntityPersister Modifier and Type Method Description ObjectCacheEntityLoaderHelper. loadFromSecondLevelCache(EventSource source, Object entity, LockMode lockMode, EntityPersister persister, EntityKey entityKey)Attempts to load the entity from the second-level cache.ObjectCacheEntityLoaderHelper. loadFromSecondLevelCache(LoadEvent event, EntityPersister persister, EntityKey entityKey)Attempts to load the entity from the second-level cache. -
Uses of EntityPersister in org.hibernate.mapping
Methods in org.hibernate.mapping that return types with arguments of type EntityPersister Modifier and Type Method Description abstract Class<? extends EntityPersister>PersistentClass. getEntityPersisterClass()Class<? extends EntityPersister>RootClass. getEntityPersisterClass()Class<? extends EntityPersister>Subclass. getEntityPersisterClass()Method parameters in org.hibernate.mapping with type arguments of type EntityPersister Modifier and Type Method Description abstract voidPersistentClass. setEntityPersisterClass(Class<? extends EntityPersister> classPersisterClass)voidRootClass. setEntityPersisterClass(Class<? extends EntityPersister> persister)voidSubclass. setEntityPersisterClass(Class<? extends EntityPersister> classPersisterClass) -
Uses of EntityPersister in org.hibernate.metamodel
Methods in org.hibernate.metamodel that return EntityPersister Modifier and Type Method Description EntityPersisterMappingMetamodel. findEntityDescriptor(Class<?> entityJavaType)Find an entity mapping descriptor based on its Class.EntityPersisterMappingMetamodel. findEntityDescriptor(String entityName)Find an entity mapping descriptor based on its Hibernate entity-name.EntityPersisterMappingMetamodel. getEntityDescriptor(Class<?> entityJavaType)Get an entity mapping descriptor based on its Class.EntityPersisterMappingMetamodel. getEntityDescriptor(String entityName)Get an entity mapping descriptor based on its Hibernate entity-nameEntityPersisterMappingMetamodel. getEntityDescriptor(NavigableRole name)Get an entity mapping descriptor based on its NavigableRole.EntityPersisterMappingMetamodel. locateEntityDescriptor(Class<?> byClass)Locate an entity mapping descriptor by Class.default EntityPersisterMappingMetamodel. locateEntityPersister(Class<?> byClass)Deprecated.useMappingMetamodel.locateEntityDescriptor(Class)insteadEntityPersisterMappingMetamodel. locateEntityPersister(String byName)Deprecated.- useMappingMetamodel.getEntityDescriptor(String)insteadEntityPersisterMappingMetamodel. resolveEntityDescriptor(EntityDomainType<?> entityDomainType)Given a JPA entity domain type, get the associated Hibernate entity descriptorMethods in org.hibernate.metamodel that return types with arguments of type EntityPersister Modifier and Type Method Description Stream<EntityPersister>MappingMetamodel. streamEntityDescriptors()Methods in org.hibernate.metamodel with parameters of type EntityPersister Modifier and Type Method Description RootGraph<?>MappingMetamodel. defaultGraph(EntityPersister entityDescriptor)List<RootGraph<?>>MappingMetamodel. findRootGraphsForType(EntityPersister baseEntityDescriptor)Method parameters in org.hibernate.metamodel with type arguments of type EntityPersister Modifier and Type Method Description voidMappingMetamodel. forEachEntityDescriptor(Consumer<EntityPersister> action)Visit all entity mapping descriptors defined in the model -
Uses of EntityPersister in org.hibernate.metamodel.mapping
Methods in org.hibernate.metamodel.mapping that return EntityPersister Modifier and Type Method Description EntityPersisterEntityMappingType. getEntityPersister()Safety-net. -
Uses of EntityPersister in org.hibernate.metamodel.spi
Methods in org.hibernate.metamodel.spi that return EntityPersister Modifier and Type Method Description default EntityPersisterMetamodelImplementor. entityPersister(Class<?> entityClass)Deprecated.default EntityPersisterMetamodelImplementor. entityPersister(String entityName)Deprecated.Methods in org.hibernate.metamodel.spi that return types with arguments of type EntityPersister Modifier and Type Method Description Map<String,EntityPersister>MetamodelImplementor. entityPersisters()Deprecated.With no direct replacement; seeMappingMetamodel.forEachEntityDescriptor(java.util.function.Consumer<org.hibernate.persister.entity.EntityPersister>)andMappingMetamodel.streamEntityDescriptors()insteadMethods in org.hibernate.metamodel.spi with parameters of type EntityPersister Modifier and Type Method Description EntityRepresentationStrategyManagedTypeRepresentationResolver. resolveStrategy(PersistentClass bootDescriptor, EntityPersister runtimeDescriptor, RuntimeModelCreationContext creationContext)Resolve the strategy to use for the given entity -
Uses of EntityPersister in org.hibernate.persister.collection
Methods in org.hibernate.persister.collection that return EntityPersister Modifier and Type Method Description EntityPersisterAbstractCollectionPersister. getElementPersister()EntityPersisterQueryableCollection. getElementPersister()Get the persister of the element class, if this is a collection of entities (optional operation).protected EntityPersisterAbstractCollectionPersister. getElementPersisterInternal()EntityPersisterAbstractCollectionPersister. getOwnerEntityPersister()EntityPersisterCollectionPersister. getOwnerEntityPersister()Get the persister of the entity that "owns" this collection -
Uses of EntityPersister in org.hibernate.persister.entity
Subinterfaces of EntityPersister in org.hibernate.persister.entity Modifier and Type Interface Description interfaceLoadableImplemented by anyEntityPersisterthat may be loaded using aLoader.interfaceLockableContract for things that can be locked via aLockingStrategy.interfaceOuterJoinLoadableAEntityPersisterthat may be loaded by outer join using and may be an element of a one-to-many association.interfaceQueryableDeprecated.SeeQueryableinterfaceSQLLoadableAnEntityPersisterthat supports queries expressed in the platform native SQL dialect.interfaceUniqueKeyLoadableAnEntityPersisterthat can be loaded by a non-primary unique key.Classes in org.hibernate.persister.entity that implement EntityPersister Modifier and Type Class Description classAbstractEntityPersisterBasic functionality for persisting an entity via JDBC through either generated or custom SQLclassJoinedSubclassEntityPersisterAnEntityPersisterimplementing the normalizedInheritanceType.JOINEDinheritance mapping strategy for an entity and its inheritance hierarchy.classSingleTableEntityPersisterThe default implementation of theEntityPersisterinterface.classUnionSubclassEntityPersisterAnEntityPersisterimplementing theInheritanceType.TABLE_PER_CLASSmapping strategy for an entity and its inheritance hierarchy.Methods in org.hibernate.persister.entity that return EntityPersister Modifier and Type Method Description EntityPersisterAbstractEntityPersister. getEntityPersister()EntityPersisterAbstractEntityPersister. getSubclassEntityPersister(Object instance, SessionFactoryImplementor factory)EntityPersisterEntityPersister. getSubclassEntityPersister(Object instance, SessionFactoryImplementor factory)A request has already identified the entity-name of this persister as the mapping for the given instance. -
Uses of EntityPersister in org.hibernate.persister.spi
Methods in org.hibernate.persister.spi that return EntityPersister Modifier and Type Method Description default EntityPersisterPersisterFactory. createEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, RuntimeModelCreationContext creationContext)Create an entity persister instance.EntityPersisterPersisterFactory. createEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, PersisterCreationContext creationContext)Methods in org.hibernate.persister.spi that return types with arguments of type EntityPersister Modifier and Type Method Description 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 EntityPersister in org.hibernate.pretty
Methods in org.hibernate.pretty with parameters of type EntityPersister Modifier and Type Method Description static StringMessageHelper. infoString(EntityPersister persister)Generate an info message string relating to given entity persister.static StringMessageHelper. infoString(EntityPersister persister, Object[] ids, SessionFactoryImplementor factory)Generate an info message string relating to a series of entities.static StringMessageHelper. infoString(EntityPersister persister, Object id, SessionFactoryImplementor factory)Generate an info message string relating to a particular entity.static StringMessageHelper. infoString(EntityPersister persister, Object id, Type identifierType, SessionFactoryImplementor factory)Generate an info message string relating to a particular entity,. -
Uses of EntityPersister in org.hibernate.query.derived
Methods in org.hibernate.query.derived that return EntityPersister Modifier and Type Method Description EntityPersisterAnonymousTupleEntityValuedModelPart. getEntityPersister() -
Uses of EntityPersister in org.hibernate.query.sqm.sql
Methods in org.hibernate.query.sqm.sql with parameters of type EntityPersister Modifier and Type Method Description BaseSqmToSqlAstConverter.AdditionalInsertValuesBaseSqmToSqlAstConverter. visitInsertionTargetPaths(BiConsumer<Assignable,List<ColumnReference>> targetColumnReferenceConsumer, SqmInsertStatement<?> sqmStatement, EntityPersister entityDescriptor, TableGroup rootTableGroup) -
Uses of EntityPersister in org.hibernate.sql.ast.tree.expression
Methods in org.hibernate.sql.ast.tree.expression that return EntityPersister Modifier and Type Method Description EntityPersisterEntityTypeLiteral. getEntityTypeDescriptor()Constructors in org.hibernate.sql.ast.tree.expression with parameters of type EntityPersister Constructor Description EntityTypeLiteral(EntityPersister entityTypeDescriptor) -
Uses of EntityPersister in org.hibernate.sql.results.graph.entity
Methods in org.hibernate.sql.results.graph.entity that return EntityPersister Modifier and Type Method Description EntityPersisterAbstractEntityInitializer. getConcreteDescriptor()EntityPersisterEntityInitializer. getConcreteDescriptor()EntityPersisterLoadingEntityEntry. getDescriptor()EntityPersisterAbstractEntityInitializer. getEntityDescriptor()EntityPersisterEntityInitializer. getEntityDescriptor()Get the descriptor for the type of entity being initializedConstructors in org.hibernate.sql.results.graph.entity with parameters of type EntityPersister Constructor Description LoadingEntityEntry(EntityInitializer entityInitializer, EntityKey entityKey, EntityPersister descriptor, Object entityInstance) -
Uses of EntityPersister in org.hibernate.tuple
Methods in org.hibernate.tuple with parameters of type EntityPersister Modifier and Type Method Description static NonIdentifierAttributePropertyFactory. buildEntityBasedAttribute(EntityPersister persister, SessionFactoryImplementor sessionFactory, int attributeNumber, Property property, boolean lazyAvailable, RuntimeModelCreationContext creationContext)Generate a non-identifier (and non-version) attribute based on the given mapped property from the given entitystatic VersionPropertyPropertyFactory. buildVersionProperty(EntityPersister persister, SessionFactoryImplementor sessionFactory, int attributeNumber, Property property, boolean lazyAvailable)Generates a VersionProperty representation for an entity mapping given its version mapping Property. -
Uses of EntityPersister in org.hibernate.tuple.component
Methods in org.hibernate.tuple.component that return EntityPersister Modifier and Type Method Description protected abstract EntityPersisterAbstractCompositionAttribute. locateOwningPersister() -
Uses of EntityPersister in org.hibernate.tuple.entity
Methods in org.hibernate.tuple.entity that return EntityPersister Modifier and Type Method Description EntityPersisterAbstractEntityBasedAttribute. getSource()protected EntityPersisterEntityBasedCompositionAttribute. locateOwningPersister() -
Uses of EntityPersister in org.hibernate.type
Methods in org.hibernate.type that return EntityPersister Modifier and Type Method Description EntityPersisterEntityType. getAssociatedEntityPersister(SessionFactoryImplementor factory)Methods in org.hibernate.type with parameters of type EntityPersister Modifier and Type Method Description static voidTypeHelper. replace(EntityPersister persister, Object entity, SharedSessionContractImplementor session, Object owner, Map<Object,Object> copyCache)Apply theType.replace(java.lang.Object, java.lang.Object, org.hibernate.engine.spi.SharedSessionContractImplementor, java.lang.Object, java.util.Map<java.lang.Object, java.lang.Object>)operation across a series of values.
-