Class SelectResultObjectProvider

    • Field Detail

    • Constructor Detail

      • SelectResultObjectProvider

        public SelectResultObjectProvider​(SelectExecutor sel,
                                          JDBCStore store,
                                          JDBCFetchConfiguration fetch)
        Constructor.
        Parameters:
        sel - the select to execute
        store - the store to delegate loading to
        fetch - the fetch configuration, or null for the default
    • Method Detail

      • getResult

        public Result getResult()
      • next

        public boolean next()
                     throws java.sql.SQLException
        Description copied from interface: ResultObjectProvider
        Advance the input to the next position. Return true if there is more data; otherwise false.
        Specified by:
        next in interface ResultObjectProvider
        Throws:
        java.sql.SQLException
      • absolute

        public boolean absolute​(int pos)
                         throws java.sql.SQLException
        Description copied from interface: ResultObjectProvider
        Move to the given 0-based position. This method is only called for providers that support random access. Return true if there is data at this position; otherwise false. This may be invoked in place of ResultObjectProvider.next().
        Specified by:
        absolute in interface ResultObjectProvider
        Throws:
        java.sql.SQLException
      • size

        public int size()
                 throws java.sql.SQLException
        Description copied from interface: ResultObjectProvider
        Return the number of items in the input, or Integer.MAX_VALUE if the size in unknown.
        Specified by:
        size in interface ResultObjectProvider
        Throws:
        java.sql.SQLException
      • setSize

        protected void setSize​(int size)
        Allow subclasses that know the size to set it; otherwise we calculate it internally.
      • reset

        public void reset()
                   throws java.sql.SQLException
        Description copied from interface: ResultObjectProvider
        Reset this provider. This is an optional operation. If supported, it should move the position of the provider to before the first element. Non-random-access providers may be able to support this method by re-acquiring all resources as if the result were just opened.
        Specified by:
        reset in interface ResultObjectProvider
        Throws:
        java.sql.SQLException
      • handleCheckedException

        public void handleCheckedException​(java.lang.Exception e)
        Description copied from interface: ResultObjectProvider
        Any checked exceptions that are thrown will be passed to this method. The provider should re-throw the exception as an appropriate unchecked exception.
        Specified by:
        handleCheckedException in interface ResultObjectProvider