Top Description Fields Constructors Methods
org.hibernate.tuple

public Class DynamicMapInstantiator

extends Object
implements Instantiator
Class Inheritance
All Implemented Interfaces
org.hibernate.tuple.Instantiator, java.io.Serializable
Annotations
@Deprecated
since:6.2
Imports
java.util.HashMap, .HashSet, .Map, .Set, org.hibernate.mapping.PersistentClass

Deprecated

since 6.2.

since Instantiator is deprecated

Instantiator for entities represented as Maps.

Field Summary

Modifier and TypeField and Description
private final Set<String>
public static final String
private final String

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
protected Map<K, V>
public final Object
instantiate(Object
The id of the entity to be instantiated.
id
)

Implements org.hibernate.tuple.Instantiator.instantiate.

Perform the requested entity instantiation.
public final Object
instantiate()

Implements org.hibernate.tuple.Instantiator.instantiate.

Perform the requested instantiation.
public final boolean
isInstance(Object
The object to be checked.
object
)

Implements org.hibernate.tuple.Instantiator.isInstance.

Performs check to see if the given object is an instance of the entity or component which this Instantiator instantiates.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

isInstanceEntityNamesback to summary
private final Set<String> isInstanceEntityNames
KEYback to summary
public static final String KEY
roleNameback to summary
private final String roleName

Constructor Detail

DynamicMapInstantiatorback to summary
public DynamicMapInstantiator()
DynamicMapInstantiatorback to summary
public DynamicMapInstantiator(PersistentClass mappingInfo)

Method Detail

generateMapback to summary
protected Map<K, V> generateMap()
instantiateback to summary
public final Object instantiate(Object id)

Implements org.hibernate.tuple.Instantiator.instantiate.

Doc from org.hibernate.tuple.Instantiator.instantiate.

Perform the requested entity instantiation.

This form is never called for component instantiation, only entity instantiation.

Parameters
id:Object

The id of the entity to be instantiated.

Returns:Object

An appropriately instantiated entity.

instantiateback to summary
public final Object instantiate()

Implements org.hibernate.tuple.Instantiator.instantiate.

Doc from org.hibernate.tuple.Instantiator.instantiate.

Perform the requested instantiation.

Returns:Object

The instantiated data structure.

isInstanceback to summary
public final boolean isInstance(Object object)

Implements org.hibernate.tuple.Instantiator.isInstance.

Doc from org.hibernate.tuple.Instantiator.isInstance.

Performs check to see if the given object is an instance of the entity or component which this Instantiator instantiates.

Parameters
object:Object

The object to be checked.

Returns:boolean

True is the object does represent an instance of the underlying entity/component.