Class OkPacket

java.lang.Object
org.mariadb.jdbc.message.server.OkPacket
All Implemented Interfaces:
Completion, ServerMessage

public class OkPacket extends Object implements Completion
Ok packet parser see https://mariadb.com/kb/en/ok_packet/
  • Method Details

    • parse

      public static OkPacket parse(ReadableByteBuf buf, Context context)
      Parser
      Parameters:
      buf - packet buffer
      context - connection context
    • parseWithInfo

      public static OkPacket parseWithInfo(ReadableByteBuf buf, Context context)
      Parser
      Parameters:
      buf - packet buffer
      context - connection context
    • getAffectedRows

      public long getAffectedRows()
      get affected rows
      Returns:
      affected rows
    • getLastInsertId

      public long getLastInsertId()
      Get last auto generated insert id
      Returns:
      last insert id
    • getInfo

      public byte[] getInfo()