public final class Bind extends Object implements FrontendMessage, FrontendMessage.DirectEncoder
FrontendMessage.DirectEncoder| Modifier and Type | Field and Description |
|---|---|
static io.netty.buffer.ByteBuf |
NULL_VALUE
A marker indicating a
NULL value. |
static String |
UNNAMED_PORTAL
The unnamed portal.
|
static String |
UNNAMED_STATEMENT
The unnamed statement.
|
| Constructor and Description |
|---|
Bind(String name,
List<io.r2dbc.postgresql.message.Format> parameterFormats,
List<io.netty.buffer.ByteBuf> parameters,
Collection<io.r2dbc.postgresql.message.Format> resultFormats,
String source)
Create a new message.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(io.netty.buffer.ByteBuf byteBuf)
Encode a message directly by writing its content to a
ByteBuf. |
Publisher<io.netty.buffer.ByteBuf> |
encode(io.netty.buffer.ByteBufAllocator byteBufAllocator)
Encode a message into a
ByteBuf. |
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
public static final io.netty.buffer.ByteBuf NULL_VALUE
NULL value.public static final String UNNAMED_PORTAL
public static final String UNNAMED_STATEMENT
public Bind(String name, List<io.r2dbc.postgresql.message.Format> parameterFormats, List<io.netty.buffer.ByteBuf> parameters, Collection<io.r2dbc.postgresql.message.Format> resultFormats, String source)
name - the name of the destination portal (an empty string selects the unnamed portal)parameterFormats - the parameter formatsparameters - the value of the parameters, in the format indicated by the associated formatresultFormats - the result formatssource - the name of the source prepared statement (an empty string selects the unnamed prepared statement)IllegalArgumentException - if name, parameterFormats, parameters, resultFormats, or source is nullUNNAMED_PORTAL,
UNNAMED_STATEMENTpublic Publisher<io.netty.buffer.ByteBuf> encode(io.netty.buffer.ByteBufAllocator byteBufAllocator)
FrontendMessageByteBuf.encode in interface FrontendMessagebyteBufAllocator - the byteBufAllocator to use to get a ByteBuf to write intoPublisher that produces the ByteBuf containing the encoded messagepublic void encode(io.netty.buffer.ByteBuf byteBuf)
FrontendMessage.DirectEncoderByteBuf.encode in interface FrontendMessage.DirectEncoderbyteBuf - the target ByteBuf to write intoCopyright © 2023. All rights reserved.