Top Inners Fields Constructors Methods
org.hibernate.metamodel.mapping.internal

public Class VirtualIdRepresentationStrategy

extends Object
implements EmbeddableRepresentationStrategy
Class Inheritance
All Implemented Interfaces
org.hibernate.metamodel.spi.EmbeddableRepresentationStrategy, org.hibernate.metamodel.spi.ManagedTypeRepresentationStrategy
Imports
org.hibernate.bytecode.spi.ProxyFactoryFactory, .ReflectionOptimizer, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.internal.util.ReflectHelper, org.hibernate.mapping.Component, .Property, org.hibernate.metamodel.RepresentationMode, org.hibernate.metamodel.internal.EmbeddableInstantiatorProxied, .StandardEmbeddableInstantiator, org.hibernate.metamodel.mapping.EntityMappingType, org.hibernate.metamodel.spi.EmbeddableInstantiator, .EmbeddableRepresentationStrategy, .EntityInstantiator, .RuntimeModelCreationContext, .ValueAccess, org.hibernate.property.access.spi.PropertyAccess, org.hibernate.type.descriptor.java.JavaType

Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final EntityMappingType
private final EmbeddableInstantiator

Constructor Summary

AccessConstructor and Description
public
VirtualIdRepresentationStrategy(VirtualIdEmbeddable virtualIdEmbeddable, EntityMappingType entityMappingType, Component bootDescriptor, RuntimeModelCreationContext creationContext)

Deprecated as a consequence of RuntimeModelCreationContext being deprecated.

Method Summary

Modifier and TypeMethod and Description
public EmbeddableInstantiator
getInstantiator()

Implements org.hibernate.metamodel.spi.EmbeddableRepresentationStrategy.getInstantiator.

Create a delegate capable of instantiating instances of the represented type.
public JavaType<?>
public RepresentationMode
public ReflectionOptimizer
public PropertyAccess
resolvePropertyAccess(Property bootAttributeDescriptor)

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

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

Field Detail

entityMappingTypeback to summary
private final EntityMappingType entityMappingType
instantiatorback to summary
private final EmbeddableInstantiator instantiator

Constructor Detail

VirtualIdRepresentationStrategyback to summary
public VirtualIdRepresentationStrategy(VirtualIdEmbeddable virtualIdEmbeddable, EntityMappingType entityMappingType, Component bootDescriptor, RuntimeModelCreationContext creationContext)

Deprecated

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

Method Detail

getInstantiatorback to summary
public EmbeddableInstantiator getInstantiator()

Implements org.hibernate.metamodel.spi.EmbeddableRepresentationStrategy.getInstantiator.

Doc from org.hibernate.metamodel.spi.EmbeddableRepresentationStrategy.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
getReflectionOptimizerback to summary
public ReflectionOptimizer getReflectionOptimizer()

Implements org.hibernate.metamodel.spi.EmbeddableRepresentationStrategy.getReflectionOptimizer.

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

The reflection optimizer to use for this embeddable. https://hibernate.atlassian.net/browse/HHH-14952

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
org.hibernate.metamodel.mapping.internal back to summary

private Class VirtualIdRepresentationStrategy.InstantiatorAdapter

extends Object
implements StandardEmbeddableInstantiator
Class Inheritance
  • java.lang.Object
  • org.hibernate.metamodel.mapping.internal.VirtualIdRepresentationStrategy.InstantiatorAdapter
All Implemented Interfaces
org.hibernate.metamodel.internal.StandardEmbeddableInstantiator, org.hibernate.metamodel.spi.EmbeddableInstantiator, org.hibernate.metamodel.spi.Instantiator

Field Summary

Modifier and TypeField and Description
private final EntityInstantiator
private final VirtualIdEmbeddable

Constructor Summary

AccessConstructor and Description
public
InstantiatorAdapter(VirtualIdEmbeddable virtualIdEmbeddable, EntityMappingType entityMappingType)

Method Summary

Modifier and TypeMethod and Description
public Object
instantiate(ValueAccess valuesAccess, SessionFactoryImplementor sessionFactory)

Implements org.hibernate.metamodel.spi.EmbeddableInstantiator.instantiate.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Create an instance of the embeddable
public boolean
isInstance(Object object, SessionFactoryImplementor sessionFactory)

Implements org.hibernate.metamodel.spi.Instantiator.isInstance.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Performs and "instance of" check to see if the given object is an instance of managed structure
public boolean
isSameClass(Object object, SessionFactoryImplementor sessionFactory)

Implements org.hibernate.metamodel.spi.Instantiator.isSameClass.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

entityInstantiatorback to summary
private final EntityInstantiator entityInstantiator
virtualIdEmbeddableback to summary
private final VirtualIdEmbeddable virtualIdEmbeddable

Constructor Detail

InstantiatorAdapterback to summary
public InstantiatorAdapter(VirtualIdEmbeddable virtualIdEmbeddable, EntityMappingType entityMappingType)

Method Detail

instantiateback to summary
public Object instantiate(ValueAccess valuesAccess, SessionFactoryImplementor sessionFactory)

Implements org.hibernate.metamodel.spi.EmbeddableInstantiator.instantiate.

Doc from org.hibernate.metamodel.spi.EmbeddableInstantiator.instantiate.

Deprecated

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

Create an instance of the embeddable

Annotations
@Override
isInstanceback to summary
public boolean isInstance(Object object, SessionFactoryImplementor sessionFactory)

Implements org.hibernate.metamodel.spi.Instantiator.isInstance.

Doc from org.hibernate.metamodel.spi.Instantiator.isInstance.

Deprecated

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

Performs and "instance of" check to see if the given object is an instance of managed structure

Annotations
@Override
isSameClassback to summary
public boolean isSameClass(Object object, SessionFactoryImplementor sessionFactory)

Implements org.hibernate.metamodel.spi.Instantiator.isSameClass.

Deprecated

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

Annotations
@Override