Top Description Methods
org.hibernate.tuple

public Interface Instantiator

extends Serializable
Known Direct Implementers
org.hibernate.tuple.PojoInstantiator, org.hibernate.tuple.component.PojoComponentTuplizer.ProxiedInstantiator, org.hibernate.tuple.Dom4jInstantiator, org.hibernate.tuple.DynamicMapInstantiator
Imports
java.io.Serializable

Contract for implementors responsible for instantiating entity/component instances.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

An appropriately instantiated entity.
instantiate
(Serializable
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(Serializable id)

Perform the requested entity instantiation.

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

Parameters
id:Serializable

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.