public class EntityMetamodel extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
EntityMetamodel.GenerationStrategyPair |
static class |
EntityMetamodel.ValueGenerationStrategyException |
Constructor and Description |
---|
EntityMetamodel(PersistentClass persistentClass,
AbstractEntityPersister persister,
SessionFactoryImplementor sessionFactory) |
public EntityMetamodel(PersistentClass persistentClass, AbstractEntityPersister 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 Set getSubclassEntityNames()
public SessionFactoryImplementor getSessionFactory()
public String getName()
public String getRootName()
public EntityType getEntityType()
public IdentifierProperty getIdentifierProperty()
public int getPropertySpan()
public int getVersionPropertyIndex()
public VersionProperty getVersionProperty()
public NonIdentifierAttribute[] getProperties()
public int getPropertyIndex(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 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 String findEntityNameByEntityClass(Class inheritenceClass)
inheritenceClass
- The class for which to resolve the entity-name.public 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 EntityInstrumentationMetadata getInstrumentationMetadata()
public boolean isLazyLoadingBytecodeEnhanced()
Copyright © 2016 JBoss by Red Hat. All rights reserved.