public class ComQuery extends Object
| Constructor and Description |
|---|
ComQuery() |
| Modifier and Type | Method and Description |
|---|---|
static int |
sendBatchAggregateSemiColon(PacketOutputStream writer,
String firstQuery,
List<String> queries,
int currentIndex)
Statement.executeBatch() rewritten multiple (concatenate with ";") according to
max_allowed_packet)
|
static void |
sendDirect(PacketOutputStream pos,
byte[] sqlBytes)
Send directly to socket the sql data.
|
static void |
sendDirect(PacketOutputStream pos,
byte[] sqlBytes,
int queryTimeout)
Send directly to socket the sql data.
|
static void |
sendMultiDirect(PacketOutputStream pos,
List<byte[]> sqlBytes)
Send directly to socket the sql data.
|
static void |
sendMultiDirect(PacketOutputStream pos,
List<byte[]> sqlBytes,
int queryTimeout)
Send directly to socket the sql data.
|
static int |
sendRewriteCmd(PacketOutputStream pos,
List<byte[]> queryParts,
int currentIndex,
int paramCount,
List<ParameterHolder[]> parameterList,
boolean rewriteValues)
Client side PreparedStatement.executeBatch values rewritten (concatenate value params according
to max_allowed_packet)
|
static void |
sendSubCmd(PacketOutputStream out,
ClientPrepareResult clientPrepareResult,
ParameterHolder[] parameters,
int queryTimeout)
Client-side PrepareStatement.execute() packet send.
|
public static void sendSubCmd(PacketOutputStream out, ClientPrepareResult clientPrepareResult, ParameterHolder[] parameters, int queryTimeout) throws IOException
out - outputStreamclientPrepareResult - clientPrepareResultparameters - parameterqueryTimeout - query timeoutIOException - if connection failpublic static int sendRewriteCmd(PacketOutputStream pos, List<byte[]> queryParts, int currentIndex, int paramCount, List<ParameterHolder[]> parameterList, boolean rewriteValues) throws IOException
pos - outputStreamqueryParts - query partscurrentIndex - currentIndexparamCount - parameter posparameterList - parameter listrewriteValues - is query rewritable by adding valuesIOException - if connection failpublic static int sendBatchAggregateSemiColon(PacketOutputStream writer, String firstQuery, List<String> queries, int currentIndex) throws IOException
writer - outputstreamfirstQuery - first queryqueries - queriescurrentIndex - currentIndexIOException - if connection error occurpublic static void sendDirect(PacketOutputStream pos, byte[] sqlBytes) throws IOException
pos - output streamsqlBytes - the query in UTF-8 bytesIOException - if connection error occurpublic static void sendDirect(PacketOutputStream pos, byte[] sqlBytes, int queryTimeout) throws IOException
pos - output streamsqlBytes - the query in UTF-8 bytesqueryTimeout - timeout using max_statement_timeIOException - if connection error occurpublic static void sendMultiDirect(PacketOutputStream pos, List<byte[]> sqlBytes) throws IOException
pos - output streamsqlBytes - the query in UTF-8 bytesIOException - if connection error occurpublic static void sendMultiDirect(PacketOutputStream pos, List<byte[]> sqlBytes, int queryTimeout) throws IOException
pos - output streamsqlBytes - the query in UTF-8 bytesqueryTimeout - timeout using max_statement_timeIOException - if connection error occurCopyright © 2019 mariadb.org. All rights reserved.