public final class FunctionCall extends Object implements FrontendMessage
FrontendMessage.DirectEncoder| Constructor and Description |
|---|
FunctionCall(List<io.r2dbc.postgresql.message.Format> argumentFormats,
List<io.netty.buffer.ByteBuf> arguments,
int functionId,
io.r2dbc.postgresql.message.Format resultFormat)
Create a new message.
|
| Modifier and Type | Method and Description |
|---|---|
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 FunctionCall(List<io.r2dbc.postgresql.message.Format> argumentFormats, List<io.netty.buffer.ByteBuf> arguments, int functionId, io.r2dbc.postgresql.message.Format resultFormat)
argumentFormats - the argument formatsarguments - the value of the arguments, in the format indicated by the associated formatfunctionId - the object ID of the function to callresultFormat - the format code for the function resultIllegalArgumentException - if argumentFormats, arguments, or resultFormat is nullpublic 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 messageCopyright © 2023. All rights reserved.