public interface Protocol
PrepareResult prepare(String sql) throws QueryException
QueryExceptionPrepareResult prepare(String sql, boolean forceNew, 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()
String getDatabase()
String getUsername()
String getPassword()
boolean ping()
throws QueryException
QueryExceptionvoid executeQuery(String sql) throws QueryException
QueryExceptionvoid executeQuery(ExecutionResult executionResult, String sql, int resultSetScrollType) throws QueryException
QueryExceptionvoid executeQueries(ExecutionResult executionResult, List<String> queries, int resultSetScrollType) throws QueryException
QueryExceptionvoid executeQueries(ExecutionResult executionResult, List<String> queryParts, List<ParameterHolder[]> parameterList, int resultSetScrollType, boolean isRewritable) throws QueryException
QueryExceptionvoid executeQueriesRewrite(ExecutionResult executionResult, List<String> queries, int resultSetScrollType, boolean isRewritable, int rewriteOffset) throws QueryException
QueryExceptionvoid getResult(ExecutionResult executionResult, int resultSetScrollType, boolean binaryProtocol) 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 executePreparedQuery(PrepareResult prepareResult, ExecutionResult executionResult, String sql, ParameterHolder[] parameters, MariaDbType[] parameterTypeHeader, int resultSetScrollType) throws QueryException
QueryExceptionvoid executePreparedQueryAfterFailover(PrepareResult oldPrepareResult, ExecutionResult executionResult, String sql, ParameterHolder[] parameters, MariaDbType[] parameterTypeHeader, int resultSetScrollType) throws QueryException
QueryExceptionvoid releasePrepareStatement(PrepareResult prepareResult, String sql) throws QueryException
QueryExceptionvoid forceReleasePrepareStatement(int statementId)
throws QueryException
QueryExceptionPrepareStatementCache prepareStatementCache()
Calendar getCalendar()
void prolog(ExecutionResult executionResult, int maxRows, boolean hasProxy, MariaDbConnection connection, Statement statement) throws SQLException
SQLExceptionvoid prologProxy(PrepareResult prepareResult, ExecutionResult executionResult, int maxRows, boolean hasProxy, MariaDbConnection connection, Statement statement) throws SQLException
SQLExceptionMariaSelectResultSet getActiveStreamingResult()
void setActiveStreamingResult(MariaSelectResultSet mariaSelectResultSet)
ReentrantLock getLock()
void getMoreResults(ExecutionResult executionResult) throws QueryException
QueryExceptionvoid setMoreResults(boolean moreResults,
boolean moreResultsTypeBinary)
void setHasWarnings(boolean hasWarnings)
Copyright © 2016. All rights reserved.