public class ComStmtPrepare extends Object
| Constructor and Description |
|---|
ComStmtPrepare(Protocol protocol,
String sql) |
| Modifier and Type | Method and Description |
|---|---|
ServerPrepareResult |
read(ReadPacketFetcher packetFetcher)
Read COM_PREPARE_RESULT.
|
void |
send(PacketOutputStream writer)
Send directly to socket the sql data.
|
void |
sendSubCmd(PacketOutputStream writer)
Send sub-command (COM_MULTI) to write socket.
|
public void send(PacketOutputStream writer) throws IOException, QueryException
writer - the writerIOException - if connection error occurQueryException - if packet max size is to big.public void sendSubCmd(PacketOutputStream writer) throws IOException, QueryException
writer - the writerIOException - if connection error occurQueryException - if packet max size is to big.public ServerPrepareResult read(ReadPacketFetcher packetFetcher) throws IOException, QueryException
packetFetcher - inputStreamIOException - is connection has errorQueryException - if server answer with error.Copyright © 2016. All rights reserved.