Class AliasProjectionResultTransformer

  • All Implemented Interfaces:
    java.io.Serializable, org.hibernate.transform.ResultTransformer, org.hibernate.transform.TupleSubsetResultTransformer

    public class AliasProjectionResultTransformer
    extends org.hibernate.transform.AliasedTupleSubsetResultTransformer
    ResultTransformer implementation which builds a map for each "row", removes any aggregate suffixes for "_sum", "
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isTransformedValueATupleElement​(java.lang.String[] aliases, int tupleLength)  
      java.lang.Object transformTuple​(java.lang.Object[] tuple, java.lang.String[] aliases)
      removes evrything after the last _ thats in the projectionList
      • Methods inherited from class org.hibernate.transform.AliasedTupleSubsetResultTransformer

        includeInTransform
      • Methods inherited from class org.hibernate.transform.BasicTransformerAdapter

        transformList
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.hibernate.transform.ResultTransformer

        transformList
    • Constructor Detail

      • AliasProjectionResultTransformer

        public AliasProjectionResultTransformer()
        Disallow instantiation of AliasToEntityMapResultTransformer.
      • AliasProjectionResultTransformer

        public AliasProjectionResultTransformer​(java.util.List<java.lang.String> aliasesToTrimSuffix)
        Disallow instantiation of AliasToEntityMapResultTransformer.
    • Method Detail

      • transformTuple

        public java.lang.Object transformTuple​(java.lang.Object[] tuple,
                                               java.lang.String[] aliases)
        removes evrything after the last _ thats in the projectionList
        Specified by:
        transformTuple in interface org.hibernate.transform.ResultTransformer
        Overrides:
        transformTuple in class org.hibernate.transform.BasicTransformerAdapter
        Parameters:
        tuple - The result elements
        aliases - The result aliases ("parallel" array to tuple)
        Returns:
        the map
      • isTransformedValueATupleElement

        public boolean isTransformedValueATupleElement​(java.lang.String[] aliases,
                                                       int tupleLength)