Package org.hibernate.metadata
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 modelMappingMetamodel
Exposes entity class metadata to the application
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description String
getEntityName()
Deprecated.The name of the entitydefault Object
getIdentifier(Object object)
Deprecated.default Object
getIdentifier(Object entity, SessionImplementor session)
Deprecated.Object
getIdentifier(Object entity, SharedSessionContractImplementor session)
Deprecated.Get the identifier of an instance (throw an exception if no identifier property)String
getIdentifierPropertyName()
Deprecated.Get the name of the identifier property (or return null)Type
getIdentifierType()
Deprecated.Get the identifier Hibernate typeClass<?>
getMappedClass()
Deprecated.The persistent class, or nullint[]
getNaturalIdentifierProperties()
Deprecated.Which properties hold the natural id?boolean[]
getPropertyLaziness()
Deprecated.Get the "laziness" of the properties of this classString[]
getPropertyNames()
Deprecated.Get the names of the class' persistent propertiesboolean[]
getPropertyNullability()
Deprecated.Get the nullability of the class' persistent propertiesType
getPropertyType(String propertyName)
Deprecated.Get the type of a particular (named) propertyType[]
getPropertyTypes()
Deprecated.Get the Hibernate types of the class propertiesObject
getPropertyValue(Object object, String propertyName)
Deprecated.Get the value of a particular (named) propertyObject[]
getPropertyValues(Object entity)
Deprecated.Extract the property values from the given entity.default Object[]
getPropertyValuesToInsert(Object entity, Map<Object,Object> mergeMap, SessionImplementor session)
Deprecated.Use the form accepting SharedSessionContractImplementor insteadObject[]
getPropertyValuesToInsert(Object entity, Map<Object,Object> mergeMap, SharedSessionContractImplementor session)
Deprecated.Return the values of the mapped properties of the objectObject
getVersion(Object object)
Deprecated.Get the version number (or timestamp) from the object's version property (or return null if not versioned)int
getVersionProperty()
Deprecated.Get the index of the version propertyboolean
hasIdentifierProperty()
Deprecated.Does this class have an identifier property?boolean
hasNaturalIdentifier()
Deprecated.Does this entity declare a natural id?boolean
hasProxy()
Deprecated.Does this class support dynamic proxies?boolean
hasSubclasses()
Deprecated.Does this entity have mapped subclasses?boolean
implementsLifecycle()
Deprecated.Does the class implement theLifecycle
interface?default Object
instantiate(Object id, SessionImplementor session)
Deprecated.Use the form accepting SharedSessionContractImplementor insteadObject
instantiate(Object id, SharedSessionContractImplementor session)
Deprecated.Create a class instance initialized with the given identifierboolean
isInherited()
Deprecated.Does this entity extend a mapped superclass?boolean
isMutable()
Deprecated.Are instances of this class mutable?boolean
isVersioned()
Deprecated.Are instances of this class versioned by a timestamp or version number column?default void
setIdentifier(Object entity, Object id, SessionImplementor session)
Deprecated.void
setIdentifier(Object entity, Object id, SharedSessionContractImplementor session)
Deprecated.Inject the identifier value into the given entity.void
setPropertyValue(Object object, String propertyName, Object value)
Deprecated.Set the value of a particular (named) propertyvoid
setPropertyValues(Object object, Object[] values)
Deprecated.Set the given values to the mapped properties of the given object
-
-
-
Method Detail
-
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 insteadReturn 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 insteadCreate 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
Deprecated.Get the identifier of an instance (throw an exception if no identifier property)- Throws:
HibernateException
-
getIdentifier
@Deprecated default Object getIdentifier(Object entity, SessionImplementor session)
Deprecated.Get the identifier of an instance (throw an exception if no identifier property)- Parameters:
entity
- The entity for which to get the identifiersession
- 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 identifiersession
- The session from which the request originated- Returns:
- The identifier
-
setIdentifier
@Deprecated default void setIdentifier(Object entity, Object id, SessionImplementor 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
-
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 theLifecycle
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
-
-