public interface Protocol
ServerPrepareResult prepare(String sql, boolean executeOnMaster) throws SQLException
SQLException
boolean getAutocommit() throws SQLException
SQLException
boolean noBackslashEscapes()
void connect() throws SQLException
SQLException
UrlParser getUrlParser()
boolean inTransaction()
FailoverProxy getProxy()
void setProxy(FailoverProxy proxy)
Options getOptions()
boolean hasMoreResults()
void close()
void abort()
void reset() throws SQLException
SQLException
void closeExplicit()
boolean isClosed()
void resetDatabase() throws SQLException
SQLException
String getCatalog() throws SQLException
SQLException
void setCatalog(String database) throws SQLException
SQLException
String getServerVersion()
boolean isConnected()
boolean getReadonly() throws SQLException
SQLException
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()
boolean ping() throws SQLException
SQLException
boolean isValid(int timeout) 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 executeQuery(boolean mustExecuteOnMaster, Results results, ClientPrepareResult clientPrepareResult, ParameterHolder[] parameters, int timeout) throws SQLException
SQLException
boolean executeBatchClient(boolean mustExecuteOnMaster, Results results, ClientPrepareResult prepareResult, List<ParameterHolder[]> parametersList, boolean hasLongData) throws SQLException
SQLException
void executeBatchStmt(boolean mustExecuteOnMaster, Results results, List<String> queries) throws SQLException
SQLException
void executePreparedQuery(boolean mustExecuteOnMaster, ServerPrepareResult serverPrepareResult, Results results, ParameterHolder[] parameters) throws SQLException
SQLException
boolean executeBatchServer(boolean mustExecuteOnMaster, ServerPrepareResult serverPrepareResult, Results results, String sql, List<ParameterHolder[]> parameterList, boolean hasLongData) throws SQLException
SQLException
void getResult(Results results) throws SQLException
SQLException
void cancelCurrentQuery() throws SQLException
SQLException
void interrupt()
void skip() throws SQLException
SQLException
boolean checkIfMaster() throws SQLException
SQLException
boolean hasWarnings()
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()
void setTimeout(int timeout) throws SocketException
SocketException
boolean getPinGlobalTxToPhysicalConnection()
long getServerThreadId()
Socket getSocket()
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)
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(Exception initialException)
PacketInputStream getReader()
PacketOutputStream getWriter()
boolean isEofDeprecated()
int getAutoIncrementIncrement() throws SQLException
SQLException
boolean sessionStateAware()
String getTraces()
boolean isInterrupted()
void stopIfInterrupted() throws SQLTimeoutException
SQLTimeoutException
Copyright © 2019 mariadb.org. All rights reserved.