Class DescribeMessage (0.5.1)
Stay organized with collections
Save and categorize content based on your preferences.
publicclass DescribeMessageextendsAbstractQueryProtocolMessageCalls describe on a portal or prepared statement.
Inheritance
java.lang.Object > WireMessage > ControlMessage > AbstractQueryProtocolMessage > DescribeMessageInherited Members
Static Fields
IDENTIFIER
protectedstaticfinalcharIDENTIFIERConstructors
DescribeMessage(ConnectionHandler connection)
publicDescribeMessage(ConnectionHandlerconnection)DescribeMessage(ConnectionHandler connection, ControlMessage.ManuallyCreatedToken manuallyCreatedToken)
publicDescribeMessage(ConnectionHandlerconnection,ControlMessage.ManuallyCreatedTokenmanuallyCreatedToken)Constructor for manually created Describe messages from the simple query protocol.
Methods
flush()
publicvoidflush()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.
getIdentifier()
protectedStringgetIdentifier()Used for logging.
getMessageName()
protectedStringgetMessageName()Used for logging.
getName()
publicStringgetName()getPayloadString()
protectedStringgetPayloadString()Used for logging.
getType()
publicControlMessage.PreparedTypegetType()handleDescribeStatement()
publicvoidhandleDescribeStatement()Called when a describe message of type 'S' is received.
if sending the message back to the client causes an error.