public class EntityMetamodel extends Object implements Serializable
Constructor and Description |
---|
EntityMetamodel(EntityBinding entityBinding,
SessionFactoryImplementor sessionFactory) |
EntityMetamodel(PersistentClass persistentClass,
SessionFactoryImplementor sessionFactory) |
public EntityMetamodel(PersistentClass persistentClass, SessionFactoryImplementor sessionFactory)
public EntityMetamodel(EntityBinding entityBinding, SessionFactoryImplementor sessionFactory)
public EntityTuplizer getTuplizer()
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 StandardProperty[] 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 ValueInclusion[] getPropertyInsertGenerationInclusions()
public ValueInclusion[] getPropertyUpdateGenerationInclusions()
public boolean[] getPropertyNullability()
public boolean[] getPropertyVersionability()
public CascadeStyle[] getCascadeStyles()
public boolean hasInsertGeneratedValues()
public boolean hasUpdateGeneratedValues()
public EntityMode getEntityMode()
public boolean isInstrumented()
public EntityInstrumentationMetadata getInstrumentationMetadata()
Copyright © 2018 JBoss by Red Hat. All rights reserved.