| Modifier and Type | Field and Description |
|---|---|
static byte |
TYPE |
| Constructor and Description |
|---|
ReturnValue(int ordinal,
String parameterName,
byte status,
TypeInformation type,
io.netty.buffer.ByteBuf value)
Creates a new
ReturnValue. |
ReturnValue(int ordinal,
String parameterName,
int status,
TypeInformation type,
io.netty.buffer.ByteBuf value)
Creates a new
ReturnValue. |
| Modifier and Type | Method and Description |
|---|---|
io.r2dbc.mssql.codec.Decodable |
asDecodable()
Create a
Decodable from this ReturnValue to allow decoding. |
static boolean |
canDecode(io.netty.buffer.ByteBuf buffer,
boolean encryptionSupported)
Check whether the
ByteBuf can be decoded into an entire ReturnValue. |
protected void |
deallocate() |
static ReturnValue |
decode(io.netty.buffer.ByteBuf buffer,
boolean encryptionSupported)
Decode a
RowToken. |
String |
getName() |
int |
getOrdinal() |
String |
getParameterName() |
byte |
getStatus() |
byte |
getType() |
io.netty.buffer.ByteBuf |
getValue() |
TypeInformation |
getValueType() |
static boolean |
matches(io.r2dbc.mssql.message.Message message,
int ordinal)
Check whether the
Message is a ReturnValue that matches the parameter ordinal. |
static boolean |
matches(io.r2dbc.mssql.message.Message message,
String name)
Check whether the
Message is a ReturnValue that matches the parameter name. |
String |
toString() |
io.netty.util.ReferenceCounted |
touch(Object hint) |
public static final byte TYPE
public ReturnValue(int ordinal,
@Nullable
String parameterName,
int status,
TypeInformation type,
io.netty.buffer.ByteBuf value)
ReturnValue.ordinal - the ordinal position of the output parameter in the original RPC call.parameterName - the parameter name.status - indicator whether the value is a OUT value or a UDF.type - type descriptor of this value.value - the actual value.public ReturnValue(int ordinal,
@Nullable
String parameterName,
byte status,
TypeInformation type,
io.netty.buffer.ByteBuf value)
ReturnValue.ordinal - the ordinal position of the output parameter in the original RPC call.parameterName - the parameter name.status - indicator whether the value is a OUT value or a UDF.type - type descriptor of this value.value - the actual value.public static ReturnValue decode(io.netty.buffer.ByteBuf buffer, boolean encryptionSupported)
RowToken.buffer - the data buffer.encryptionSupported - whether encryption is supported.ReturnValue.public static boolean canDecode(io.netty.buffer.ByteBuf buffer,
boolean encryptionSupported)
ByteBuf can be decoded into an entire ReturnValue.buffer - the data buffer.encryptionSupported - whether encryption is supported.true if the buffer contains sufficient data to entirely decode a ReturnValue.public static boolean matches(io.r2dbc.mssql.message.Message message,
String name)
Message is a ReturnValue that matches the parameter name.message - the message.name - the parameter name.true if the Message is a ReturnValue that matches the parameter name.public static boolean matches(io.r2dbc.mssql.message.Message message,
int ordinal)
Message is a ReturnValue that matches the parameter ordinal.message - the message.ordinal - the parameter ordinal.true if the Message is a ReturnValue that matches the parameter ordinal.public int getOrdinal()
public TypeInformation getValueType()
public byte getStatus()
public io.netty.buffer.ByteBuf getValue()
public io.r2dbc.mssql.codec.Decodable asDecodable()
Decodable from this ReturnValue to allow decoding.Decodable.Codecs.decode(ByteBuf, Decodable, Class)public String getName()
public io.netty.util.ReferenceCounted touch(Object hint)
touch in interface io.netty.util.ReferenceCountedprotected void deallocate()
deallocate in class io.netty.util.AbstractReferenceCountedCopyright © 2023. All rights reserved.