FunctionCall packet

A FunctionCall packet is sent by the client to request execution of a function, which will return a (possibly empty) result set.

The packet object has the following methods:

  • int getFunctionObjectID() : returns the object ID for the function being called.

  • void setFunctionObjectID(int n) : set the object ID of the function being called.

  • List<Integer> getFormatCodes() : get a list of the format of the arguments, either zero (text) or one (binary). This list can be changed.

  • List<byte[]> getArguments() : get the argument values. This list can be changed.

  • int getResultFormat() : get the format of the result, either zero (text) or one (binary).

  • void setResultFormat(int n) : set the format of the result, either 0 for text or 1 for binary.