public class DynamicMapEntityTuplizer extends AbstractEntityTuplizer
EntityTuplizer specific to the dynamic-map entity mode.| Modifier and Type | Class and Description |
|---|---|
static class |
DynamicMapEntityTuplizer.BasicEntityNameResolver |
getters, hasCustomAccessors, propertySpan, setters| Modifier and Type | Method and Description |
|---|---|
protected Instantiator |
buildInstantiator(EntityMetamodel entityMetamodel,
PersistentClass mappingInfo)
Build an appropriate Instantiator for the given mapped entity.
|
protected Getter |
buildPropertyGetter(Property mappedProperty,
PersistentClass mappedEntity)
Build an appropriate Getter for the given property.
|
protected Setter |
buildPropertySetter(Property mappedProperty,
PersistentClass mappedEntity)
Build an appropriate Setter for the given property.
|
protected ProxyFactory |
buildProxyFactory(PersistentClass mappingInfo,
Getter idGetter,
Setter idSetter)
Build an appropriate ProxyFactory for the given mapped entity.
|
String |
determineConcreteSubclassEntityName(Object entityInstance,
SessionFactoryImplementor factory)
Given an entity instance, determine the most appropriate (most targeted) entity-name which represents it.
|
static String |
extractEmbeddedEntityName(Map entity) |
Class |
getConcreteProxyClass()
Returns the java class to which generated proxies will be typed.
|
EntityMode |
getEntityMode()
Return the entity-mode handled by this tuplizer instance.
|
EntityNameResolver[] |
getEntityNameResolvers()
Get any
EntityNameResolvers associated with this Tuplizer. |
Class |
getMappedClass()
Return the pojo class managed by this tuplizer.
|
afterInitialize, createProxy, getComponentValue, getEntityMetamodel, getEntityName, getFactory, getGetter, getIdentifier, getIdentifier, getIdentifierGetter, getIdentifierMapperType, getInstantiator, getPropertyValue, getPropertyValue, getPropertyValues, getPropertyValuesToInsert, getProxyFactory, getSubclassEntityNames, getVersion, getVersionGetter, hasProxy, instantiate, instantiate, instantiate, isInstance, isLifecycleImplementor, resetIdentifier, resetIdentifier, setIdentifier, setIdentifier, setPropertyValue, setPropertyValue, setPropertyValues, shouldGetAllProperties, toStringpublic EntityMode getEntityMode()
EntityTuplizerprotected Getter buildPropertyGetter(Property mappedProperty, PersistentClass mappedEntity)
AbstractEntityTuplizerbuildPropertyGetter in class AbstractEntityTuplizermappedProperty - The property to be accessed via the built Getter.mappedEntity - The entity information regarding the mapped entity owning this property.protected Setter buildPropertySetter(Property mappedProperty, PersistentClass mappedEntity)
AbstractEntityTuplizerbuildPropertySetter in class AbstractEntityTuplizermappedProperty - The property to be accessed via the built Setter.mappedEntity - The entity information regarding the mapped entity owning this property.protected Instantiator buildInstantiator(EntityMetamodel entityMetamodel, PersistentClass mappingInfo)
AbstractEntityTuplizerbuildInstantiator in class AbstractEntityTuplizermappingInfo - The mapping information regarding the mapped entity.protected ProxyFactory buildProxyFactory(PersistentClass mappingInfo, Getter idGetter, Setter idSetter)
AbstractEntityTuplizerbuildProxyFactory in class AbstractEntityTuplizermappingInfo - 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.public Class getMappedClass()
Tuplizerpublic Class getConcreteProxyClass()
EntityTuplizerPersistenceContext.narrowProxy(java.lang.Object, org.hibernate.persister.entity.EntityPersister, org.hibernate.engine.spi.EntityKey, java.lang.Object) here,
since that is the only external use of this methodpublic EntityNameResolver[] getEntityNameResolvers()
EntityTuplizerEntityNameResolvers associated with this Tuplizer.public String determineConcreteSubclassEntityName(Object entityInstance, SessionFactoryImplementor factory)
EntityTuplizerentityInstance - The entity instance.factory - Reference to the SessionFactory.Copyright © 2017 JBoss by Red Hat. All rights reserved.