public final class DoneToken extends AbstractDoneToken
| Modifier and Type | Field and Description |
|---|---|
static byte |
TYPE |
LENGTH| Modifier and Type | Method and Description |
|---|---|
static DoneToken |
count(long rowCount)
Creates a new
DoneToken with just a rowCount. |
static DoneToken |
create(long rowCount)
Creates a new
DoneToken indicating a final packet and rowCount. |
static DoneToken |
decode(io.netty.buffer.ByteBuf buffer)
Decode the
DoneToken response from a ByteBuf. |
String |
getName() |
static boolean |
isDone(io.r2dbc.mssql.message.Message message)
Check whether the the
Message represents a finished DoneToken. |
static DoneToken |
more(long rowCount)
Creates a new
DoneToken with just a rowCount. |
canDecode, encode, equals, getCurrentCommand, getRowCount, getStatus, hasCount, hasCount, hashCode, hasMore, isAttentionAck, isAttentionAck, isDone, isError, toString, valuegetTypepublic static final byte TYPE
public static DoneToken create(long rowCount)
DoneToken indicating a final packet and rowCount.rowCount - the row count.DoneToken.AbstractDoneToken.isDone(),
AbstractDoneToken.getRowCount(),
AbstractDoneToken.hasCount()public static DoneToken count(long rowCount)
DoneToken with just a rowCount.rowCount - the row count.DoneToken.AbstractDoneToken.getRowCount(),
AbstractDoneToken.hasCount()public static DoneToken more(long rowCount)
DoneToken with just a rowCount.rowCount - the row count.DoneToken.AbstractDoneToken.getRowCount(),
AbstractDoneToken.hasCount()public static boolean isDone(io.r2dbc.mssql.message.Message message)
Message represents a finished DoneToken.message - the message to inspect.Message represents a finished DoneToken.public static DoneToken decode(io.netty.buffer.ByteBuf buffer)
DoneToken response from a ByteBuf.buffer - must not be null.DoneToken.public String getName()
getName in interface DataTokengetName in class AbstractDataTokenAbstractDataToken.Copyright © 2023. All rights reserved.