Package org.hibernate.metamodel.spi
Interface EntityRepresentationStrategy
-
- All Superinterfaces:
ManagedTypeRepresentationStrategy
- All Known Implementing Classes:
EntityRepresentationStrategyMap
,EntityRepresentationStrategyPojoStandard
public interface EntityRepresentationStrategy extends ManagedTypeRepresentationStrategy
Specialization ofManagedTypeRepresentationStrategy
for an entity type adding the ability to generate an instantiator and a proxy factory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description EntityInstantiator
getInstantiator()
Create a delegate capable of instantiating instances of the represented type.default JavaType<?>
getLoadJavaType()
The Java type descriptor for the type returned when the entity is loadedProxyFactory
getProxyFactory()
Create the delegate capable of producing proxies for the given entityJavaType<?>
getProxyJavaType()
default boolean
isBytecodeEnhanced()
default boolean
isLifecycleImplementor()
default void
visitEntityNameResolvers(Consumer<EntityNameResolver> consumer)
-
Methods inherited from interface org.hibernate.metamodel.spi.ManagedTypeRepresentationStrategy
getMappedJavaType, getMode, getReflectionOptimizer, resolvePropertyAccess
-
-
-
-
Method Detail
-
getInstantiator
EntityInstantiator getInstantiator()
Create a delegate capable of instantiating instances of the represented type.
-
getProxyFactory
ProxyFactory getProxyFactory()
Create the delegate capable of producing proxies for the given entity
-
isLifecycleImplementor
default boolean isLifecycleImplementor()
-
isBytecodeEnhanced
default boolean isBytecodeEnhanced()
-
getProxyJavaType
JavaType<?> getProxyJavaType()
-
getLoadJavaType
default JavaType<?> getLoadJavaType()
The Java type descriptor for the type returned when the entity is loaded
-
visitEntityNameResolvers
default void visitEntityNameResolvers(Consumer<EntityNameResolver> consumer)
-
-