Interface Instantiator

All Superinterfaces:
Serializable
All Known Implementing Classes:
DynamicMapInstantiator, PojoInstantiator

@Deprecated(since="6.0") public interface Instantiator extends Serializable
Deprecated.
This contract is no longer used by Hibernate. Implement/use Instantiator instead. See ManagedTypeRepresentationStrategy
Contract for implementors responsible for instantiating entity/component instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Perform the requested instantiation.
    Deprecated.
    Perform the requested entity instantiation.
    boolean
    Deprecated.
    Performs check to see if the given object is an instance of the entity or component which this Instantiator instantiates.
  • Method Details

    • instantiate

      Object instantiate(Object id)
      Deprecated.
      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.
    • instantiate

      Object instantiate()
      Deprecated.
      Perform the requested instantiation.
      Returns:
      The instantiated data structure.
    • isInstance

      boolean isInstance(Object object)
      Deprecated.
      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.