Class BindMessage (0.27.1)

publicclass BindMessageextendsAbstractQueryProtocolMessage

Message of type bind (meaning that it is a message called to a prepared statement to complete it with missing data to prepare for execution). A bound prepared statement always yields a portal unless it fails.

Inherited Members

Static Fields

IDENTIFIER

protectedstaticfinalcharIDENTIFIER
Field Value
Type Description
char

Constructors

BindMessage(ConnectionHandler connection)

publicBindMessage(ConnectionHandlerconnection)

Constructor for Bind messages that are received from the front-end.

Parameter
Name Description
connection ConnectionHandler

BindMessage(ConnectionHandler connection, ControlMessage.ManuallyCreatedToken manuallyCreatedToken)

publicBindMessage(ConnectionHandlerconnection,ControlMessage.ManuallyCreatedTokenmanuallyCreatedToken)

Constructor for Bind messages that are constructed to execute a Query message.

Parameters
Name Description
connection ConnectionHandler
manuallyCreatedToken ControlMessage.ManuallyCreatedToken

BindMessage(ConnectionHandler connection, String statementName, String portalName, byte[][] parameters, ControlMessage.ManuallyCreatedToken manuallyCreatedToken)

publicBindMessage(ConnectionHandlerconnection,StringstatementName,StringportalName,byte[][]parameters,ControlMessage.ManuallyCreatedTokenmanuallyCreatedToken)

Constructor for Bind messages that are created by EXECUTE statements.

Parameters
Name Description
connection ConnectionHandler
statementName String
portalName String
parameters byte[][]
manuallyCreatedToken ControlMessage.ManuallyCreatedToken

Methods

flush()

publicvoidflush()
Overrides
Exceptions
Type Description
Exception

getFormatCodes()

publicList<Short>getFormatCodes()
Returns
Type Description
List<Short>

getIdentifier()

publicStringgetIdentifier()

Used for logging.

Returns
Type Description
String
Overrides

getMessageName()

protectedStringgetMessageName()

Used for logging.

Returns
Type Description
String
Overrides

getParameters()

publicbyte[][]getParameters()
Returns
Type Description
byte[][]

getPayloadString()

protectedStringgetPayloadString()

Used for logging.

Returns
Type Description
String
Overrides

getPortalName()

publicStringgetPortalName()
Returns
Type Description
String

getResultFormatCodes()

publicList<Short>getResultFormatCodes()
Returns
Type Description
List<Short>

getSql()

publicStringgetSql()
Returns
Type Description
String
Overrides

getStatementName()

publicStringgetStatementName()
Returns
Type Description
String

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.