org.hibernate.SessionFactory#getClassMetadata(Class)
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public Serializable | getIdentifier(Object object, EntityMode entityMode)
Deprecated
Use
Get the identifier of an instance (throw an exception if no identifier property)
getIdentifier(Object, SessionImplementor) instead
|
| public Serializable | Returns: The identifierThe entity for which to get the identifier entity, SessionImplementor 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 | getPropertyValue(Object object, String propertyName, EntityMode entityMode)
Get the value of a particular (named) property |
| public Object[] | Returns: The property values.The entity from which to extract the property values. entity, EntityMode The entity-mode of the given entity entityMode)Extract the property values from the given entity. |
| public Object[] | getPropertyValuesToInsert(Object entity, Map<K, V> mergeMap, SessionImplementor session)
Return the values of the mapped properties of the object |
| public Object | getVersion(Object object, EntityMode entityMode)
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 boolean | |
| public Object | instantiate(Serializable id, EntityMode entityMode)
Deprecated
Use
Create a class instance initialized with the given identifier
instantiate(Serializable, SessionImplementor) instead
|
| public 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)Create a class instance initialized with the given identifier |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | setIdentifier(Object
The entity to inject with the identifier value. entity, Serializable The value to be injected as the identifier. id, EntityMode The entity mode entityMode)
Deprecated
Use
Inject the identifier value into the given entity.
setIdentifier(Object, Serializable, SessionImplementor) instead.
|
| public 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)Inject the identifier value into the given entity. |
| public void | setPropertyValue(Object object, String propertyName, Object value, EntityMode entityMode)
Set the value of a particular (named) property |
| public void | setPropertyValues(Object object, Object[] values, EntityMode entityMode)
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, EntityMode entityMode) throws HibernateException
Deprecated Use Get the identifier of an instance (throw an exception if no identifier property) | |
| getIdentifier | back to summary |
|---|---|
| public Serializable getIdentifier(Object entity, SessionImplementor 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, EntityMode entityMode) throws HibernateException Get the value of a particular (named) property | |
| getPropertyValues | back to summary |
|---|---|
| public Object[] getPropertyValues(Object entity, EntityMode entityMode) throws HibernateException Extract the property values from the given entity.
| |
| getPropertyValuesToInsert | back to summary |
|---|---|
| public Object[] getPropertyValuesToInsert(Object entity, Map<K, V> mergeMap, SessionImplementor session) throws HibernateException Return the values of the mapped properties of the object | |
| getVersion | back to summary |
|---|---|
| public Object getVersion(Object object, EntityMode entityMode) 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(EntityMode entityMode) Does the class implement the Lifecycle interface? | |
| implementsValidatable | back to summary |
|---|---|
| public boolean implementsValidatable(EntityMode entityMode) Does the class implement the Validatable interface? | |
| instantiate | back to summary |
|---|---|
| public Object instantiate(Serializable id, EntityMode entityMode) throws HibernateException
Deprecated Use Create a class instance initialized with the given identifier | |
| instantiate | back to summary |
|---|---|
| public Object instantiate(Serializable id, SessionImplementor 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 void setIdentifier(Object entity, Serializable id, EntityMode entityMode) throws HibernateException
Deprecated Use Inject the identifier value into the given entity. Has no effect if the entity does not define an identifier property
| |
| setIdentifier | back to summary |
|---|---|
| public void setIdentifier(Object entity, Serializable id, SessionImplementor session) Inject the identifier value into the given entity.
| |
| setPropertyValue | back to summary |
|---|---|
| public void setPropertyValue(Object object, String propertyName, Object value, EntityMode entityMode) throws HibernateException Set the value of a particular (named) property | |
| setPropertyValues | back to summary |
|---|---|
| public void setPropertyValues(Object object, Object[] values, EntityMode entityMode) throws HibernateException Set the given values to the mapped properties of the given object | |