Top Description Fields Constructors Methods
org.hibernate.transform

public Class AliasToEntityMapResultTransformer

extends Object
implements ResultTransformer<Map<String, Object>>, TypedTupleTransformer<Map<String, Object>>
Class Inheritance
All Implemented Interfaces
org.hibernate.query.TypedTupleTransformer, org.hibernate.query.TupleTransformer, org.hibernate.transform.ResultTransformer, java.io.Serializable, org.hibernate.query.ResultListTransformer
Annotations
@Deprecated
Imports
java.util.Map, org.hibernate.internal.util.collections.CollectionHelper, org.hibernate.query.TypedTupleTransformer

Deprecated

since ResultTransformer is deprecated

ResultTransformer implementation which builds a map for each "row", made up of each aliased value where the alias is the map key.
Authors
Gavin King, Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final AliasToEntityMapResultTransformer
INSTANCE

Deprecated as a consequence of AliasToEntityMapResultTransformer being deprecated.

Constructor Summary

AccessConstructor and Description
private
AliasToEntityMapResultTransformer()

Disallow instantiation of AliasToEntityMapResultTransformer.

Method Summary

Modifier and TypeMethod and Description
public Class<T>
getTransformedType()

Implements org.hibernate.query.TypedTupleTransformer.getTransformedType.

The type resulting from this transformation
private Object

Returns:

The singleton instance : INSTANCE
readResolve
()

Serialization hook for ensuring singleton uniqueing.

public Map<String, Object>
transformTuple(Object[]
The result elements
tuple
,
String[]
The result aliases ("parallel" array to tuple)
aliases
)

Implements org.hibernate.query.TupleTransformer.transformTuple.

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

Field Detail

INSTANCEback to summary
public static final AliasToEntityMapResultTransformer INSTANCE

Deprecated

as a consequence of AliasToEntityMapResultTransformer being deprecated. See corresponding docs for further information.

Constructor Detail

AliasToEntityMapResultTransformerback to summary
private AliasToEntityMapResultTransformer()

Disallow instantiation of AliasToEntityMapResultTransformer.

Method Detail

getTransformedTypeback to summary
public Class<T> getTransformedType()

Implements org.hibernate.query.TypedTupleTransformer.getTransformedType.

Doc from org.hibernate.query.TypedTupleTransformer.getTransformedType.

The type resulting from this transformation

Annotations
@SuppressWarnings:rawtypes, unchecked
@Override
readResolveback to summary
private Object readResolve()

Serialization hook for ensuring singleton uniqueing.

Returns:Object

The singleton instance : INSTANCE

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

Implements org.hibernate.query.TupleTransformer.transformTuple.

Doc from org.hibernate.query.TupleTransformer.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 shape.

Parameters
tuple:Object[]

The result elements

aliases:String[]

The result aliases ("parallel" array to tuple)

Returns:Map<String, Object>

The transformed row.

Annotations
@Override