Top Description Constructors Methods
org.hibernate.transform

public abstract Class BasicTransformerAdapter

extends Object
implements ResultTransformer
Class Inheritance
All Implemented Interfaces
org.hibernate.transform.ResultTransformer, java.io.Serializable
Known Direct Subclasses
org.hibernate.transform.DistinctResultTransformer, org.hibernate.transform.PassThroughResultTransformer, org.hibernate.transform.RootEntityResultTransformer, org.hibernate.transform.ToListResultTransformer, org.hibernate.hql.ast.tree.MapEntryNode.MapEntryBuilder, org.hibernate.transform.AliasToEntityMapResultTransformer
Imports
java.util.List

Provides the basic "noop" impls of the ResultTransformer contract.
Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<E>
transformList(List<E>
The result.
list
)

Implements org.hibernate.transform.ResultTransformer.transformList.

Here we have an opportunity to perform transformation on the query result as a whole.
public Object
transformTuple(Object[]
The result elements
tuple
,
String[]
The result aliases ("parallel" array to tuple)
aliases
)

Implements org.hibernate.transform.ResultTransformer.transformTuple.

Tuples are the elements making up each "row" of the query result.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BasicTransformerAdapterback to summary
public BasicTransformerAdapter()

Method Detail

transformListback to summary
public List<E> transformList(List<E> list)

Implements org.hibernate.transform.ResultTransformer.transformList.

Doc from org.hibernate.transform.ResultTransformer.transformList.

Here 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.

Parameters
list:List<E>

The result.

Returns:List<E>

The transformed result.

transformTupleback to summary
public Object transformTuple(Object[] tuple, String[] aliases)

Implements org.hibernate.transform.ResultTransformer.transformTuple.

Doc from org.hibernate.transform.ResultTransformer.transformTuple.

Tuples are the elements making up each "row" of the query result. The contract here is to transform these elements into the final row.

Parameters
tuple:Object[]

The result elements

aliases:String[]

The result aliases ("parallel" array to tuple)

Returns:Object

The transformed row.