public interface Protocol
| Modifier and Type | Method and Description |
|---|---|
ServerPrepareResult |
addPrepareInCache(String key,
ServerPrepareResult serverPrepareResult) |
void |
cancelCurrentQuery() |
void |
changeSocketSoTimeout(int setSoTimeout) |
void |
changeSocketTcpNoDelay(boolean setTcpNoDelay) |
boolean |
checkIfMaster() |
void |
close() |
void |
closeExplicit() |
void |
connect() |
void |
connectWithoutProxy() |
void |
executeBatch(boolean mustExecuteOnMaster,
ExecutionResult executionResult,
List<String> queries,
int resultSetScrollType) |
void |
executeBatchMulti(boolean mustExecuteOnMaster,
ExecutionResult executionResult,
ClientPrepareResult clientPrepareResult,
List<ParameterHolder[]> parameterList,
int resultSetScrollType) |
void |
executeBatchMultiple(boolean mustExecuteOnMaster,
ExecutionResult executionResult,
List<String> queries,
int resultSetScrollType) |
void |
executeBatchRewrite(boolean mustExecuteOnMaster,
ExecutionResult executionResult,
ClientPrepareResult prepareResult,
List<ParameterHolder[]> parameterList,
int resultSetScrollType,
boolean rewriteValues) |
void |
executePreparedQuery(boolean mustExecuteOnMaster,
ServerPrepareResult serverPrepareResult,
ExecutionResult executionResult,
ParameterHolder[] parameters,
int resultSetScrollType) |
void |
executeQuery(boolean mustExecuteOnMaster,
ExecutionResult executionResult,
ClientPrepareResult clientPrepareResult,
ParameterHolder[] parameters,
int resultSetScrollType) |
void |
executeQuery(boolean mustExecuteOnMaster,
ExecutionResult executionResult,
String sql,
int resultSetScrollType) |
void |
executeQuery(String sql) |
boolean |
forceReleasePrepareStatement(int statementId) |
void |
forceReleaseWaitingPrepareStatement() |
MariaSelectResultSet |
getActiveStreamingResult() |
boolean |
getAutocommit() |
Calendar |
getCalendar() |
String |
getDatabase() |
int |
getDataTypeMappingFlags() |
String |
getHost() |
HostAddress |
getHostAddress() |
ReentrantLock |
getLock() |
int |
getMajorServerVersion() |
int |
getMaxRows() |
int |
getMinorServerVersion() |
void |
getMoreResults(ExecutionResult executionResult) |
Options |
getOptions() |
ReadPacketFetcher |
getPacketFetcher() |
String |
getPassword() |
boolean |
getPinGlobalTxToPhysicalConnection() |
int |
getPort() |
FailoverProxy |
getProxy() |
boolean |
getReadonly() |
ExecutionResult |
getResult(ExecutionResult executionResult,
int resultSetScrollType,
boolean binaryProtocol,
boolean loadAllResults) |
String |
getServerData(String code) |
long |
getServerThreadId() |
String |
getServerVersion() |
int |
getTimeout() |
int |
getTransactionIsolationLevel() |
UrlParser |
getUrlParser() |
String |
getUsername() |
ByteBuffer |
getWriter() |
boolean |
hasMoreResults() |
boolean |
hasServerComMultiCapability() |
boolean |
hasWarnings() |
boolean |
inTransaction() |
boolean |
isClosed() |
boolean |
isConnected() |
boolean |
isExplicitClosed() |
boolean |
isMasterConnection() |
boolean |
mustBeMasterConnection() |
boolean |
noBackslashEscapes() |
boolean |
ping() |
ServerPrepareResult |
prepare(String sql,
boolean executeOnMaster) |
ServerPrepareResult |
prepareAndExecute(boolean mustExecuteOnMaster,
ServerPrepareResult serverPrepareResult,
ExecutionResult executionResult,
String sql,
ParameterHolder[] parameters,
int resultSetScrollType) |
ServerPrepareResult |
prepareAndExecutes(boolean mustExecuteOnMaster,
ServerPrepareResult serverPrepareResult,
ExecutionResult executionResult,
String sql,
List<ParameterHolder[]> parameterList,
int resultSetScrollType) |
ServerPrepareStatementCache |
prepareStatementCache() |
void |
prolog(ExecutionResult executionResult,
int maxRows,
boolean hasProxy,
MariaDbConnection connection,
Statement statement) |
void |
prologProxy(ServerPrepareResult serverPrepareResult,
ExecutionResult executionResult,
int maxRows,
boolean hasProxy,
MariaDbConnection connection,
Statement statement) |
void |
readEofPacket() |
void |
releasePrepareStatement(ServerPrepareResult serverPrepareResult) |
void |
releaseWriterBuffer() |
void |
rollback() |
void |
setActiveStreamingResult(MariaSelectResultSet mariaSelectResultSet) |
void |
setCatalog(String database) |
void |
setHasWarnings(boolean hasWarnings) |
void |
setHostAddress(HostAddress hostAddress) |
void |
setHostFailedWithoutProxy() |
void |
setInternalMaxRows(int max) |
void |
setLocalInfileInputStream(InputStream inputStream) |
void |
setMaxRows(int max) |
void |
setMoreResults(boolean moreResults,
boolean moreResultsTypeBinary) |
void |
setProxy(FailoverProxy proxy) |
void |
setReadonly(boolean readOnly) |
void |
setTimeout(int timeout) |
void |
setTransactionIsolation(int level) |
boolean |
shouldReconnectWithoutProxy() |
void |
skip() |
void |
skipEofPacket() |
boolean |
versionGreaterOrEqual(int major,
int minor,
int patch) |
ServerPrepareResult prepare(String sql, boolean executeOnMaster) throws QueryException
QueryExceptionboolean getAutocommit()
boolean noBackslashEscapes()
void connect()
throws QueryException
QueryExceptionUrlParser getUrlParser()
boolean inTransaction()
FailoverProxy getProxy()
void setProxy(FailoverProxy proxy)
Options getOptions()
boolean hasMoreResults()
void close()
void closeExplicit()
boolean isClosed()
void setCatalog(String database) throws QueryException
QueryExceptionString getServerVersion()
boolean isConnected()
boolean getReadonly()
void setReadonly(boolean readOnly)
throws QueryException
QueryExceptionboolean isMasterConnection()
boolean mustBeMasterConnection()
HostAddress getHostAddress()
void setHostAddress(HostAddress hostAddress)
String getHost()
int getPort()
void rollback()
throws QueryException
QueryExceptionString getDatabase()
String getUsername()
String getPassword()
boolean ping()
throws QueryException
QueryExceptionvoid executeQuery(String sql) throws QueryException
QueryExceptionvoid executeQuery(boolean mustExecuteOnMaster,
ExecutionResult executionResult,
String sql,
int resultSetScrollType)
throws QueryException
QueryExceptionvoid executeQuery(boolean mustExecuteOnMaster,
ExecutionResult executionResult,
ClientPrepareResult clientPrepareResult,
ParameterHolder[] parameters,
int resultSetScrollType)
throws QueryException
QueryExceptionvoid executeBatchMulti(boolean mustExecuteOnMaster,
ExecutionResult executionResult,
ClientPrepareResult clientPrepareResult,
List<ParameterHolder[]> parameterList,
int resultSetScrollType)
throws QueryException
QueryExceptionvoid executeBatch(boolean mustExecuteOnMaster,
ExecutionResult executionResult,
List<String> queries,
int resultSetScrollType)
throws QueryException
QueryExceptionvoid executeBatchMultiple(boolean mustExecuteOnMaster,
ExecutionResult executionResult,
List<String> queries,
int resultSetScrollType)
throws QueryException
QueryExceptionvoid executeBatchRewrite(boolean mustExecuteOnMaster,
ExecutionResult executionResult,
ClientPrepareResult prepareResult,
List<ParameterHolder[]> parameterList,
int resultSetScrollType,
boolean rewriteValues)
throws QueryException
QueryExceptionvoid executePreparedQuery(boolean mustExecuteOnMaster,
ServerPrepareResult serverPrepareResult,
ExecutionResult executionResult,
ParameterHolder[] parameters,
int resultSetScrollType)
throws QueryException
QueryExceptionServerPrepareResult prepareAndExecutes(boolean mustExecuteOnMaster, ServerPrepareResult serverPrepareResult, ExecutionResult executionResult, String sql, List<ParameterHolder[]> parameterList, int resultSetScrollType) throws QueryException
QueryExceptionServerPrepareResult prepareAndExecute(boolean mustExecuteOnMaster, ServerPrepareResult serverPrepareResult, ExecutionResult executionResult, String sql, ParameterHolder[] parameters, int resultSetScrollType) throws QueryException
QueryExceptionExecutionResult getResult(ExecutionResult executionResult, int resultSetScrollType, boolean binaryProtocol, boolean loadAllResults) throws QueryException
QueryExceptionvoid cancelCurrentQuery()
throws QueryException,
IOException
QueryExceptionIOExceptionvoid skip() throws SQLException, QueryException
SQLExceptionQueryExceptionboolean checkIfMaster()
throws QueryException
QueryExceptionboolean hasWarnings()
int getDataTypeMappingFlags()
void setInternalMaxRows(int max)
int getMaxRows()
void setMaxRows(int max)
throws QueryException
QueryExceptionint getMajorServerVersion()
int getMinorServerVersion()
boolean versionGreaterOrEqual(int major,
int minor,
int patch)
void setLocalInfileInputStream(InputStream inputStream)
int getTimeout()
throws SocketException
SocketExceptionvoid setTimeout(int timeout)
throws SocketException
SocketExceptionboolean getPinGlobalTxToPhysicalConnection()
long getServerThreadId()
void setTransactionIsolation(int level)
throws QueryException
QueryExceptionint getTransactionIsolationLevel()
boolean isExplicitClosed()
void connectWithoutProxy()
throws QueryException
QueryExceptionboolean shouldReconnectWithoutProxy()
void setHostFailedWithoutProxy()
void releasePrepareStatement(ServerPrepareResult serverPrepareResult) throws QueryException
QueryExceptionboolean forceReleasePrepareStatement(int statementId)
throws QueryException
QueryExceptionvoid forceReleaseWaitingPrepareStatement()
throws QueryException
QueryExceptionServerPrepareStatementCache prepareStatementCache()
Calendar getCalendar()
void prolog(ExecutionResult executionResult, int maxRows, boolean hasProxy, MariaDbConnection connection, Statement statement) throws SQLException
SQLExceptionvoid prologProxy(ServerPrepareResult serverPrepareResult, ExecutionResult executionResult, int maxRows, boolean hasProxy, MariaDbConnection connection, Statement statement) throws SQLException
SQLExceptionMariaSelectResultSet getActiveStreamingResult()
void setActiveStreamingResult(MariaSelectResultSet mariaSelectResultSet)
ReentrantLock getLock()
void getMoreResults(ExecutionResult executionResult) throws QueryException
QueryExceptionvoid setMoreResults(boolean moreResults,
boolean moreResultsTypeBinary)
void setHasWarnings(boolean hasWarnings)
boolean hasServerComMultiCapability()
void releaseWriterBuffer()
ByteBuffer getWriter()
ServerPrepareResult addPrepareInCache(String key, ServerPrepareResult serverPrepareResult)
void readEofPacket()
throws QueryException,
IOException
QueryExceptionIOExceptionvoid skipEofPacket()
throws QueryException,
IOException
QueryExceptionIOExceptionReadPacketFetcher getPacketFetcher()
void changeSocketTcpNoDelay(boolean setTcpNoDelay)
throws SocketException
SocketExceptionvoid changeSocketSoTimeout(int setSoTimeout)
throws SocketException
SocketExceptionCopyright © 2016. All rights reserved.