EntityTuplizer specific to the dynamic-map entity mode.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final Logger |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected Instantiator | buildInstantiator(PersistentClass
The mapping information regarding the mapped entity. mappingInfo)Implements abstract org. |
| private PropertyAccessor | |
| 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. mappingInfo, 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. |
| public String | determineConcreteSubclassEntityName(Object
The entity instance. entityInstance, SessionFactoryImplementor Reference to the SessionFactory. factory)Implements org. |
| public static String | |
| 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 boolean | isInstrumented()
Implements org. |
| log | back to summary |
|---|---|
| pack-priv static final Logger log Hides org. | |
| DynamicMapEntityTuplizer | back to summary |
|---|---|
| pack-priv DynamicMapEntityTuplizer(EntityMetamodel entityMetamodel, PersistentClass mappedEntity) | |
| buildInstantiator | back to summary |
|---|---|
| protected Instantiator buildInstantiator(PersistentClass mappingInfo) Implements abstract org. Doc from org. Build an appropriate Instantiator for the given mapped entity.
| |
| buildPropertyAccessor | back to summary |
|---|---|
| private PropertyAccessor buildPropertyAccessor(Property mappedProperty) | |
| 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 mappingInfo, Getter idGetter, Setter idSetter) Implements abstract org. Doc from org. Build an appropriate ProxyFactory for the given mapped entity.
| |
| 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).
| |
| extractEmbeddedEntityName | back to summary |
|---|---|
| public static String extractEmbeddedEntityName(Map<K, V> entity) | |
| 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...
| |
| isInstrumented | back to summary |
|---|---|
| public boolean isInstrumented() Implements org. Doc from org. Is it an instrumented POJO? | |
| Modifier and Type | Field and Description |
|---|---|
| public static final DynamicMapEntityTuplizer. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public int | |
| public String | resolveEntityName(Object
The entity instance. entity)Implements org. |
| INSTANCE | back to summary |
|---|---|
| public static final DynamicMapEntityTuplizer. | |
| BasicEntityNameResolver | back to summary |
|---|---|
| public BasicEntityNameResolver() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| resolveEntityName | back to summary |
|---|---|
| public String resolveEntityName(Object entity) Implements org. Doc from org. Given an entity instance, determine its entity-name. | |