Class ResultShapePacker


  • public class ResultShapePacker
    extends ResultPacker
    Packs result by delegation to a ResultShape.
    Author:
    Pinaki Poddar
    • Constructor Summary

      Constructors 
      Constructor Description
      ResultShapePacker​(java.lang.Class<?>[] types, java.lang.String[] aliases, java.lang.Class resultClass, ResultShape<?> shape)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object pack​(java.lang.Object o)
      Pack the given object into an instance of the query's result class.
      java.lang.Object pack​(java.lang.Object[] values)
      Pack the given array into an instance of the query's result class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResultShapePacker

        public ResultShapePacker​(java.lang.Class<?>[] types,
                                 java.lang.String[] aliases,
                                 java.lang.Class resultClass,
                                 ResultShape<?> shape)
    • Method Detail

      • pack

        public java.lang.Object pack​(java.lang.Object o)
        Description copied from class: ResultPacker
        Pack the given object into an instance of the query's result class.
        Overrides:
        pack in class ResultPacker
      • pack

        public java.lang.Object pack​(java.lang.Object[] values)
        Description copied from class: ResultPacker
        Pack the given array into an instance of the query's result class.
        Overrides:
        pack in class ResultPacker