Package org.hibernate.tuple.entity
Class EntityMetamodel
java.lang.Object
org.hibernate.tuple.entity.EntityMetamodel
- All Implemented Interfaces:
Serializable
Centralizes metamodel information about an entity.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEntityMetamodel(PersistentClass persistentClass, SessionFactoryImplementor sessionFactory) -
Method Summary
Modifier and TypeMethodDescriptionfindEntityNameByEntityClass(Class inheritenceClass) Return the entity-name mapped to the given class within our inheritance hierarchy, if any.getName()int[]boolean[]intboolean[]intgetPropertyIndex(String propertyName) getPropertyIndexOrNull(String propertyName) boolean[]boolean[]String[]boolean[]intType[]boolean[]boolean[]getTuplizer(EntityMode entityMode) getTuplizerOrNull(EntityMode entityMode) intguessEntityMode(Object object) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisLazy()booleanbooleanbooleanbooleanvoidsetLazy(boolean lazy) toString()
-
Constructor Details
-
EntityMetamodel
-
-
Method Details
-
getTuplizerMapping
-
getTuplizer
-
getTuplizerOrNull
-
guessEntityMode
-
getNaturalIdentifierProperties
public int[] getNaturalIdentifierProperties() -
hasNaturalIdentifier
public boolean hasNaturalIdentifier() -
hasImmutableNaturalId
public boolean hasImmutableNaturalId() -
getSubclassEntityNames
-
getSessionFactory
-
getName
-
getRootName
-
getEntityType
-
getIdentifierProperty
-
getPropertySpan
public int getPropertySpan() -
getVersionPropertyIndex
public int getVersionPropertyIndex() -
getVersionProperty
-
getProperties
-
getPropertyIndex
-
getPropertyIndexOrNull
-
hasCollections
public boolean hasCollections() -
hasMutableProperties
public boolean hasMutableProperties() -
hasNonIdentifierPropertyNamedId
public boolean hasNonIdentifierPropertyNamedId() -
hasLazyProperties
public boolean hasLazyProperties() -
hasCascades
public boolean hasCascades() -
isMutable
public boolean isMutable() -
isSelectBeforeUpdate
public boolean isSelectBeforeUpdate() -
isDynamicUpdate
public boolean isDynamicUpdate() -
isDynamicInsert
public boolean isDynamicInsert() -
getOptimisticLockMode
public int getOptimisticLockMode() -
isPolymorphic
public boolean isPolymorphic() -
getSuperclass
-
isExplicitPolymorphism
public boolean isExplicitPolymorphism() -
isInherited
public boolean isInherited() -
hasSubclasses
public boolean hasSubclasses() -
isLazy
public boolean isLazy() -
setLazy
public void setLazy(boolean lazy) -
isVersioned
public boolean isVersioned() -
isAbstract
public boolean isAbstract() -
findEntityNameByEntityClass
Return the entity-name mapped to the given class within our inheritance hierarchy, if any.- Parameters:
inheritenceClass- The class for which to resolve the entity-name.- Returns:
- The mapped entity-name, or null if no such mapping was found.
-
toString
-
getPropertyNames
-
getPropertyTypes
-
getPropertyLaziness
public boolean[] getPropertyLaziness() -
getPropertyUpdateability
public boolean[] getPropertyUpdateability() -
getPropertyCheckability
public boolean[] getPropertyCheckability() -
getNonlazyPropertyUpdateability
public boolean[] getNonlazyPropertyUpdateability() -
getPropertyInsertability
public boolean[] getPropertyInsertability() -
getPropertyInsertGenerationInclusions
-
getPropertyUpdateGenerationInclusions
-
getPropertyNullability
public boolean[] getPropertyNullability() -
getPropertyVersionability
public boolean[] getPropertyVersionability() -
getCascadeStyles
-
hasInsertGeneratedValues
public boolean hasInsertGeneratedValues() -
hasUpdateGeneratedValues
public boolean hasUpdateGeneratedValues()
-