| Constructor and Description |
|---|
SQLQueryCancelledException(String message,
String sqlState,
int errorCode,
QueryException e) |
SQLQueryTimedOutException(String message,
String sqlState,
int errorCode,
QueryException e) |
| Modifier and Type | Method and Description |
|---|---|
static SQLException |
SQLExceptionMapper.get(QueryException e) |
| Modifier and Type | Method and Description |
|---|---|
void |
Protocol.cancelCurrentQuery() |
void |
Protocol.close()
closes the connection to the server
|
void |
Protocol.commit()
commits the current transaction
|
int[] |
ParameterizedBatchHandler.executeBatch()
execute the batch using protocol.
|
int[] |
DefaultParameterizedBatchHandler.executeBatch() |
List<QueryResult> |
Protocol.executeBatch()
executes the batch of queries
|
int[] |
RewriteParameterizedBatchHandler.executeBatch() |
QueryResult |
Protocol.executeQuery(Query dQuery)
executes a query
|
QueryResult |
Protocol.executeQuery(Query createQuery,
InputStream inputStream) |
String |
Protocol.getCatalog()
Retrieves this
Connection object's current catalog name. |
QueryResult |
Protocol.getMoreResults() |
InputStream |
AbstractValueObject.getPBMSStream(Protocol protocol) |
InputStream |
ValueObject.getPBMSStream(Protocol protocol) |
String |
Protocol.getServerVariable(String s) |
boolean |
Protocol.ping()
checks whether the connectiion is still valid
|
void |
Protocol.releaseSavepoint(String savepoint)
releases the savepoint
|
void |
Protocol.rollback()
rolls back the current transaction
|
void |
Protocol.rollback(String savepoint)
rolls back to the given save point
|
void |
Protocol.selectDB(String database)
selects what database to use
|
void |
Protocol.setCatalog(String catalog)
Sets the given catalog name in order to select a subspace of this
Connection object's database in
which to work. |
void |
Protocol.setSavepoint(String savepoint)
sets a save point
|
void |
Protocol.timeOut() |
| Modifier and Type | Method and Description |
|---|---|
int |
CommandPacket.send(OutputStream os) |
| Modifier and Type | Method and Description |
|---|---|
int |
StreamedQueryPacket.send(OutputStream ostream) |
| Modifier and Type | Method and Description |
|---|---|
int |
DrizzleParameterizedQuery.length() |
int |
Query.length() |
void |
DrizzleParameterizedQuery.writeTo(OutputStream os) |
void |
Query.writeTo(OutputStream os) |
void |
DrizzleParameterizedQuery.writeTo(OutputStream ostream,
int offset,
int packLength) |
void |
Query.writeTo(OutputStream ostream,
int offset,
int packLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
MySQLProtocol.cancelCurrentQuery()
cancels the current query - clones the current protocol and executes a query using the new connection
thread safe
|
void |
MySQLProtocol.close()
Closes socket and stream readers/writers
|
void |
MySQLProtocol.commit() |
List<QueryResult> |
MySQLProtocol.executeBatch() |
QueryResult |
MySQLProtocol.executeQuery(Query dQuery) |
QueryResult |
MySQLProtocol.executeQuery(Query dQuery,
InputStream inputStream) |
String |
MySQLProtocol.getCatalog()
Catalogs are not supported in drizzle so this will always return null
with a Drizzle connection
MySQL treats catalogs as databases. |
QueryResult |
MySQLProtocol.getMoreResults() |
String |
MySQLProtocol.getServerVariable(String variable) |
boolean |
MySQLProtocol.ping() |
void |
MySQLProtocol.releaseSavepoint(String savepoint) |
void |
MySQLProtocol.rollback() |
void |
MySQLProtocol.rollback(String savepoint) |
void |
MySQLProtocol.selectDB(String database) |
void |
MySQLProtocol.setCatalog(String catalog)
Catalogs are not supported in drizzle so this is a no-op with a Drizzle
connection
MySQL treats catalogs as databases. |
void |
MySQLProtocol.setSavepoint(String savepoint) |
void |
MySQLProtocol.timeOut() |
| Constructor and Description |
|---|
MySQLProtocol(String host,
int port,
String database,
String username,
String password,
Properties info)
Get a protocol instance
|
| Modifier and Type | Method and Description |
|---|---|
int |
MySQLClientOldPasswordAuthPacket.send(OutputStream os) |
Copyright © 2016. All rights reserved.