public interface Protocol
ServerPrepareResult prepare(String sql, boolean executeOnMaster) throws QueryException
QueryException
boolean getAutocommit()
boolean noBackslashEscapes()
void connect() throws QueryException
QueryException
UrlParser 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
QueryException
String getServerVersion()
boolean isConnected()
boolean getReadonly()
void setReadonly(boolean readOnly) throws QueryException
QueryException
boolean isMasterConnection()
boolean mustBeMasterConnection()
HostAddress getHostAddress()
void setHostAddress(HostAddress hostAddress)
String getHost()
int getPort()
void rollback() throws QueryException
QueryException
String getDatabase()
String getUsername()
String getPassword()
boolean ping() throws QueryException
QueryException
void executeQuery(String sql) throws QueryException
QueryException
void executeQuery(boolean mustExecuteOnMaster, ExecutionResult executionResult, String sql, int resultSetScrollType) throws QueryException
QueryException
void executeQuery(boolean mustExecuteOnMaster, ExecutionResult executionResult, ClientPrepareResult clientPrepareResult, ParameterHolder[] parameters, int resultSetScrollType) throws QueryException
QueryException
void executeBatchMulti(boolean mustExecuteOnMaster, ExecutionResult executionResult, ClientPrepareResult clientPrepareResult, List<ParameterHolder[]> parameterList, int resultSetScrollType) throws QueryException
QueryException
void executeBatch(boolean mustExecuteOnMaster, ExecutionResult executionResult, List<String> queries, int resultSetScrollType) throws QueryException
QueryException
void executeBatchMultiple(boolean mustExecuteOnMaster, ExecutionResult executionResult, List<String> queries, int resultSetScrollType) throws QueryException
QueryException
void executeBatchRewrite(boolean mustExecuteOnMaster, ExecutionResult executionResult, ClientPrepareResult prepareResult, List<ParameterHolder[]> parameterList, int resultSetScrollType, boolean rewriteValues) throws QueryException
QueryException
void executePreparedQuery(boolean mustExecuteOnMaster, ServerPrepareResult serverPrepareResult, ExecutionResult executionResult, ParameterHolder[] parameters, int resultSetScrollType) throws QueryException
QueryException
ServerPrepareResult prepareAndExecutes(boolean mustExecuteOnMaster, ServerPrepareResult serverPrepareResult, ExecutionResult executionResult, String sql, List<ParameterHolder[]> parameterList, int resultSetScrollType) throws QueryException
QueryException
ServerPrepareResult prepareAndExecute(boolean mustExecuteOnMaster, ServerPrepareResult serverPrepareResult, ExecutionResult executionResult, String sql, ParameterHolder[] parameters, int resultSetScrollType) throws QueryException
QueryException
ExecutionResult getResult(ExecutionResult executionResult, int resultSetScrollType, boolean binaryProtocol, boolean loadAllResults) throws QueryException
QueryException
void cancelCurrentQuery() throws QueryException, IOException
QueryException
IOException
void skip() throws SQLException, QueryException
SQLException
QueryException
boolean checkIfMaster() throws QueryException
QueryException
boolean hasWarnings()
int getDataTypeMappingFlags()
void setInternalMaxRows(int max)
int getMaxRows()
void setMaxRows(int max) throws QueryException
QueryException
int getMajorServerVersion()
int getMinorServerVersion()
boolean versionGreaterOrEqual(int major, int minor, int patch)
void setLocalInfileInputStream(InputStream inputStream)
int getTimeout() throws SocketException
SocketException
void setTimeout(int timeout) throws SocketException
SocketException
boolean getPinGlobalTxToPhysicalConnection()
long getServerThreadId()
void setTransactionIsolation(int level) throws QueryException
QueryException
int getTransactionIsolationLevel()
boolean isExplicitClosed()
void connectWithoutProxy() throws QueryException
QueryException
boolean shouldReconnectWithoutProxy()
void setHostFailedWithoutProxy()
void releasePrepareStatement(ServerPrepareResult serverPrepareResult) throws QueryException
QueryException
boolean forceReleasePrepareStatement(int statementId) throws QueryException
QueryException
void forceReleaseWaitingPrepareStatement() throws QueryException
QueryException
ServerPrepareStatementCache prepareStatementCache()
Calendar getCalendar()
void prolog(ExecutionResult executionResult, int maxRows, boolean hasProxy, MariaDbConnection connection, Statement statement) throws SQLException
SQLException
void prologProxy(ServerPrepareResult serverPrepareResult, ExecutionResult executionResult, int maxRows, boolean hasProxy, MariaDbConnection connection, Statement statement) throws SQLException
SQLException
MariaSelectResultSet getActiveStreamingResult()
void setActiveStreamingResult(MariaSelectResultSet mariaSelectResultSet)
ReentrantLock getLock()
void getMoreResults(ExecutionResult executionResult) throws QueryException
QueryException
void setMoreResults(boolean moreResults, boolean moreResultsTypeBinary)
void setHasWarnings(boolean hasWarnings)
void releaseWriterBuffer()
ByteBuffer getWriter()
ServerPrepareResult addPrepareInCache(String key, ServerPrepareResult serverPrepareResult)
void readEofPacket() throws QueryException, IOException
QueryException
IOException
void skipEofPacket() throws QueryException, IOException
QueryException
IOException
ReadPacketFetcher getPacketFetcher()
void changeSocketTcpNoDelay(boolean setTcpNoDelay) throws SocketException
SocketException
void changeSocketSoTimeout(int setSoTimeout) throws SocketException
SocketException
ServerPrepareResult getPrepareStatementFromCache(String key)
Copyright © 2016. All rights reserved.