Top Fields Constructors Methods
org.hibernate.metamodel.internal

public Class EntityRepresentationStrategyMap

extends Object
implements EntityRepresentationStrategy
Class Inheritance
All Implemented Interfaces
org.hibernate.metamodel.spi.EntityRepresentationStrategy, org.hibernate.metamodel.spi.ManagedTypeRepresentationStrategy
Imports
java.util.Iterator, .Map, java.util.concurrent.ConcurrentHashMap, java.util.function.Consumer, org.hibernate.EntityNameResolver, .HibernateException, org.hibernate.bytecode.spi.ReflectionOptimizer, org.hibernate.internal.CoreLogging, .CoreMessageLogger, org.hibernate.mapping.PersistentClass, .Property, org.hibernate.metamodel.RepresentationMode, org.hibernate.metamodel.spi.EntityInstantiator, .EntityRepresentationStrategy, .RuntimeModelCreationContext, org.hibernate.property.access.internal.PropertyAccessStrategyMapImpl, org.hibernate.property.access.spi.PropertyAccess, org.hibernate.proxy.ProxyFactory, org.hibernate.proxy.map.MapProxyFactory, org.hibernate.type.descriptor.java.JavaType

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final EntityInstantiatorDynamicMap
private static final CoreMessageLogger
private final JavaType<Map<K, V>>
private final Map<String, PropertyAccess>
private final ProxyFactory

Constructor Summary

AccessConstructor and Description
public
EntityRepresentationStrategyMap(PersistentClass bootType, RuntimeModelCreationContext creationContext)

Deprecated as a consequence of RuntimeModelCreationContext being deprecated.

Method Summary

Modifier and TypeMethod and Description
private static ProxyFactory
public EntityInstantiator
getInstantiator()

Implements org.hibernate.metamodel.spi.EntityRepresentationStrategy.getInstantiator.

Create a delegate capable of instantiating instances of the represented type.
public JavaType<?>
public RepresentationMode
public ProxyFactory
getProxyFactory()

Implements org.hibernate.metamodel.spi.EntityRepresentationStrategy.getProxyFactory.

Create the delegate capable of producing proxies for the given entity
public JavaType<?>
public ReflectionOptimizer
public PropertyAccess
resolvePropertyAccess(Property bootAttributeDescriptor)

Implements org.hibernate.metamodel.spi.ManagedTypeRepresentationStrategy.resolvePropertyAccess.

Create the property accessor object for the specified attribute
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

instantiatorback to summary
private final EntityInstantiatorDynamicMap instantiator
LOGback to summary
private static final CoreMessageLogger LOG
mapJtdback to summary
private final JavaType<Map<K, V>> mapJtd
propertyAccessMapback to summary
private final Map<String, PropertyAccess> propertyAccessMap
proxyFactoryback to summary
private final ProxyFactory proxyFactory

Constructor Detail

EntityRepresentationStrategyMapback to summary
public EntityRepresentationStrategyMap(PersistentClass bootType, RuntimeModelCreationContext creationContext)

Deprecated

as a consequence of RuntimeModelCreationContext being deprecated. See corresponding docs for further information.

Method Detail

createProxyFactoryback to summary
private static ProxyFactory createProxyFactory(PersistentClass bootType)
getInstantiatorback to summary
public EntityInstantiator getInstantiator()

Implements org.hibernate.metamodel.spi.EntityRepresentationStrategy.getInstantiator.

Doc from org.hibernate.metamodel.spi.EntityRepresentationStrategy.getInstantiator.

Create a delegate capable of instantiating instances of the represented type.

Annotations
@Override
getMappedJavaTypeback to summary
public JavaType<?> getMappedJavaType()

Implements org.hibernate.metamodel.spi.ManagedTypeRepresentationStrategy.getMappedJavaType.

Doc from org.hibernate.metamodel.spi.ManagedTypeRepresentationStrategy.getMappedJavaType.

The Java type descriptor for the concrete type. For dynamic-map models this will return the JTD for java.util.Map

Annotations
@Override
getModeback to summary
public RepresentationMode getMode()

Implements org.hibernate.metamodel.spi.ManagedTypeRepresentationStrategy.getMode.

Doc from org.hibernate.metamodel.spi.ManagedTypeRepresentationStrategy.getMode.

The mode represented

Annotations
@Override
getProxyFactoryback to summary
public ProxyFactory getProxyFactory()

Implements org.hibernate.metamodel.spi.EntityRepresentationStrategy.getProxyFactory.

Doc from org.hibernate.metamodel.spi.EntityRepresentationStrategy.getProxyFactory.

Create the delegate capable of producing proxies for the given entity

Annotations
@Override
getProxyJavaTypeback to summary
public JavaType<?> getProxyJavaType()

Implements org.hibernate.metamodel.spi.EntityRepresentationStrategy.getProxyJavaType.

Annotations
@Override
getReflectionOptimizerback to summary
public ReflectionOptimizer getReflectionOptimizer()

Implements org.hibernate.metamodel.spi.ManagedTypeRepresentationStrategy.getReflectionOptimizer.

Doc from org.hibernate.metamodel.spi.ManagedTypeRepresentationStrategy.getReflectionOptimizer.

The reflection optimizer to use for this embeddable.

Annotations
@Override
resolvePropertyAccessback to summary
public PropertyAccess resolvePropertyAccess(Property bootAttributeDescriptor)

Implements org.hibernate.metamodel.spi.ManagedTypeRepresentationStrategy.resolvePropertyAccess.

Doc from org.hibernate.metamodel.spi.ManagedTypeRepresentationStrategy.resolvePropertyAccess.

Create the property accessor object for the specified attribute

Annotations
@Override
visitEntityNameResolversback to summary
public void visitEntityNameResolvers(Consumer<EntityNameResolver> consumer)

Overrides default org.hibernate.metamodel.spi.EntityRepresentationStrategy.visitEntityNameResolvers.

Annotations
@Override