类 AliasToBeanConstructorResultTransformer
- java.lang.Object
-
- org.hibernate.transform.AliasToBeanConstructorResultTransformer
-
- 所有已实现的接口:
Serializable,ResultTransformer
public class AliasToBeanConstructorResultTransformer extends Object implements ResultTransformer
Wraps the tuples in a constructor call. todo : why Alias* in the name???- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 AliasToBeanConstructorResultTransformer(Constructor constructor)Instantiates a AliasToBeanConstructorResultTransformer.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanequals(Object other)2 AliasToBeanConstructorResultTransformer are considered equal if they have the same defined constructor.inthashCode()Define our hashCode by our defined constructor's hasCode.ListtransformList(List collection)Here we have an opportunity to perform transformation on the query result as a whole.ObjecttransformTuple(Object[] tuple, String[] aliases)Wrap the incoming tuples in a call to our configured constructor.
-
-
-
构造器详细资料
-
AliasToBeanConstructorResultTransformer
public AliasToBeanConstructorResultTransformer(Constructor constructor)
Instantiates a AliasToBeanConstructorResultTransformer.- 参数:
constructor- The constructor in which to wrap the tuples.
-
-
方法详细资料
-
transformTuple
public Object transformTuple(Object[] tuple, String[] aliases)
Wrap the incoming tuples in a call to our configured constructor.- 指定者:
transformTuple在接口中ResultTransformer- 参数:
tuple- The result elementsaliases- The result aliases ("parallel" array to tuple)- 返回:
- The transformed row.
-
transformList
public List transformList(List collection)
从接口复制的说明:ResultTransformerHere we have an opportunity to perform transformation on the query result as a whole. This might be useful to convert from one collection type to another or to remove duplicates from the result, etc.- 指定者:
transformList在接口中ResultTransformer- 参数:
collection- The result.- 返回:
- The transformed result.
-
hashCode
public int hashCode()
Define our hashCode by our defined constructor's hasCode.
-
-