Class ExecuteMessage (0.26.0)

publicclass ExecuteMessageextendsAbstractQueryProtocolMessage

Executes a portal.

Inherited Members

Static Fields

IDENTIFIER

protectedstaticfinalcharIDENTIFIER
Field Value
Type Description
char

Constructors

ExecuteMessage(ConnectionHandler connection)

publicExecuteMessage(ConnectionHandlerconnection)
Parameter
Name Description
connection ConnectionHandler

ExecuteMessage(ConnectionHandler connection, ControlMessage.ManuallyCreatedToken manuallyCreatedToken)

publicExecuteMessage(ConnectionHandlerconnection,ControlMessage.ManuallyCreatedTokenmanuallyCreatedToken)

Constructor for execute messages that are generated by the simple query protocol.

Parameters
Name Description
connection ConnectionHandler
manuallyCreatedToken ControlMessage.ManuallyCreatedToken

ExecuteMessage(ConnectionHandler connection, String name, int maxRows, String commandTag, boolean cleanupAfterExecute, ControlMessage.ManuallyCreatedToken manuallyCreatedToken)

publicExecuteMessage(ConnectionHandlerconnection,Stringname,intmaxRows,StringcommandTag,booleancleanupAfterExecute,ControlMessage.ManuallyCreatedTokenmanuallyCreatedToken)
Parameters
Name Description
connection ConnectionHandler
name String
maxRows int
commandTag String
cleanupAfterExecute boolean
manuallyCreatedToken ControlMessage.ManuallyCreatedToken

Methods

flush()

publicvoidflush()
Overrides
Exceptions
Type Description
Exception

getHeaderLength()

protectedintgetHeaderLength()

How many bytes is taken by the payload header. Header is defined here as protocol definition + length. Most common value here is four bytes, so we keep that as default. Effectively, this is how much of the message you "don't" want to read from the message's total length with readAll.

Returns
Type Description
int
Overrides

getIdentifier()

protectedStringgetIdentifier()

Used for logging.

Returns
Type Description
String
Overrides

getMaxRows()

publicintgetMaxRows()
Returns
Type Description
int

getMessageName()

protectedStringgetMessageName()

Used for logging.

Returns
Type Description
String
Overrides

getName()

publicStringgetName()
Returns
Type Description
String

getPayloadString()

protectedStringgetPayloadString()

Used for logging.

Returns
Type Description
String
Overrides

getSql()

publicStringgetSql()
Returns
Type Description
String
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.