Top Description Methods
org.hibernate.tuple

public Interface Instantiator

extends Serializable
Known Direct Implementers
org.hibernate.tuple.PojoInstantiator, org.hibernate.tuple.DynamicMapInstantiator
Annotations
@Deprecated
since:6.0
Imports
java.io.Serializable, org.hibernate.metamodel.spi.ManagedTypeRepresentationStrategy

Deprecated

since 6.0.

This contract is no longer used by Hibernate. Implement/use org.hibernate.metamodel.spi.Instantiator instead. See ManagedTypeRepresentationStrategy

Contract for implementors responsible for instantiating entity/component instances.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

An appropriately instantiated entity.
instantiate
(Object
The id of the entity to be instantiated.
id
)

Perform the requested entity instantiation.

public Object

Returns:

The instantiated data structure.
instantiate
()

Perform the requested instantiation.

public boolean

Returns:

True is the object does represent an instance of the underlying entity/component.
isInstance
(Object
The object to be checked.
object
)

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

Method Detail

instantiateback to summary
public Object instantiate(Object id)

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 Object instantiate()

Perform the requested instantiation.

Returns:Object

The instantiated data structure.

isInstanceback to summary
public boolean isInstance(Object object)

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.