Class ResultWrapper


  • public class ResultWrapper
    extends java.lang.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 Detail

      • ResultWrapper

        public ResultWrapper​(java.sql.ResultSet rs,
                             SqlCommandType commandType)
      • ResultWrapper

        public ResultWrapper​(long updateCount,
                             long insertOID,
                             SqlCommandType commandType)
    • Method Detail

      • getResultSet

        public java.sql.ResultSet getResultSet()
      • getUpdateCount

        public long getUpdateCount()
      • getInsertOID

        public long getInsertOID()
      • 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