Interface ClassMetadata

All Known Subinterfaces:
DeprecatedEntityStuff
All Known Implementing Classes:
AbstractEntityPersister, JoinedSubclassEntityPersister, SingleTableEntityPersister, UnionSubclassEntityPersister

@Deprecated(since="6.0") public interface ClassMetadata
Deprecated.
Use Hibernate's mapping model MappingMetamodel
Exposes entity class metadata to the application
  • Method Details

    • getEntityName

      String getEntityName()
      Deprecated.
      The name of the entity
    • getIdentifierPropertyName

      String getIdentifierPropertyName()
      Deprecated.
      Get the name of the identifier property (or return null)
    • getPropertyNames

      String[] getPropertyNames()
      Deprecated.
      Get the names of the class' persistent properties
    • getIdentifierType

      Type getIdentifierType()
      Deprecated.
      Get the identifier Hibernate type
    • getPropertyTypes

      Type[] getPropertyTypes()
      Deprecated.
      Get the Hibernate types of the class properties
    • getPropertyType

      Type getPropertyType(String propertyName) throws HibernateException
      Deprecated.
      Get the type of a particular (named) property
      Throws:
      HibernateException
    • hasProxy

      boolean hasProxy()
      Deprecated.
      Does this class support dynamic proxies?
    • isMutable

      boolean isMutable()
      Deprecated.
      Are instances of this class mutable?
    • isVersioned

      boolean isVersioned()
      Deprecated.
      Are instances of this class versioned by a timestamp or version number column?
    • getVersionProperty

      int getVersionProperty()
      Deprecated.
      Get the index of the version property
    • getPropertyNullability

      boolean[] getPropertyNullability()
      Deprecated.
      Get the nullability of the class' persistent properties
    • getPropertyLaziness

      boolean[] getPropertyLaziness()
      Deprecated.
      Get the "laziness" of the properties of this class
    • hasIdentifierProperty

      boolean hasIdentifierProperty()
      Deprecated.
      Does this class have an identifier property?
    • hasNaturalIdentifier

      boolean hasNaturalIdentifier()
      Deprecated.
      Does this entity declare a natural id?
    • getNaturalIdentifierProperties

      int[] getNaturalIdentifierProperties()
      Deprecated.
      Which properties hold the natural id?
    • hasSubclasses

      boolean hasSubclasses()
      Deprecated.
      Does this entity have mapped subclasses?
    • isInherited

      boolean isInherited()
      Deprecated.
      Does this entity extend a mapped superclass?
    • getPropertyValuesToInsert

      @Deprecated(since="5.3") default Object[] getPropertyValuesToInsert(Object entity, Map<Object,Object> mergeMap, SessionImplementor session) throws HibernateException
      Deprecated.
      Use the form accepting SharedSessionContractImplementor instead
      Return the values of the mapped properties of the object
      Throws:
      HibernateException
    • getPropertyValuesToInsert

      Object[] getPropertyValuesToInsert(Object entity, Map<Object,Object> mergeMap, SharedSessionContractImplementor session) throws HibernateException
      Deprecated.
      Return the values of the mapped properties of the object
      Throws:
      HibernateException
    • getMappedClass

      Class<?> getMappedClass()
      Deprecated.
      The persistent class, or null
    • instantiate

      @Deprecated(since="5.3") default Object instantiate(Object id, SessionImplementor session)
      Deprecated.
      Use the form accepting SharedSessionContractImplementor instead
      Create a class instance initialized with the given identifier
      Parameters:
      id - The identifier value to use (may be null to represent no value)
      session - The session from which the request originated.
      Returns:
      The instantiated entity.
    • instantiate

      Object instantiate(Object id, SharedSessionContractImplementor session)
      Deprecated.
      Create a class instance initialized with the given identifier
      Parameters:
      id - The identifier value to use (may be null to represent no value)
      session - The session from which the request originated.
      Returns:
      The instantiated entity.
    • getPropertyValue

      Object getPropertyValue(Object object, String propertyName) throws HibernateException
      Deprecated.
      Get the value of a particular (named) property
      Throws:
      HibernateException
    • getPropertyValues

      Object[] getPropertyValues(Object entity) throws HibernateException
      Deprecated.
      Extract the property values from the given entity.
      Parameters:
      entity - The entity from which to extract the property values.
      Returns:
      The property values.
      Throws:
      HibernateException
    • setPropertyValue

      void setPropertyValue(Object object, String propertyName, Object value) throws HibernateException
      Deprecated.
      Set the value of a particular (named) property
      Throws:
      HibernateException
    • setPropertyValues

      void setPropertyValues(Object object, Object[] values) throws HibernateException
      Deprecated.
      Set the given values to the mapped properties of the given object
      Throws:
      HibernateException
    • getIdentifier

      @Deprecated default Object getIdentifier(Object object) throws HibernateException
      Get the identifier of an instance (throw an exception if no identifier property)
      Throws:
      HibernateException
    • getIdentifier

      @Deprecated default Object getIdentifier(Object entity, SessionImplementor session)
      Get the identifier of an instance (throw an exception if no identifier property)
      Parameters:
      entity - The entity for which to get the identifier
      session - The session from which the request originated
      Returns:
      The identifier
    • getIdentifier

      Object getIdentifier(Object entity, SharedSessionContractImplementor session)
      Deprecated.
      Get the identifier of an instance (throw an exception if no identifier property)
      Parameters:
      entity - The entity for which to get the identifier
      session - The session from which the request originated
      Returns:
      The identifier
    • setIdentifier

      @Deprecated default void setIdentifier(Object entity, Object id, SessionImplementor session)
      Inject the identifier value into the given entity.
      Parameters:
      entity - The entity to inject with the identifier value.
      id - The value to be injected as the identifier.
      session - The session from which is requests originates
    • setIdentifier

      void setIdentifier(Object entity, Object id, SharedSessionContractImplementor session)
      Deprecated.
      Inject the identifier value into the given entity.
      Parameters:
      entity - The entity to inject with the identifier value.
      id - The value to be injected as the identifier.
      session - The session from which is requests originates
    • implementsLifecycle

      boolean implementsLifecycle()
      Deprecated.
      Does the class implement the Lifecycle interface?
    • getVersion

      Object getVersion(Object object) throws HibernateException
      Deprecated.
      Get the version number (or timestamp) from the object's version property (or return null if not versioned)
      Throws:
      HibernateException