EntityTuplizer specific to the pojo entity mode.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private static final CoreMessageLogger | |
| private final Class | |
| private final ReflectionOptimizer | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterInitialize(Object
The entity being initialized. entity, SharedSessionContractImplementor The session initializing this entity. session)Overrides org. Implements org. |
| protected Instantiator | buildInstantiator(EntityMetamodel entityMetamodel, PersistentClass
The mapping information regarding the mapped entity. persistentClass)Implements abstract org. |
| protected Getter | buildPropertyGetter(Property
The property to be accessed via the built Getter. mappedProperty, PersistentClass The entity information regarding the mapped entity owning this property. mappedEntity)Implements abstract org. |
| protected Setter | buildPropertySetter(Property
The property to be accessed via the built Setter. mappedProperty, PersistentClass The entity information regarding the mapped entity owning this property. mappedEntity)Implements abstract org. |
| protected ProxyFactory | buildProxyFactory(PersistentClass
The mapping information regarding the mapped entity. persistentClass, Getter The constructed Getter relating to the entity's id property. idGetter, Setter The constructed Setter relating to the entity's id property. idSetter)Implements abstract org. |
| protected ProxyFactory | |
| private static void | |
| public String | determineConcreteSubclassEntityName(Object
The entity instance. entityInstance, SessionFactoryImplementor Reference to the SessionFactory. factory)Implements org.
Deprecated
as a consequence of
Given an entity instance, determine the most appropriate (most targeted) entity-name which represents it.
SessionFactoryImplementor being deprecated.
|
| public Class | getConcreteProxyClass()
Implements org. |
| public EntityMode | getEntityMode()
Implements org. |
| public EntityNameResolver[] | getEntityNameResolvers()
Implements org. EntityNameResolvers associated with this Tuplizer.
|
| public Class | getMappedClass()
Implements org. |
| public Object[] | getPropertyValues(Object
The entity from which to extract values. entity)Overrides org. Implements org. |
| public Object[] | getPropertyValuesToInsert(Object
The entity from which to extract. entity, Map<K, V> a map of instances being merged to merged instances mergeMap, SharedSessionContractImplementor The session in which the result set is being made. session)Overrides org. Implements org. |
| protected Object[] | |
| public boolean | isLifecycleImplementor()
Overrides org. Implements org. class managed by this tuplizer implement
the org. interface.
|
| public void | setPropertyValues(Object
The entity. entity, Object[] The values to be injected. values)Overrides org. Implements org. |
| protected void |
| lifecycleImplementor | back to summary |
|---|---|
| private final boolean lifecycleImplementor | |
| LOG | back to summary |
|---|---|
| private static final CoreMessageLogger LOG | |
| mappedClass | back to summary |
|---|---|
| private final Class<T> mappedClass | |
| optimizer | back to summary |
|---|---|
| private final ReflectionOptimizer optimizer | |
| proxyInterface | back to summary |
|---|---|
| private final Class<T> proxyInterface | |
| PojoEntityTuplizer | back to summary |
|---|---|
| public PojoEntityTuplizer(EntityMetamodel entityMetamodel, PersistentClass mappedEntity) | |
| afterInitialize | back to summary |
|---|---|
| public void afterInitialize(Object entity, SharedSessionContractImplementor session) Overrides org. Implements org. Doc from org. Called just after the entities properties have been initialized.
| |
| buildInstantiator | back to summary |
|---|---|
| protected Instantiator buildInstantiator(EntityMetamodel entityMetamodel, PersistentClass persistentClass) Implements abstract org. Doc from org. Build an appropriate Instantiator for the given mapped entity.
| |
| buildPropertyGetter | back to summary |
|---|---|
| protected Getter buildPropertyGetter(Property mappedProperty, PersistentClass mappedEntity) Implements abstract org. Doc from org. Build an appropriate Getter for the given property.
| |
| buildPropertySetter | back to summary |
|---|---|
| protected Setter buildPropertySetter(Property mappedProperty, PersistentClass mappedEntity) Implements abstract org. Doc from org. Build an appropriate Setter for the given property.
| |
| buildProxyFactory | back to summary |
|---|---|
| protected ProxyFactory buildProxyFactory(PersistentClass persistentClass, Getter idGetter, Setter idSetter) Implements abstract org. Doc from org. Build an appropriate ProxyFactory for the given mapped entity.
| |
| buildProxyFactoryInternal | back to summary |
|---|---|
| protected ProxyFactory buildProxyFactoryInternal(PersistentClass persistentClass, Getter idGetter, Setter idSetter) | |
| clearDirtyAttributes | back to summary |
|---|---|
| private static void clearDirtyAttributes(final SelfDirtinessTracker entity) | |
| determineConcreteSubclassEntityName | back to summary |
|---|---|
| public String determineConcreteSubclassEntityName(Object entityInstance, SessionFactoryImplementor factory) Implements org. Doc from org. Deprecated as a consequence of Given an entity instance, determine the most appropriate (most targeted) entity-name which represents it. This is called in situations where we already know an entity name for the given entityInstance; we are being asked to determine if there is a more appropriate entity-name to use, specifically within an inheritance hierarchy. For example, consider a case where a user calls session.update( "Animal", cat );. Here, the user has explicitly provided Animal as the entity-name. However, they have passed in an instance of Cat which is a subclass of Animal. In this case, we would return Cat as the entity-name. null may be returned from calls to this method. The meaning of null in that case is assumed to be that we should use whatever explicit entity-name the user provided (Animal rather than Cat in the example above).
| |
| getConcreteProxyClass | back to summary |
|---|---|
| public Class Implements org. Doc from org. Returns the java class to which generated proxies will be typed.
todo : look at fully encapsulating | |
| getEntityMode | back to summary |
|---|---|
| public EntityMode getEntityMode() Implements org. Doc from org. Return the entity-mode handled by this tuplizer instance.
| |
| getEntityNameResolvers | back to summary |
|---|---|
| public EntityNameResolver[] getEntityNameResolvers() Implements org. Doc from org. Get any
| |
| getMappedClass | back to summary |
|---|---|
| public Class Implements org. Doc from org. Return the pojo class managed by this tuplizer. Need to determine how to best handle this for the Tuplizers for EntityModes other than POJO. todo : be really nice to not have this here since it is essentially pojo specific... | |
| getPropertyValues | back to summary |
|---|---|
| public Object[] getPropertyValues(Object entity) throws HibernateException Overrides org. Implements org. Doc from org. Extract the current values contained on the given entity. | |
| getPropertyValuesToInsert | back to summary |
|---|---|
| public Object[] getPropertyValuesToInsert(Object entity, Map<K, V> mergeMap, SharedSessionContractImplementor session) Overrides org. Implements org. Doc from org. Extract the values of the insertable properties of the entity (including backrefs)
| |
| getPropertyValuesWithOptimizer | back to summary |
|---|---|
| protected Object[] getPropertyValuesWithOptimizer(Object object) | |
| isLifecycleImplementor | back to summary |
|---|---|
| public boolean isLifecycleImplementor() Overrides org. Implements org. Doc from org. Does the
| |
| setPropertyValues | back to summary |
|---|---|
| public void setPropertyValues(Object entity, Object[] values) throws HibernateException Overrides org. Implements org. Doc from org. Inject the given values into the given entity. | |
| setPropertyValuesWithOptimizer | back to summary |
|---|---|
| protected void setPropertyValuesWithOptimizer(Object object, Object[] values) | |