Class ResultLoader


  • public class ResultLoader
    extends java.lang.Object
    Loader to be iterated to load all results from database.
    Author:
    luis f. canals
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int currPartialResultIdx  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Closes internal statement.
      java.lang.RuntimeException handle​(java.lang.Exception e)
      Handles an error, and returns an exception that the caller should then throw.
      boolean loadResult()  
      • Methods inherited from class java.lang.Object

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

      • currPartialResultIdx

        int currPartialResultIdx
    • Constructor Detail

      • ResultLoader

        public ResultLoader​(int enumTargetCount,
                            java.util.List<TargetBase> targets,
                            SqlStatement stmt,
                            boolean execQuery,
                            TupleList partialResult,
                            java.util.List<java.util.List<RolapMember>> newPartialResult)
                     throws java.sql.SQLException
        Throws:
        java.sql.SQLException
    • Method Detail

      • loadResult

        public boolean loadResult()
                           throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • close

        public void close()
        Closes internal statement.
      • handle

        public java.lang.RuntimeException handle​(java.lang.Exception e)
        Handles an error, and returns an exception that the caller should then throw.
        Parameters:
        e - Exception
        Returns:
        Wrapper exception