Class Execute
java.lang.Object
io.r2dbc.postgresql.message.frontend.Execute
- All Implemented Interfaces:
FrontendMessage, FrontendMessage.DirectEncoder
The Execute message.
-
Nested Class Summary
Nested classes/interfaces inherited from interface FrontendMessage
FrontendMessage.DirectEncoder -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intNo limit on returned rows.static final StringThe unnamed portal. -
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
-
NO_LIMIT
public static final int NO_LIMITNo limit on returned rows.- See Also:
-
UNNAMED_PORTAL
-
-
Constructor Details
-
Execute
Create a new message.- Parameters:
name- the name of the portal to execute (an empty string selects the unnamed portal)rows- maximum number of rows to return, if portal contains a query that returns rows (ignored otherwise). Zero denotes “no limit”.- Throws:
IllegalArgumentException- ifnameisnull- 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
-