public interface Protocol
ServerPrepareResult prepare(String sql, boolean executeOnMaster) throws SQLException
SQLException
boolean getAutocommit()
boolean noBackslashEscapes()
void connect() throws SQLException
SQLException
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 SQLException
SQLException
String getServerVersion()
boolean isConnected()
boolean getReadonly()
void setReadonly(boolean readOnly) throws SQLException
SQLException
boolean isMasterConnection()
boolean mustBeMasterConnection()
HostAddress getHostAddress()
void setHostAddress(HostAddress hostAddress)
String getHost()
int getPort()
void rollback() throws SQLException
SQLException
String getDatabase()
String getUsername()
String getPassword()
boolean ping() throws SQLException
SQLException
void executeQuery(String sql) throws SQLException
SQLException
void executeQuery(boolean mustExecuteOnMaster, Results results, String sql) throws SQLException
SQLException
void executeQuery(boolean mustExecuteOnMaster, Results results, String sql, Charset charset) throws SQLException
SQLException
void executeQuery(boolean mustExecuteOnMaster, Results results, ClientPrepareResult clientPrepareResult, ParameterHolder[] parameters) throws SQLException
SQLException
void executeBatchMulti(boolean mustExecuteOnMaster, Results results, ClientPrepareResult clientPrepareResult, List<ParameterHolder[]> parameterList) throws SQLException
SQLException
void executeBatch(boolean mustExecuteOnMaster, Results results, List<String> queries) throws SQLException
SQLException
void executeBatchMultiple(boolean mustExecuteOnMaster, Results results, List<String> queries) throws SQLException
SQLException
void executeBatchRewrite(boolean mustExecuteOnMaster, Results results, ClientPrepareResult prepareResult, List<ParameterHolder[]> parameterList, boolean rewriteValues) throws SQLException
SQLException
void executePreparedQuery(boolean mustExecuteOnMaster, ServerPrepareResult serverPrepareResult, Results results, ParameterHolder[] parameters) throws SQLException
SQLException
ServerPrepareResult prepareAndExecutes(boolean mustExecuteOnMaster, ServerPrepareResult serverPrepareResult, Results results, String sql, List<ParameterHolder[]> parameterList) throws SQLException
SQLException
ServerPrepareResult prepareAndExecute(boolean mustExecuteOnMaster, ServerPrepareResult serverPrepareResult, Results results, String sql, ParameterHolder[] parameters) throws SQLException
SQLException
void getResult(Results results) throws SQLException
SQLException
void cancelCurrentQuery() throws SQLException, IOException
SQLException
IOException
void skip() throws SQLException, SQLException
SQLException
boolean checkIfMaster() throws SQLException
SQLException
boolean hasWarnings()
int getDataTypeMappingFlags()
void setInternalMaxRows(long max)
long getMaxRows()
void setMaxRows(long max) throws SQLException
SQLException
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 SQLException
SQLException
int getTransactionIsolationLevel()
boolean isExplicitClosed()
void connectWithoutProxy() throws SQLException
SQLException
boolean shouldReconnectWithoutProxy()
void setHostFailedWithoutProxy()
void releasePrepareStatement(ServerPrepareResult serverPrepareResult) throws SQLException
SQLException
boolean forceReleasePrepareStatement(int statementId) throws SQLException
SQLException
void forceReleaseWaitingPrepareStatement() throws SQLException
SQLException
ServerPrepareStatementCache prepareStatementCache()
TimeZone getTimeZone()
void prolog(long maxRows, boolean hasProxy, MariaDbConnection connection, MariaDbStatement statement) throws SQLException
SQLException
void prologProxy(ServerPrepareResult serverPrepareResult, long maxRows, boolean hasProxy, MariaDbConnection connection, MariaDbStatement statement) throws SQLException
SQLException
Results getActiveStreamingResult()
void setActiveStreamingResult(Results mariaSelectResultSet)
ReentrantLock getLock()
void setServerStatus(short serverStatus)
void removeHasMoreResults()
void setHasWarnings(boolean hasWarnings)
ServerPrepareResult addPrepareInCache(String key, ServerPrepareResult serverPrepareResult)
void readEofPacket() throws SQLException, IOException
SQLException
IOException
void skipEofPacket() throws SQLException, IOException
SQLException
IOException
void changeSocketTcpNoDelay(boolean setTcpNoDelay) throws SocketException
SocketException
void changeSocketSoTimeout(int setSoTimeout) throws SocketException
SocketException
void removeActiveStreamingResult()
void resetStateAfterFailover(long maxRows, int transactionIsolationLevel, String database, boolean autocommit) throws SQLException
SQLException
void setActiveFutureTask(FutureTask activeFutureTask)
boolean isServerMariaDb()
SQLException handleIoException(IOException initialException)
PacketInputStream getReader()
PacketOutputStream getWriter()
boolean isEofDeprecated()
int getAutoIncrementIncrement()
boolean sessionStateAware()
String getTraces()
Copyright © 2017. All rights reserved.