|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mariadb.jdbc.internal.com.send.ComQuery
public class ComQuery
Constructor Summary | |
---|---|
ComQuery()
|
Method Summary | |
---|---|
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 |
sendMultiple(PacketOutputStream writer,
String firstQuery,
List<String> queries,
int currentIndex)
Statement.executeBatch() rewritten multiple (concatenate with ";") according to max_allowed_packet) |
static int |
sendRewriteCmd(PacketOutputStream pos,
List<byte[]> queryParts,
ParameterHolder[] parameters,
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 writer,
ClientPrepareResult clientPrepareResult,
ParameterHolder[] parameters)
Client-side PrepareStatement.execute() packet send. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComQuery()
Method Detail |
---|
public static void sendSubCmd(PacketOutputStream writer, ClientPrepareResult clientPrepareResult, ParameterHolder[] parameters) throws IOException
writer
- outputStreamclientPrepareResult
- clientPrepareResultparameters
- parameter
IOException
- if connection failpublic static int sendRewriteCmd(PacketOutputStream pos, List<byte[]> queryParts, ParameterHolder[] parameters, int currentIndex, int paramCount, List<ParameterHolder[]> parameterList, boolean rewriteValues) throws IOException
pos
- outputStreamqueryParts
- query partsparameters
- parameterscurrentIndex
- currentIndexparamCount
- parameter posparameterList
- parameter listrewriteValues
- is query rewritable by adding values
IOException
- if connection failpublic static int sendMultiple(PacketOutputStream writer, String firstQuery, List<String> queries, int currentIndex) throws IOException
writer
- outputstreamfirstQuery
- first queryqueries
- queriescurrentIndex
- currentIndex
IOException
- if connection error occurpublic static void sendDirect(PacketOutputStream pos, byte[] sqlBytes) throws IOException, SQLException
pos
- output streamsqlBytes
- the query in UTF-8 bytes
IOException
- if connection error occur
SQLException
- if packet max size is to big.public static void sendDirect(PacketOutputStream pos, byte[] sqlBytes, int queryTimeout) throws IOException, SQLException
pos
- output streamsqlBytes
- the query in UTF-8 bytesqueryTimeout
- timeout using max_statement_time
IOException
- if connection error occur
SQLException
- if packet max size is to big.public static void sendMultiDirect(PacketOutputStream pos, List<byte[]> sqlBytes) throws IOException, SQLException
pos
- output streamsqlBytes
- the query in UTF-8 bytes
IOException
- if connection error occur
SQLException
- if packet max size is to big.public static void sendMultiDirect(PacketOutputStream pos, List<byte[]> sqlBytes, int queryTimeout) throws IOException, SQLException
pos
- output streamsqlBytes
- the query in UTF-8 bytesqueryTimeout
- timeout using max_statement_time
IOException
- if connection error occur
SQLException
- if packet max size is to big.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |