public interface

Instantiator

implements Serializable
org.hibernate.tuple.Instantiator
Known Indirect Subclasses

Class Overview

Contract for implementors responsible for instantiating entity/component instances.

Summary

Public Methods
abstract Object instantiate()
Perform the requested instantiation.
abstract Object instantiate(Serializable id)
Perform the requested entity instantiation.
abstract boolean isInstance(Object object)
Performs check to see if the given object is an instance of the entity or component which this Instantiator instantiates.

Public Methods

public abstract Object instantiate ()

Perform the requested instantiation.

Returns
  • The instantiated data structure.

public abstract Object instantiate (Serializable id)

Perform the requested entity instantiation.

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

Parameters
id The id of the entity to be instantiated.
Returns
  • An appropriately instantiated entity.

public abstract 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 The object to be checked.
Returns
  • True is the object does represent an instance of the underlying entity/component.