Package org.mariadb.r2dbc.message.server
Class OkPacket
- java.lang.Object
-
- org.mariadb.r2dbc.message.server.OkPacket
-
- All Implemented Interfaces:
io.r2dbc.spi.Result.Segment,io.r2dbc.spi.Result.UpdateCount,ServerMessage
public class OkPacket extends Object implements ServerMessage, io.r2dbc.spi.Result.UpdateCount
-
-
Field Summary
Fields Modifier and Type Field Description static byteTYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OkPacketdecode(Sequencer sequencer, io.netty.buffer.ByteBuf buf, Context context)booleanending()longgetLastInsertId()shortgetServerStatus()shortgetWarningCount()booleanresultSetEnd()StringtoString()longvalue()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.mariadb.r2dbc.message.ServerMessage
refCnt, release
-
-
-
-
Field Detail
-
TYPE
public static final byte TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OkPacket
public OkPacket(Sequencer sequencer, long affectedRows, long lastInsertId, short serverStatus, short warningCount, boolean ending)
-
-
Method Detail
-
decode
public static OkPacket decode(Sequencer sequencer, io.netty.buffer.ByteBuf buf, Context context)
-
getLastInsertId
public long getLastInsertId()
-
getServerStatus
public short getServerStatus()
-
getWarningCount
public short getWarningCount()
-
ending
public boolean ending()
- Specified by:
endingin interfaceServerMessage
-
resultSetEnd
public boolean resultSetEnd()
- Specified by:
resultSetEndin interfaceServerMessage
-
value
public long value()
- Specified by:
valuein interfaceio.r2dbc.spi.Result.UpdateCount
-
-