Top Description Inners Fields Constructors Methods
org.hibernate.tuple.entity

public Class EntityMetamodel

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, java.util.ArrayList, .BitSet, .Collections, .HashMap, .HashSet, .Iterator, .List, .Map, .Set, org.hibernate.EntityMode, .HibernateException, .MappingException, org.hibernate.boot.spi.MetadataImplementor, .SessionFactoryOptions, org.hibernate.bytecode.enhance.spi.interceptor.EnhancementHelper, org.hibernate.bytecode.spi.BytecodeEnhancementMetadata, org.hibernate.cfg.NotYetImplementedException, org.hibernate.engine.OptimisticLockStyle, org.hibernate.engine.spi.CascadeStyle, .CascadeStyles, .SessionFactoryImplementor, org.hibernate.internal.CoreMessageLogger, org.hibernate.internal.util.ReflectHelper, org.hibernate.internal.util.collections.ArrayHelper, .CollectionHelper, org.hibernate.mapping.Component, .PersistentClass, .Property, org.hibernate.persister.entity.EntityPersister, org.hibernate.persister.spi.PersisterCreationContext, org.hibernate.tuple.GenerationTiming, .IdentifierProperty, .InDatabaseValueGenerationStrategy, .InMemoryValueGenerationStrategy, .NonIdentifierAttribute, .PropertyFactory, .ValueGeneration, .ValueGenerator, org.hibernate.type.AssociationType, .ComponentType, .CompositeType, .EntityType, .Type

Centralizes metamodel information about an entity.
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
public static class
private static class
private static class
private static class
public static class

Field Summary

Modifier and TypeField and Description
private final BytecodeEnhancementMetadata
private final CascadeStyle[]
private final boolean
private final boolean
private final EntityMode
private final Map<Class<T>, String>
private final EntityTuplizer
private EntityType
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
private final IdentifierProperty
identifierAttribute

Deprecated as a consequence of IdentifierProperty being deprecated.
private final InDatabaseValueGenerationStrategy[]
private final boolean
private final InMemoryValueGenerationStrategy[]
private final boolean
private boolean
private static final CoreMessageLogger
private final boolean
private final BitSet
private final String
private final int[]
private static final EntityMetamodel.GenerationStrategyPair
private static final int
private final boolean[]
private final OptimisticLockStyle
private final boolean
private final NonIdentifierAttribute[]
private final boolean[]
private final Map<String, Integer>
private final boolean[]
private final boolean[]
private final String[]
private final boolean[]
private final int
private final Type[]
private final boolean[]
private final boolean[]
private final String
private final boolean
private final SessionFactoryImplementor
sessionFactory

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
private final Set<E>
private final String
private final boolean
private final int

Constructor Summary

AccessConstructor and Description
public
EntityMetamodel(PersistentClass persistentClass, EntityPersister persister, PersisterCreationContext creationContext)

Method Summary

Modifier and TypeMethod and Description
private static EntityMetamodel.GenerationStrategyPair
buildGenerationStrategyPair(final SessionFactoryImplementor sessionFactory, final Property mappingProperty)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public static EntityMetamodel.InDatabaseValueGenerationStrategyImpl
create(SessionFactoryImplementor sessionFactoryImplementor, Property mappingProperty, ValueGeneration valueGeneration)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public String

Returns:

The mapped entity-name, or null if no such mapping was found.
findEntityNameByEntityClass
(Class<T>
The class for which to resolve the entity-name.
inheritenceClass
)

Return the entity-name mapped to the given class within our inheritance hierarchy, if any.

public BytecodeEnhancementMetadata
public CascadeStyle[]
public EntityMode
public EntityType
public IdentifierProperty
getIdentifierProperty()

Deprecated as a consequence of IdentifierProperty being deprecated.
public InDatabaseValueGenerationStrategy[]
public InMemoryValueGenerationStrategy[]
public BitSet
public String
public int[]
public boolean[]
public OptimisticLockStyle
public NonIdentifierAttribute[]
public boolean[]
public int
getPropertyIndex(String propertyName)

public Integer
public boolean[]
public boolean[]
public String[]
public boolean[]
public int
public Type[]
public boolean[]
public boolean[]
public String
public SessionFactoryImplementor
getSessionFactory()

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public Set<E>
public String
public EntityTuplizer
public VersionProperty
getVersionProperty()

Deprecated as a consequence of VersionProperty being deprecated.
public int
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
private boolean
private static void
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
isInstrumented()

Whether or not this class can be lazy (ie intercepted)

public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
private void
public void
setLazy(boolean lazy)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait