类 BasicTransformerAdapter
- java.lang.Object
-
- org.hibernate.transform.BasicTransformerAdapter
-
- 所有已实现的接口:
Serializable,ResultTransformer
- 直接已知子类:
AliasedTupleSubsetResultTransformer,CriteriaQueryTupleTransformer,DistinctResultTransformer,NativeQueryTupleTransformer,PassThroughResultTransformer,RootEntityResultTransformer,ToListResultTransformer,TupleBuilderTransformer
public abstract class BasicTransformerAdapter extends Object implements ResultTransformer
Provides the basic "noop" impls of theResultTransformercontract.- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 BasicTransformerAdapter()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ListtransformList(List list)Here we have an opportunity to perform transformation on the query result as a whole.ObjecttransformTuple(Object[] tuple, String[] aliases)Tuples are the elements making up each "row" of the query result.
-
-
-
方法详细资料
-
transformTuple
public Object transformTuple(Object[] tuple, String[] aliases)
从接口复制的说明:ResultTransformerTuples are the elements making up each "row" of the query result. The contract here is to transform these elements into the final row.- 指定者:
transformTuple在接口中ResultTransformer- 参数:
tuple- The result elementsaliases- The result aliases ("parallel" array to tuple)- 返回:
- The transformed row.
-
transformList
public List transformList(List list)
从接口复制的说明: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- 参数:
list- The result.- 返回:
- The transformed result.
-
-