public final class Parse extends Object implements FrontendMessage, FrontendMessage.DirectEncoder
FrontendMessage.DirectEncoder| Modifier and Type | Field and Description |
|---|---|
static String |
UNNAMED_STATEMENT
The unnamed statement.
|
static int |
UNSPECIFIED
The unspecified data type.
|
| Constructor and Description |
|---|
Parse(String name,
int[] parameters,
String query)
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 String UNNAMED_STATEMENT
public static final int UNSPECIFIED
public Parse(String name, int[] parameters, String query)
name - the name of the destination prepared statement (an empty string selects the unnamed prepared statement)parameters - the object IDs of the parameter data types. Placing a zero here is equivalent to leaving the type unspecified.query - the query string to be parsedIllegalArgumentException - if name, parameters, or query is nullUNNAMED_STATEMENT,
UNSPECIFIEDpublic 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 © 2024. All rights reserved.