Interface Outputs

  • All Known Subinterfaces:
    ProcedureOutputs
    All Known Implementing Classes:
    OutputsImpl, ProcedureOutputsImpl

    public interface Outputs
    Represents the outputs of executing a JDBC statement accounting for mixing of result sets and update counts hiding the complexity of how this is exposed in the JDBC API.

    The outputs are exposed as a group of Output objects, each representing a single result set or update count. Conceptually, Result presents those Returns as an iterator.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Output getCurrent()
      Retrieve the current Output object.
      boolean goToNext()
      Go to the next Output object (if any), returning an indication of whether there was another (aka, will the next call to getCurrent() return null?
      void release()
      Eagerly release any resources held by this Outputs.
    • Method Detail

      • getCurrent

        Output getCurrent()
        Retrieve the current Output object.
        Returns:
        The current Output object. Can be null
      • goToNext

        boolean goToNext()
        Go to the next Output object (if any), returning an indication of whether there was another (aka, will the next call to getCurrent() return null?
        Returns:
        true if the next call to getCurrent() will return a non-null value.
      • release

        void release()
        Eagerly release any resources held by this Outputs.