public interface Protocol
ServerPrepareResult prepare(String sql, boolean executeOnMaster) throws SQLException
SQLExceptionboolean getAutocommit()
throws SQLException
SQLExceptionboolean noBackslashEscapes()
void connect()
throws SQLException
SQLExceptionUrlParser getUrlParser()
boolean inTransaction()
FailoverProxy getProxy()
void setProxy(FailoverProxy proxy)
Options getOptions()
boolean hasMoreResults()
void close()
void abort()
void reset()
throws SQLException
SQLExceptionvoid closeExplicit()
boolean isClosed()
void resetDatabase()
throws SQLException
SQLExceptionString getCatalog() throws SQLException
SQLExceptionvoid setCatalog(String database) throws SQLException
SQLExceptionString getServerVersion()
boolean isConnected()
boolean getReadonly()
throws SQLException
SQLExceptionvoid setReadonly(boolean readOnly)
throws SQLException
SQLExceptionboolean isMasterConnection()
boolean mustBeMasterConnection()
HostAddress getHostAddress()
void setHostAddress(HostAddress hostAddress)
String getHost()
int getPort()
void rollback()
throws SQLException
SQLExceptionString getDatabase()
String getUsername()
boolean ping()
throws SQLException
SQLExceptionboolean isValid(int timeout)
throws SQLException
SQLExceptionvoid executeQuery(String sql) throws SQLException
SQLExceptionvoid executeQuery(boolean mustExecuteOnMaster,
Results results,
String sql)
throws SQLException
SQLExceptionvoid executeQuery(boolean mustExecuteOnMaster,
Results results,
String sql,
Charset charset)
throws SQLException
SQLExceptionvoid executeQuery(boolean mustExecuteOnMaster,
Results results,
ClientPrepareResult clientPrepareResult,
ParameterHolder[] parameters)
throws SQLException
SQLExceptionvoid executeQuery(boolean mustExecuteOnMaster,
Results results,
ClientPrepareResult clientPrepareResult,
ParameterHolder[] parameters,
int timeout)
throws SQLException
SQLExceptionboolean executeBatchClient(boolean mustExecuteOnMaster,
Results results,
ClientPrepareResult prepareResult,
List<ParameterHolder[]> parametersList,
boolean hasLongData)
throws SQLException
SQLExceptionvoid executeBatchStmt(boolean mustExecuteOnMaster,
Results results,
List<String> queries)
throws SQLException
SQLExceptionvoid executePreparedQuery(boolean mustExecuteOnMaster,
ServerPrepareResult serverPrepareResult,
Results results,
ParameterHolder[] parameters)
throws SQLException
SQLExceptionboolean executeBatchServer(boolean mustExecuteOnMaster,
ServerPrepareResult serverPrepareResult,
Results results,
String sql,
List<ParameterHolder[]> parameterList,
boolean hasLongData)
throws SQLException
SQLExceptionvoid getResult(Results results) throws SQLException
SQLExceptionvoid cancelCurrentQuery()
throws SQLException
SQLExceptionvoid interrupt()
void skip() throws SQLException
SQLExceptionboolean checkIfMaster()
throws SQLException
SQLExceptionboolean hasWarnings()
long getMaxRows()
void setMaxRows(long max)
throws SQLException
SQLExceptionint getMajorServerVersion()
int getMinorServerVersion()
boolean versionGreaterOrEqual(int major,
int minor,
int patch)
void setLocalInfileInputStream(InputStream inputStream)
int getTimeout()
void setTimeout(int timeout)
throws SocketException
SocketExceptionboolean getPinGlobalTxToPhysicalConnection()
long getServerThreadId()
Socket getSocket()
void setTransactionIsolation(int level)
throws SQLException
SQLExceptionint getTransactionIsolationLevel()
boolean isExplicitClosed()
void connectWithoutProxy()
throws SQLException
SQLExceptionboolean shouldReconnectWithoutProxy()
void setHostFailedWithoutProxy()
void releasePrepareStatement(ServerPrepareResult serverPrepareResult) throws SQLException
SQLExceptionboolean forceReleasePrepareStatement(int statementId)
throws SQLException
SQLExceptionvoid forceReleaseWaitingPrepareStatement()
throws SQLException
SQLExceptionServerPrepareStatementCache prepareStatementCache()
TimeZone getTimeZone()
void prolog(long maxRows,
boolean hasProxy,
MariaDbConnection connection,
MariaDbStatement statement)
throws SQLException
SQLExceptionvoid prologProxy(ServerPrepareResult serverPrepareResult, long maxRows, boolean hasProxy, MariaDbConnection connection, MariaDbStatement statement) throws SQLException
SQLExceptionResults 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
SQLExceptionIOExceptionvoid skipEofPacket()
throws SQLException,
IOException
SQLExceptionIOExceptionvoid changeSocketTcpNoDelay(boolean setTcpNoDelay)
void changeSocketSoTimeout(int setSoTimeout)
throws SocketException
SocketExceptionvoid removeActiveStreamingResult()
void resetStateAfterFailover(long maxRows,
int transactionIsolationLevel,
String database,
boolean autocommit)
throws SQLException
SQLExceptionvoid setActiveFutureTask(FutureTask activeFutureTask)
boolean isServerMariaDb()
throws SQLException
SQLExceptionSQLException handleIoException(Exception initialException)
PacketInputStream getReader()
PacketOutputStream getWriter()
boolean isEofDeprecated()
int getAutoIncrementIncrement()
throws SQLException
SQLExceptionboolean sessionStateAware()
String getTraces()
boolean isInterrupted()
void stopIfInterrupted()
throws SQLTimeoutException
SQLTimeoutExceptionCopyright © 2019 mariadb.org. All rights reserved.