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

All Implemented Interfaces:
    Serializable, ResultTransformer

ResultTransformer implementation which builds a map for each "row", made up of each aliased value where the alias is the map key.

Since this transformer is stateless, all instances would be considered equal. So for optimization purposes we limit it to a single, singleton instance (this is not quite true yet, see deprecation notice on constructor ).

Field Summary
public static final  AliasToEntityMapResultTransformer INSTANCE     
Constructor:
 public AliasToEntityMapResultTransformer() 
    Method from org.hibernate.transform.AliasToEntityMapResultTransformer 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.AliasToEntityMapResultTransformer Detail:
     public boolean equals(Object other) 
      All AliasToEntityMapResultTransformer are considered equal
     public int hashCode() 
      All AliasToEntityMapResultTransformer are considered equal
     public Object transformTuple(Object[] tuple,
        String[] aliases) 
      {@inheritDoc}