public final class RootEntityResultTransformer extends BasicTransformerAdapter implements Serializable
ResultTransformer
implementation which limits the result tuple
to only the "root entity".
Since this transformer is stateless, all instances would be considered equal.
So for optimization purposes we limit it to a single, singleton instance
.Modifier and Type | Field and Description |
---|---|
static RootEntityResultTransformer |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
Object |
transformTuple(Object[] tuple,
String[] aliases)
Return just the root entity from the row tuple.
|
transformList
public static final RootEntityResultTransformer INSTANCE
public Object transformTuple(Object[] tuple, String[] aliases)
transformTuple
in interface ResultTransformer
transformTuple
in class BasicTransformerAdapter
tuple
- The result elementsaliases
- The result aliases ("parallel" array to tuple)Copyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved