Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » transform » [javadoc | source]
org.hibernate.transform
public final class: RootEntityResultTransformer [javadoc | source]
java.lang.Object
   org.hibernate.transform.BasicTransformerAdapter
      org.hibernate.transform.RootEntityResultTransformer

All Implemented Interfaces:
    Serializable, ResultTransformer

ResultTransformer implementation which limits the result tuple to only the "root entity".

Since this transformer is stateless, all instances would be considered equal. So for optimization purposes we limit it to a single, singleton instance .

Field Summary
public static final  RootEntityResultTransformer INSTANCE     
Constructor:
 public RootEntityResultTransformer() 
    Method from org.hibernate.transform.RootEntityResultTransformer Summary:
    equals,   hashCode,   transformTuple
    Methods from org.hibernate.transform.BasicTransformerAdapter:
    transformList,   transformTuple
    Methods from java.lang.Object:
    equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
    Method from org.hibernate.transform.RootEntityResultTransformer Detail:
     public boolean equals(Object other) 
     public int hashCode() 
     public Object transformTuple(Object[] tuple,
        String[] aliases) 
      Return just the root entity from the row tuple.