Class QueryImpl.PackingResultObjectProvider

  • All Implemented Interfaces:
    org.apache.openjpa.lib.rop.ResultObjectProvider, org.apache.openjpa.lib.util.Closeable
    Enclosing class:
    QueryImpl

    public static class QueryImpl.PackingResultObjectProvider
    extends java.lang.Object
    implements org.apache.openjpa.lib.rop.ResultObjectProvider
    Result object provider that packs results before returning them.
    • Constructor Detail

      • PackingResultObjectProvider

        public PackingResultObjectProvider​(org.apache.openjpa.lib.rop.ResultObjectProvider delegate,
                                           ResultPacker packer,
                                           int resultLength)
    • Method Detail

      • supportsRandomAccess

        public boolean supportsRandomAccess()
        Specified by:
        supportsRandomAccess in interface org.apache.openjpa.lib.rop.ResultObjectProvider
      • open

        public void open()
                  throws java.lang.Exception
        Specified by:
        open in interface org.apache.openjpa.lib.rop.ResultObjectProvider
        Throws:
        java.lang.Exception
      • getResultObject

        public java.lang.Object getResultObject()
                                         throws java.lang.Exception
        Specified by:
        getResultObject in interface org.apache.openjpa.lib.rop.ResultObjectProvider
        Throws:
        java.lang.Exception
      • next

        public boolean next()
                     throws java.lang.Exception
        Specified by:
        next in interface org.apache.openjpa.lib.rop.ResultObjectProvider
        Throws:
        java.lang.Exception
      • absolute

        public boolean absolute​(int pos)
                         throws java.lang.Exception
        Specified by:
        absolute in interface org.apache.openjpa.lib.rop.ResultObjectProvider
        Throws:
        java.lang.Exception
      • size

        public int size()
                 throws java.lang.Exception
        Specified by:
        size in interface org.apache.openjpa.lib.rop.ResultObjectProvider
        Throws:
        java.lang.Exception
      • reset

        public void reset()
                   throws java.lang.Exception
        Specified by:
        reset in interface org.apache.openjpa.lib.rop.ResultObjectProvider
        Throws:
        java.lang.Exception
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface org.apache.openjpa.lib.util.Closeable
        Specified by:
        close in interface org.apache.openjpa.lib.rop.ResultObjectProvider
        Throws:
        java.lang.Exception
      • handleCheckedException

        public void handleCheckedException​(java.lang.Exception e)
        Specified by:
        handleCheckedException in interface org.apache.openjpa.lib.rop.ResultObjectProvider
      • getDelegate

        public org.apache.openjpa.lib.rop.ResultObjectProvider getDelegate()