EntityTuplizer specific to the pojo entity mode.
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final boolean | |
| pack-priv static final Logger | |
| private final Class | |
| private final ReflectionOptimizer | |
| private final Class | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterInitialize(Object
The entity being initialized. entity, boolean Are defined lazy properties currently unfecthed lazyPropertiesAreUnfetched, SessionImplementor The session initializing this entity. session)Overrides org. Implements org. |
| protected Instantiator | buildInstantiator(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 | |
| public String | determineConcreteSubclassEntityName(Object
The entity instance. entityInstance, SessionFactoryImplementor Reference to the SessionFactory. factory)Implements org. |
| 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, SessionImplementor The session in which the resuest is being made. session)Overrides org. Implements org. |
| protected Object[] | |
| public boolean | hasUninitializedLazyProperties(Object
The entity to be check for uninitialized lazy properties. entity)Overrides org. Implements org. |
| public boolean | isInstrumented()
Implements org. |
| public boolean | isLifecycleImplementor()
Overrides org. Implements org. class managed by this tuplizer implement
the org. interface.
|
| public boolean | isValidatableImplementor()
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 |
| lazyPropertyNames | back to summary |
|---|---|
| private final Set<E> lazyPropertyNames | |
| lifecycleImplementor | back to summary |
|---|---|
| private final boolean lifecycleImplementor | |
| log | back to summary |
|---|---|
| pack-priv static final Logger log Hides org. | |
| 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 | |
| validatableImplementor | back to summary |
|---|---|
| private final boolean validatableImplementor | |
| PojoEntityTuplizer | back to summary |
|---|---|
| public PojoEntityTuplizer(EntityMetamodel entityMetamodel, PersistentClass mappedEntity) | |
| afterInitialize | back to summary |
|---|---|
| public void afterInitialize(Object entity, boolean lazyPropertiesAreUnfetched, SessionImplementor session) Overrides org. Implements org. Doc from org. Called just after the entities properties have been initialized.
| |
| buildInstantiator | back to summary |
|---|---|
| protected Instantiator buildInstantiator(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) | |
| determineConcreteSubclassEntityName | back to summary |
|---|---|
| public String determineConcreteSubclassEntityName(Object entityInstance, SessionFactoryImplementor factory) Implements org. Doc from org. 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 inheritence 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 meaining 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, SessionImplementor session) throws HibernateException 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) | |
| hasUninitializedLazyProperties | back to summary |
|---|---|
| public boolean hasUninitializedLazyProperties(Object entity) Overrides org. Implements org. Doc from org. Does the given entity instance have any currently uninitialized lazy properties?
| |
| isInstrumented | back to summary |
|---|---|
| public boolean isInstrumented() Implements org. Doc from org. Is it an instrumented POJO? | |
| isLifecycleImplementor | back to summary |
|---|---|
| public boolean isLifecycleImplementor() Overrides org. Implements org. Doc from org. Does the
| |
| isValidatableImplementor | back to summary |
|---|---|
| public boolean isValidatableImplementor() 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) | |