Class OkPacket

  • All Implemented Interfaces:
    org.mariadb.jdbc.client.Completion, org.mariadb.jdbc.message.ServerMessage

    public class OkPacket
    extends Object
    implements org.mariadb.jdbc.client.Completion
    Ok packet parser see https://mariadb.com/kb/en/ok_packet/
    • Constructor Detail

      • OkPacket

        public OkPacket​(org.mariadb.jdbc.client.ReadableByteBuf buf,
                        org.mariadb.jdbc.client.Context context)
        Parser
        Parameters:
        buf - packet buffer
        context - connection context
    • Method Detail

      • getAffectedRows

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

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