java.lang.Object | |
↳ | org.hibernate.tuple.entity.AbstractEntityTuplizer |
Known Direct Subclasses |
Support for tuplizers relating to entities.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
getters | |||||||||||
hasCustomAccessors | |||||||||||
propertySpan | |||||||||||
setters |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new AbstractEntityTuplizer instance.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called just after the entities properties have been initialized.
| |||||||||||
Generates an appropriate proxy representation of this entity for this
entity-mode.
| |||||||||||
Retrieve the getter for the specified property.
| |||||||||||
Extract the identifier value from the given entity.
| |||||||||||
Extract the identifier value from the given entity.
| |||||||||||
Retrieve the getter for the identifier property.
| |||||||||||
Extract the value of a particular property from the given entity.
| |||||||||||
Extract the value of a particular property from the given entity.
| |||||||||||
Extract the current values contained on the given entity.
| |||||||||||
Extract the values of the insertable properties of the entity (including backrefs)
| |||||||||||
Extract the value of the version property from the given entity.
| |||||||||||
Retrieve the getter for the version property.
| |||||||||||
Does this entity, for this mode, present a possibility for proxying?
| |||||||||||
Does the given entity instance have any currently uninitialized lazy properties?
| |||||||||||
Generate a new, empty entity.
| |||||||||||
Create an entity instance initialized with the given identifier.
| |||||||||||
Create an entity instance initialized with the given identifier.
| |||||||||||
Is the given object considered an instance of the the entity (acconting
for entity-mode) managed by this tuplizer.
| |||||||||||
Does the
class managed by this tuplizer implement
the Validatable interface. | |||||||||||
Inject the given identifier and version into the entity, in order to
"roll back" to their original values.
| |||||||||||
Inject the given identifier and version into the entity, in order to
"roll back" to their original values.
| |||||||||||
Inject the identifier value into the given entity.
| |||||||||||
Inject the identifier value into the given entity.
| |||||||||||
Inject the value of a particular property.
| |||||||||||
Inject the value of a particular property.
| |||||||||||
Inject the given values into the given entity.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Build an appropriate Instantiator for the given mapped entity.
| |||||||||||
Build an appropriate Getter for the given property.
| |||||||||||
Build an appropriate Setter for the given property.
| |||||||||||
Build an appropriate ProxyFactory for the given mapped entity.
| |||||||||||
Extract a component property value.
| |||||||||||
Retreives the defined entity-name for the tuplized entity.
| |||||||||||
Retrieves the defined entity-names for any subclasses defined for this
entity.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.hibernate.tuple.Tuplizer
| |||||||||||
From interface
org.hibernate.tuple.entity.EntityTuplizer
|
Constructs a new AbstractEntityTuplizer instance.
entityMetamodel | The "interpreted" information relating to the mapped entity. |
---|---|
mappingInfo | The parsed "raw" mapping data relating to the given entity. |
Called just after the entities properties have been initialized.
entity | The entity being initialized. |
---|---|
lazyPropertiesAreUnfetched | Are defined lazy properties currently unfecthed |
session | The session initializing this entity. |
Generates an appropriate proxy representation of this entity for this entity-mode.
id | The id of the instance for which to generate a proxy. |
---|---|
session | The session to which the proxy should be bound. |
HibernateException |
---|
Retrieve the getter for the specified property.
i | The property index. |
---|
Extract the identifier value from the given entity.
entity | The entity from which to extract the identifier value. |
---|---|
session | The session from which is requests originates |
Extract the identifier value from the given entity.
entity | The entity from which to extract the identifier value. |
---|
HibernateException |
---|
Retrieve the getter for the identifier property. May return null.
Extract the value of a particular property from the given entity.
entity | The entity from which to extract the property value. |
---|---|
propertyPath | The name of the property for which to extract the value. |
HibernateException |
---|
Extract the value of a particular property from the given entity.
entity | The entity from which to extract the property value. |
---|---|
i | The index of the property for which to extract the value. |
HibernateException |
---|
Extract the current values contained on the given entity.
entity | The entity from which to extract values. |
---|
HibernateException |
---|
Extract the values of the insertable properties of the entity (including backrefs)
entity | The entity from which to extract. |
---|---|
mergeMap | a map of instances being merged to merged instances |
session | The session in which the resuest is being made. |
HibernateException |
---|
Extract the value of the version property from the given entity.
entity | The entity from which to extract the version value. |
---|
HibernateException |
---|
Retrieve the getter for the version property. May return null.
Does this entity, for this mode, present a possibility for proxying?
Does the given entity instance have any currently uninitialized lazy properties?
entity | The entity to be check for uninitialized lazy properties. |
---|
Create an entity instance initialized with the given identifier.
id | The identifier value for the entity to be instantiated. |
---|---|
session | The session from which is requests originates |
Create an entity instance initialized with the given identifier.
id | The identifier value for the entity to be instantiated. |
---|
HibernateException |
---|
Is the given object considered an instance of the the entity (acconting for entity-mode) managed by this tuplizer.
object | The object to be checked. |
---|
Does the class
managed by this tuplizer implement
the Validatable
interface.
Inject the given identifier and version into the entity, in order to "roll back" to their original values.
entity | The entity for which to reset the id/version values |
---|---|
currentId | The identifier value to inject into the entity. |
currentVersion | The version value to inject into the entity. |
Inject the given identifier and version into the entity, in order to "roll back" to their original values.
entity | The entity for which to reset the id/version values |
---|---|
currentId | The identifier value to inject into the entity. |
currentVersion | The version value to inject into the entity. |
session | The session from which the request originated |
Inject the identifier value into the given entity.
Has no effect if the entity does not define an identifier propertyentity | The entity to inject with the identifier value. |
---|---|
id | The value to be injected as the identifier. |
HibernateException |
---|
Inject the identifier value into the given entity.
Has no effect if the entity does not define an identifier propertyentity | 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 |
Inject the value of a particular property.
entity | The entity into which to inject the value. |
---|---|
i | The property's index. |
value | The property value to inject. |
HibernateException |
---|
Inject the value of a particular property.
entity | The entity into which to inject the value. |
---|---|
propertyName | The name of the property. |
value | The property value to inject. |
HibernateException |
---|
Inject the given values into the given entity.
entity | The entity. |
---|---|
values | The values to be injected. |
HibernateException |
---|
Build an appropriate Instantiator for the given mapped entity.
mappingInfo | The mapping information regarding the mapped entity. |
---|
Build an appropriate Getter for the given property.
mappedProperty | The property to be accessed via the built Getter. |
---|---|
mappedEntity | The entity information regarding the mapped entity owning this property. |
Build an appropriate Setter for the given property.
mappedProperty | The property to be accessed via the built Setter. |
---|---|
mappedEntity | The entity information regarding the mapped entity owning this property. |
Build an appropriate ProxyFactory for the given mapped entity.
mappingInfo | The mapping information regarding the mapped entity. |
---|---|
idGetter | The constructed Getter relating to the entity's id property. |
idSetter | The constructed Setter relating to the entity's id property. |
Extract a component property value.
type | The component property types. |
---|---|
component | The component instance itself. |
propertyPath | The property path for the property to be extracted. |
Retreives the defined entity-name for the tuplized entity.
Retrieves the defined entity-names for any subclasses defined for this entity.