FileDocCategorySizeDatePackage
AliasToEntityMapResultTransformer.javaAPI DocHibernate 3.2.5653Fri Mar 17 04:25:06 GMT 2006org.hibernate.transform

AliasToEntityMapResultTransformer

public class AliasToEntityMapResultTransformer extends Object implements ResultTransformer
author
Gavin King

Fields Summary
Constructors Summary
Methods Summary
public java.util.ListtransformList(java.util.List collection)

		return collection;
	
public java.lang.ObjecttransformTuple(java.lang.Object[] tuple, java.lang.String[] aliases)

		Map result = new HashMap(tuple.length);
		for ( int i=0; i<tuple.length; i++ ) {
			String alias = aliases[i];
			if ( alias!=null ) {
				result.put( alias, tuple[i] );
			}
		}
		return result;