Package org.mariadb.jdbc.message.server
Class OkPacket
java.lang.Object
org.mariadb.jdbc.message.server.OkPacket
- All Implemented Interfaces:
Completion
,ServerMessage
Ok packet parser see https://mariadb.com/kb/en/ok_packet/
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
OkPacket
(long affectedRows, long lastInsertId, byte[] info) -
Method Summary
Modifier and TypeMethodDescriptionlong
get affected rowsbyte[]
getInfo()
long
Get last auto generated insert idstatic OkPacket
parse
(ReadableByteBuf buf, Context context) Parserstatic OkPacket
parseWithInfo
(ReadableByteBuf buf, Context context) Parser
-
Field Details
-
BASIC_OK
-
logger
-
affectedRows
private final long affectedRows -
lastInsertId
private final long lastInsertId -
info
private final byte[] info
-
-
Constructor Details
-
OkPacket
private OkPacket(long affectedRows, long lastInsertId, byte[] info)
-
-
Method Details
-
parse
Parser- Parameters:
buf
- packet buffercontext
- connection context
-
parseWithInfo
Parser- Parameters:
buf
- packet buffercontext
- 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()
-