Package org.hibernate.tuple
Interface Instantiator
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
DynamicMapInstantiator,PojoEntityInstantiator,PojoInstantiator
public interface Instantiator extends java.io.SerializableContract for implementors responsible for instantiating entity/component instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectinstantiate()Perform the requested instantiation.java.lang.Objectinstantiate(java.io.Serializable id)Perform the requested entity instantiation.booleanisInstance(java.lang.Object object)Performs check to see if the given object is an instance of the entity or component which this Instantiator instantiates.
-
-
-
Method Detail
-
instantiate
java.lang.Object instantiate(java.io.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.
-
instantiate
java.lang.Object instantiate()
Perform the requested instantiation.- Returns:
- The instantiated data structure.
-
isInstance
boolean isInstance(java.lang.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.
-
-