org.hibernate.SessionFactory#getClassMetadata(Class)
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public Serializable | getIdentifier(Object object)
Deprecated
Use
Get the identifier of an instance (throw an exception if no identifier property)
getIdentifier(Object, SharedSessionContractImplementor) instead
|
| public default Serializable | Returns: The identifierThe entity for which to get the identifier entity, SessionImplementor The session from which the request originated session)
Deprecated
Use
Get the identifier of an instance (throw an exception if no identifier property)
getIdentifier(Object, SharedSessionContractImplementor) instead
|
| public Serializable | Returns: The identifierThe entity for which to get the identifier entity, SharedSessionContractImplementor The session from which the request originated session)Get the identifier of an instance (throw an exception if no identifier property) |
| public String | |
| public Type | |
| public Class | |
| public int[] | |
| public boolean[] | |
| public String[] | |
| public boolean[] | |
| public Type | |
| public Type[] | |
| public Object | |
| public Object[] | Returns: The property values.The entity from which to extract the property values. entity)Extract the property values from the given entity. |
| public default Object[] | getPropertyValuesToInsert(Object entity, Map<K, V> mergeMap, SessionImplementor session)
Deprecated
(since 5.3) Use the form accepting SharedSessionContractImplementor
instead
Return the values of the mapped properties of the object
|
| public Object[] | getPropertyValuesToInsert(Object entity, Map<K, V> mergeMap, SharedSessionContractImplementor session)
Return the values of the mapped properties of the object |
| public Object | getVersion(Object object)
Get the version number (or timestamp) from the object's version property (or return null if not versioned) |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public default Object | Returns: The instantiated entity.The identifier value to use (may be null to represent no value) id, SessionImplementor The session from which the request originated. session)
Deprecated
(since 5.3) Use the form accepting SharedSessionContractImplementor
instead
Create a class instance initialized with the given identifier
|
| public Object | Returns: The instantiated entity.The identifier value to use (may be null to represent no value) id, SharedSessionContractImplementor The session from which the request originated. session)Create a class instance initialized with the given identifier |
| public boolean | |
| public boolean | |
| public boolean | |
| public default void | setIdentifier(Object
The entity to inject with the identifier value. entity, Serializable The value to be injected as the identifier. id, SessionImplementor The session from which is requests originates session)
Deprecated
Use
Inject the identifier value into the given entity.
setIdentifier(Object, Serializable, SharedSessionContractImplementor) instead
|
| public void | setIdentifier(Object
The entity to inject with the identifier value. entity, Serializable The value to be injected as the identifier. id, SharedSessionContractImplementor The session from which is requests originates session)Inject the identifier value into the given entity. |
| public void | setPropertyValue(Object object, String propertyName, Object value)
Set the value of a particular (named) property |
| public void | setPropertyValues(Object object, Object[] values)
Set the given values to the mapped properties of the given object |
| getEntityName | back to summary |
|---|---|
| public String getEntityName() The name of the entity | |
| getIdentifier | back to summary |
|---|---|
| public Serializable getIdentifier(Object object) throws HibernateException
Deprecated Use Get the identifier of an instance (throw an exception if no identifier property)
| |
| getIdentifier | back to summary |
|---|---|
| public default Serializable getIdentifier(Object entity, SessionImplementor session)
Deprecated Use Get the identifier of an instance (throw an exception if no identifier property)
| |
| getIdentifier | back to summary |
|---|---|
| public Serializable getIdentifier(Object entity, SharedSessionContractImplementor session) Get the identifier of an instance (throw an exception if no identifier property)
| |
| getIdentifierPropertyName | back to summary |
|---|---|
| public String getIdentifierPropertyName() Get the name of the identifier property (or return null) | |
| getIdentifierType | back to summary |
|---|---|
| public Type getIdentifierType() Get the identifier Hibernate type | |
| getMappedClass | back to summary |
|---|---|
| public Class The persistent class, or null | |
| getNaturalIdentifierProperties | back to summary |
|---|---|
| public int[] getNaturalIdentifierProperties() Which properties hold the natural id? | |
| getPropertyLaziness | back to summary |
|---|---|
| public boolean[] getPropertyLaziness() Get the "laziness" of the properties of this class | |
| getPropertyNames | back to summary |
|---|---|
| public String[] getPropertyNames() Get the names of the class' persistent properties | |
| getPropertyNullability | back to summary |
|---|---|
| public boolean[] getPropertyNullability() Get the nullability of the class' persistent properties | |
| getPropertyType | back to summary |
|---|---|
| public Type getPropertyType(String propertyName) throws HibernateException Get the type of a particular (named) property | |
| getPropertyTypes | back to summary |
|---|---|
| public Type[] getPropertyTypes() Get the Hibernate types of the class properties | |
| getPropertyValue | back to summary |
|---|---|
| public Object getPropertyValue(Object object, String propertyName) throws HibernateException Get the value of a particular (named) property | |
| getPropertyValues | back to summary |
|---|---|
| public Object[] getPropertyValues(Object entity) throws HibernateException Extract the property values from the given entity. | |
| getPropertyValuesToInsert | back to summary |
|---|---|
| public default Object[] getPropertyValuesToInsert(Object entity, Map<K, V> mergeMap, SessionImplementor session) throws HibernateException
Deprecated (since 5.3) Use the form accepting SharedSessionContractImplementor instead Return the values of the mapped properties of the object
| |
| getPropertyValuesToInsert | back to summary |
|---|---|
| public Object[] getPropertyValuesToInsert(Object entity, Map<K, V> mergeMap, SharedSessionContractImplementor session) throws HibernateException Return the values of the mapped properties of the object
| |
| getVersion | back to summary |
|---|---|
| public Object getVersion(Object object) throws HibernateException Get the version number (or timestamp) from the object's version property (or return null if not versioned) | |
| getVersionProperty | back to summary |
|---|---|
| public int getVersionProperty() Get the index of the version property | |
| hasIdentifierProperty | back to summary |
|---|---|
| public boolean hasIdentifierProperty() Does this class have an identifier property? | |
| hasNaturalIdentifier | back to summary |
|---|---|
| public boolean hasNaturalIdentifier() Does this entity declare a natural id? | |
| hasProxy | back to summary |
|---|---|
| public boolean hasProxy() Does this class support dynamic proxies? | |
| hasSubclasses | back to summary |
|---|---|
| public boolean hasSubclasses() Does this entity have mapped subclasses? | |
| implementsLifecycle | back to summary |
|---|---|
| public boolean implementsLifecycle() Does the class implement the Lifecycle interface?
| |
| instantiate | back to summary |
|---|---|
| public default Object instantiate(Serializable id, SessionImplementor session)
Deprecated (since 5.3) Use the form accepting SharedSessionContractImplementor instead Create a class instance initialized with the given identifier
| |
| instantiate | back to summary |
|---|---|
| public Object instantiate(Serializable id, SharedSessionContractImplementor session) Create a class instance initialized with the given identifier
| |
| isInherited | back to summary |
|---|---|
| public boolean isInherited() Does this entity extend a mapped superclass? | |
| isMutable | back to summary |
|---|---|
| public boolean isMutable() Are instances of this class mutable? | |
| isVersioned | back to summary |
|---|---|
| public boolean isVersioned() Are instances of this class versioned by a timestamp or version number column? | |
| setIdentifier | back to summary |
|---|---|
| public default void setIdentifier(Object entity, Serializable id, SessionImplementor session)
Deprecated Use Inject the identifier value into the given entity.
| |
| setIdentifier | back to summary |
|---|---|
| public void setIdentifier(Object entity, Serializable id, SharedSessionContractImplementor session) Inject the identifier value into the given entity.
| |
| setPropertyValue | back to summary |
|---|---|
| public void setPropertyValue(Object object, String propertyName, Object value) throws HibernateException Set the value of a particular (named) property | |
| setPropertyValues | back to summary |
|---|---|
| public void setPropertyValues(Object object, Object[] values) throws HibernateException Set the given values to the mapped properties of the given object | |