FileDocCategorySizeDatePackage
AliasToBeanConstructorResultTransformer.javaAPI DocHibernate 3.2.5755Thu Mar 16 07:26:38 GMT 2006org.hibernate.transform

AliasToBeanConstructorResultTransformer

public class AliasToBeanConstructorResultTransformer extends Object implements ResultTransformer

Fields Summary
private Constructor
constructor
Constructors Summary
public AliasToBeanConstructorResultTransformer(Constructor constructor)

		this.constructor = constructor;
	
Methods Summary
public java.util.ListtransformList(java.util.List collection)

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

		try {
			return constructor.newInstance( tuple );
		}
		catch ( Exception e ) {
			throw new QueryException( 
					"could not instantiate: " + 
					constructor.getDeclaringClass().getName(), 
					e );
		}