org.hibernate.tuple
Interface Instantiator
- Serializable
- Dom4jInstantiator, DynamicMapInstantiator, PojoInstantiator
public interface Instantiator
extends Serializable
Contract for implementors responsible for instantiating entity/component instances.
Object | instantiate() - Perform the requested instantiation.
|
Object | instantiate(Serializable id) - Perform the requested entity instantiation.
|
boolean | isInstance(Object object) - Performs check to see if the given object is an instance of the entity
or component which this Instantiator instantiates.
|
instantiate
public Object instantiate()
Perform the requested instantiation.
- The instantiated data structure.
instantiate
public Object instantiate(Serializable id)
Perform the requested entity instantiation.
This form is never called for component instantiation, only entity instantiation.
id
- The id of the entity to be instantiated.
- An appropriately instantiated entity.
isInstance
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.
object
- The object to be checked.
- True is the object does respresent an instance of the underlying
entity/component.