Class Parse
java.lang.Object
io.r2dbc.postgresql.message.frontend.Parse
- All Implemented Interfaces:
FrontendMessage, FrontendMessage.DirectEncoder
The Parse message.
-
Nested Class Summary
Nested classes/interfaces inherited from interface FrontendMessage
FrontendMessage.DirectEncoder -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe unnamed statement.static final intThe unspecified data type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(io.netty.buffer.ByteBuf byteBuf) Encode a message directly by writing its content to aByteBuf.Publisher<io.netty.buffer.ByteBuf> encode(io.netty.buffer.ByteBufAllocator byteBufAllocator) Encode a message into aByteBuf.booleaninthashCode()toString()
-
Field Details
-
UNNAMED_STATEMENT
-
UNSPECIFIED
public static final int UNSPECIFIEDThe unspecified data type.- See Also:
-
-
Constructor Details
-
Parse
Create a new message.- Parameters:
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 parsed- Throws:
IllegalArgumentException- ifname,parameters, orqueryisnull- See Also:
-
-
Method Details
-
encode
Description copied from interface:FrontendMessageEncode a message into aByteBuf.- Specified by:
encodein interfaceFrontendMessage- Parameters:
byteBufAllocator- the byteBufAllocator to use to get aByteBufto write into- Returns:
- a
Publisherthat produces theByteBufcontaining the encoded message
-
encode
public void encode(io.netty.buffer.ByteBuf byteBuf) Description copied from interface:FrontendMessage.DirectEncoderEncode a message directly by writing its content to aByteBuf.- Specified by:
encodein interfaceFrontendMessage.DirectEncoder- Parameters:
byteBuf- the targetByteBufto write into
-
equals
-
hashCode
-
toString
-