Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate.test.dynamicentity.tuplizer
Class MyEntityInstantiator  view MyEntityInstantiator download MyEntityInstantiator.java

java.lang.Object
  extended byorg.hibernate.test.dynamicentity.tuplizer.MyEntityInstantiator
All Implemented Interfaces:
org.hibernate.tuple.Instantiator, java.io.Serializable

public class MyEntityInstantiator
extends java.lang.Object
implements org.hibernate.tuple.Instantiator


Field Summary
private  java.lang.String entityName
           
 
Constructor Summary
MyEntityInstantiator(java.lang.String entityName)
           
 
Method Summary
 java.lang.Object instantiate()
          Perform the requested instantiation.
 java.lang.Object instantiate(java.io.Serializable id)
          Perform the requested entity instantiation.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entityName

private final java.lang.String entityName
Constructor Detail

MyEntityInstantiator

public MyEntityInstantiator(java.lang.String entityName)
Method Detail

instantiate

public java.lang.Object instantiate(java.io.Serializable id)
Description copied from interface: org.hibernate.tuple.Instantiator
Perform the requested entity instantiation.

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

Specified by:
instantiate in interface org.hibernate.tuple.Instantiator

instantiate

public java.lang.Object instantiate()
Description copied from interface: org.hibernate.tuple.Instantiator
Perform the requested instantiation.

Specified by:
instantiate in interface org.hibernate.tuple.Instantiator

isInstance

public boolean isInstance(java.lang.Object object)
Description copied from interface: org.hibernate.tuple.Instantiator
Performs check to see if the given object is an instance of the entity or component which this Instantiator instantiates.

Specified by:
isInstance in interface org.hibernate.tuple.Instantiator