Class ResultWrapper

java.lang.Object
org.postgresql.jdbc.ResultWrapper

public class ResultWrapper extends Object
Helper class that storing result info. This handles both the ResultSet and no-ResultSet result cases with a single interface for inspecting and stepping through them.
Author:
Oliver Jowett (oliver@opencloud.com)
  • Constructor Details

  • Method Details

    • getResultSet

      public ResultSet getResultSet()
    • getUpdateCount

      public long getUpdateCount()
    • getInsertOID

      public long getInsertOID()
    • getNext

      public ResultWrapper getNext()
    • append

      public ResultWrapper append(ResultWrapper newResult)
      Append a result to its internal chain of results. It has a special behavior for SET commands as SET is discarded if there are other results in the chain. If this is a SET command, the newResult is returned has the new head of the chain. If the newResult is a SET command, it's not appended and this is returned.
      Parameters:
      newResult - the result to append
      Returns:
      the head of the chain