public class EntityMetamodel
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
EntityMetamodel.GenerationStrategyPair |
static class |
EntityMetamodel.ValueGenerationStrategyException |
Constructor and Description |
---|
EntityMetamodel(PersistentClass persistentClass,
EntityPersister persister,
SessionFactoryImplementor sessionFactory) |
public EntityMetamodel(PersistentClass persistentClass, EntityPersister persister, SessionFactoryImplementor sessionFactory)
public static org.hibernate.tuple.entity.EntityMetamodel.InDatabaseValueGenerationStrategyImpl create(SessionFactoryImplementor sessionFactoryImplementor, Property mappingProperty, ValueGeneration valueGeneration)
public EntityTuplizer getTuplizer()
public boolean isNaturalIdentifierInsertGenerated()
public boolean isVersionGenerated()
public int[] getNaturalIdentifierProperties()
public boolean hasNaturalIdentifier()
public boolean isNaturalIdentifierCached()
public boolean hasImmutableNaturalId()
public java.util.Set getSubclassEntityNames()
public SessionFactoryImplementor getSessionFactory()
public java.lang.String getName()
public java.lang.String getRootName()
public EntityType getEntityType()
public IdentifierProperty getIdentifierProperty()
public int getPropertySpan()
public int getVersionPropertyIndex()
public VersionProperty getVersionProperty()
public NonIdentifierAttribute[] getProperties()
public int getPropertyIndex(java.lang.String propertyName)
public java.lang.Integer getPropertyIndexOrNull(java.lang.String propertyName)
public boolean hasCollections()
public boolean hasMutableProperties()
public boolean hasNonIdentifierPropertyNamedId()
public boolean hasLazyProperties()
public boolean hasCascades()
public boolean isMutable()
public boolean isSelectBeforeUpdate()
public boolean isDynamicUpdate()
public boolean isDynamicInsert()
public OptimisticLockStyle getOptimisticLockStyle()
public boolean isPolymorphic()
public java.lang.String getSuperclass()
public boolean isExplicitPolymorphism()
public boolean isInherited()
public boolean hasSubclasses()
public boolean isLazy()
public void setLazy(boolean lazy)
public boolean isVersioned()
public boolean isAbstract()
public java.lang.String findEntityNameByEntityClass(java.lang.Class inheritenceClass)
inheritenceClass
- The class for which to resolve the entity-name.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String[] getPropertyNames()
public Type[] getPropertyTypes()
public boolean[] getPropertyLaziness()
public boolean[] getPropertyUpdateability()
public boolean[] getPropertyCheckability()
public boolean[] getNonlazyPropertyUpdateability()
public boolean[] getPropertyInsertability()
public boolean[] getPropertyNullability()
public boolean[] getPropertyVersionability()
public CascadeStyle[] getCascadeStyles()
public boolean hasPreInsertGeneratedValues()
public boolean hasPreUpdateGeneratedValues()
public boolean hasInsertGeneratedValues()
public boolean hasUpdateGeneratedValues()
public InMemoryValueGenerationStrategy[] getInMemoryValueGenerationStrategies()
public InDatabaseValueGenerationStrategy[] getInDatabaseValueGenerationStrategies()
public EntityMode getEntityMode()
public boolean isInstrumented()
public BytecodeEnhancementMetadata getBytecodeEnhancementMetadata()
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.