org.hibernate.test.annotations.tuplizer
Class DynamicInstantiator
java.lang.Object
   org.hibernate.test.annotations.tuplizer.DynamicInstantiator
org.hibernate.test.annotations.tuplizer.DynamicInstantiator
- All Implemented Interfaces: 
- Serializable, Instantiator
- public class DynamicInstantiator 
- extends Object- implements Instantiator
- See Also:
- Serialized Form
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
DynamicInstantiator
public DynamicInstantiator(String entityName)
instantiate
public Object instantiate(Serializable id)
- Description copied from interface: Instantiator
- Perform the requested entity instantiation.
 
 This form is never called for component instantiation, only entity instantiation.
 
- 
- Specified by:
- instantiatein interface- Instantiator
 
- 
- Parameters:
- id- The id of the entity to be instantiated.
- Returns:
- An appropriately instantiated entity.
 
instantiate
public Object instantiate()
- Description copied from interface: Instantiator
- Perform the requested instantiation.
 
- 
- Specified by:
- instantiatein interface- Instantiator
 
- 
- Returns:
- The instantiated data structure.
 
isInstance
public boolean isInstance(Object object)
- Description copied from interface: Instantiator
- Performs check to see if the given object is an instance of the entity
 or component which this Instantiator instantiates.
 
- 
- Specified by:
- isInstancein interface- Instantiator
 
- 
- Parameters:
- object- The object to be checked.
- Returns:
- True is the object does represent an instance of the underlying
 entity/component.
 
Copyright © 2001-2012 Red Hat, Inc.  All Rights Reserved.