public interface Protocol
PrepareResult prepare(String sql) throws QueryException
QueryExceptionvoid closePreparedStatement(int statementId)
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()
String getDatabase()
String getUsername()
String getPassword()
boolean ping()
throws QueryException
QueryExceptionExecutionResult executeQuery(Query query) throws QueryException
QueryExceptionvoid executeQuery(Query query, ExecutionResult executionResult, int resultSetScrollType, int fetchSize) throws QueryException
QueryExceptionvoid executeMultiQueries(Deque<Query> queries, ExecutionResult executionResult, int fetchSize, boolean isRewritable, int rewriteOffset) throws QueryException
QueryExceptionvoid executeQueries(Deque<Query> queries, ExecutionResult executionResult, int resultSetScrollType) throws QueryException
QueryExceptionvoid executePreparedQuery(String sql, ExecutionResult executionResult, ParameterHolder[] parameters, PrepareResult prepareResult, MariaDbType[] parameterTypeHeader, int resultSetScrollType) throws QueryException
QueryExceptionvoid executePreparedQueryAfterFailover(String sql, ExecutionResult executionResult, ParameterHolder[] parameters, PrepareResult prepareResult, MariaDbType[] parameterTypeHeader, int resultSetScrollType) throws QueryException
QueryExceptionvoid getResult(ExecutionResult executionResult, int resultSetScrollType, boolean binaryProtocol) throws QueryException
QueryExceptionvoid cancelCurrentQuery()
throws QueryException,
IOException
QueryExceptionIOExceptionvoid skip() throws SQLException, QueryException
SQLExceptionQueryExceptionboolean hasUnreadData()
boolean 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 closeIfActiveResult()
throws SQLException
SQLExceptionvoid connectWithoutProxy()
throws QueryException
QueryExceptionboolean shouldReconnectWithoutProxy()
void setHostFailedWithoutProxy()
void releasePrepareStatement(String sql, int statementId) throws QueryException
QueryExceptionvoid forceReleasePrepareStatement(int statementId)
throws QueryException
QueryExceptionPrepareStatementCache prepareStatementCache()
Calendar getCalendar()
void setHasWarnings(boolean hasWarnings)
MariaSelectResultSet getActiveResult()
void setActiveResult(MariaSelectResultSet mariaSelectResultSet)
ReentrantLock getLock()
void getMoreResults(ExecutionResult executionResult) throws QueryException
QueryExceptionvoid setMoreResults(boolean moreResults,
boolean moreResultsTypeBinary)
Copyright © 2016. All rights reserved.