public interface Protocol
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,
Results results,
String sql)
throws QueryException
QueryExceptionvoid executeQuery(boolean mustExecuteOnMaster,
Results results,
ClientPrepareResult clientPrepareResult,
ParameterHolder[] parameters)
throws QueryException
QueryExceptionvoid executeBatchMulti(boolean mustExecuteOnMaster,
Results results,
ClientPrepareResult clientPrepareResult,
List<ParameterHolder[]> parameterList)
throws QueryException
QueryExceptionvoid executeBatch(boolean mustExecuteOnMaster,
Results results,
List<String> queries)
throws QueryException
QueryExceptionvoid executeBatchMultiple(boolean mustExecuteOnMaster,
Results results,
List<String> queries)
throws QueryException
QueryExceptionvoid executeBatchRewrite(boolean mustExecuteOnMaster,
Results results,
ClientPrepareResult prepareResult,
List<ParameterHolder[]> parameterList,
boolean rewriteValues)
throws QueryException
QueryExceptionvoid executePreparedQuery(boolean mustExecuteOnMaster,
ServerPrepareResult serverPrepareResult,
Results results,
ParameterHolder[] parameters)
throws QueryException
QueryExceptionServerPrepareResult prepareAndExecutes(boolean mustExecuteOnMaster, ServerPrepareResult serverPrepareResult, Results results, String sql, List<ParameterHolder[]> parameterList) throws QueryException
QueryExceptionServerPrepareResult prepareAndExecute(boolean mustExecuteOnMaster, ServerPrepareResult serverPrepareResult, Results results, String sql, ParameterHolder[] parameters) throws QueryException
QueryExceptionvoid getResult(Results results) 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(Results results, int maxRows, boolean hasProxy, MariaDbConnection connection, MariaDbStatement statement) throws SQLException
SQLExceptionvoid prologProxy(ServerPrepareResult serverPrepareResult, Results results, int maxRows, boolean hasProxy, MariaDbConnection connection, MariaDbStatement statement) throws SQLException
SQLExceptionResults getActiveStreamingResult()
void setActiveStreamingResult(Results mariaSelectResultSet)
ReentrantLock getLock()
void setMoreResults(boolean moreResults)
void setHasWarnings(boolean hasWarnings)
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
SocketExceptionvoid removeActiveStreamingResult()
Copyright © 2016. All rights reserved.