public class DescribeMessage extends AbstractQueryProtocolMessage
Calls describe on a portal or prepared statement.
Inheritance
java.lang.Object > WireMessage > ControlMessage > AbstractQueryProtocolMessage > DescribeMessageStatic Fields
IDENTIFIER
protected static final char IDENTIFIER
Type | Description |
char |
Constructors
DescribeMessage(ConnectionHandler connection)
public DescribeMessage(ConnectionHandler connection)
Name | Description |
connection | ConnectionHandler |
DescribeMessage(ConnectionHandler connection, ControlMessage.ManuallyCreatedToken manuallyCreatedToken)
public DescribeMessage(ConnectionHandler connection, ControlMessage.ManuallyCreatedToken manuallyCreatedToken)
Constructor for manually created Describe messages from the simple query protocol.
Name | Description |
connection | ConnectionHandler |
manuallyCreatedToken | ControlMessage.ManuallyCreatedToken |
Methods
flush()
public void flush()
Type | Description |
Exception |
getHeaderLength()
protected int getHeaderLength()
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.
Type | Description |
int |
getIdentifier()
protected String getIdentifier()
Used for logging.
Type | Description |
String |
getMessageName()
protected String getMessageName()
Used for logging.
Type | Description |
String |
getName()
public String getName()
Type | Description |
String |
getPayloadString()
protected String getPayloadString()
Used for logging.
Type | Description |
String |
getType()
public ControlMessage.PreparedType getType()
Type | Description |
ControlMessage.PreparedType |
handleDescribeStatement()
public void handleDescribeStatement()
Called when a describe message of type 'S' is received.
Type | Description |
Exception | if sending the message back to the client causes an error. |