public class ComStmtExecute extends Object implements InterfaceSendPacket
Constructor and Description |
---|
ComStmtExecute(int statementId,
ParameterHolder[] parameters,
int parameterCount,
ColumnType[] parameterTypeHeader,
byte cursorFlag)
Initialize parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
send(PacketOutputStream pos)
Send a prepare statement binary stream.
|
static void |
writeCmd(int statementId,
ParameterHolder[] parameters,
int parameterCount,
ColumnType[] parameterTypeHeader,
PacketOutputStream pos,
byte cursorFlag)
Write COM_STMT_EXECUTE sub-command to output buffer.
|
public ComStmtExecute(int statementId, ParameterHolder[] parameters, int parameterCount, ColumnType[] parameterTypeHeader, byte cursorFlag)
statementId
- prepareResult object received after preparation.parameters
- parametersparameterCount
- parameters numberparameterTypeHeader
- parameters headercursorFlag
- cursor flag. Possible values : public static void writeCmd(int statementId, ParameterHolder[] parameters, int parameterCount, ColumnType[] parameterTypeHeader, PacketOutputStream pos, byte cursorFlag) throws IOException
statementId
- prepareResult object received after preparation.parameters
- parametersparameterCount
- parameters numberparameterTypeHeader
- parameters header1pos
- outputStreamcursorFlag
- cursor flag. Possible values : IOException
- if a connection error occurpublic void send(PacketOutputStream pos) throws IOException
send
in interface InterfaceSendPacket
pos
- database socketIOException
- if a connection error occurCopyright © 2017 mariadb. All rights reserved.