public interface ResultTransformer extends Serializable
Criteria.setResultTransformer(ResultTransformer)
,
Query.setResultTransformer(ResultTransformer)
Modifier and Type | Method and Description |
---|---|
List |
transformList(List collection)
Here we have an opportunity to perform transformation on the
query result as a whole.
|
Object |
transformTuple(Object[] tuple,
String[] aliases)
Tuples are the elements making up each "row" of the query result.
|
Object transformTuple(Object[] tuple, String[] aliases)
tuple
- The result elementsaliases
- The result aliases ("parallel" array to tuple)List transformList(List collection)
collection
- The result.Copyright © 2019 JBoss by Red Hat. All rights reserved.