Class CommandCompleteParser


  • public final class CommandCompleteParser
    extends Object
    Parses oid and rows from a CommandComplete (B) message (end of Execute).
    • Constructor Detail

      • CommandCompleteParser

        public CommandCompleteParser()
    • Method Detail

      • getOid

        public long getOid()
      • getRows

        public long getRows()
      • parse

        public void parse​(String status)
                   throws PSQLException
        Parses CommandComplete (B) message. Status is in the format of "COMMAND OID ROWS" where both 'OID' and 'ROWS' are optional and COMMAND can have spaces within it, like CREATE TABLE.
        Parameters:
        status - COMMAND OID ROWS message
        Throws:
        PSQLException - in case the status cannot be parsed
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object