public interface Protocol
PrepareResult prepare(String sql, boolean forceNew) 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
QueryExceptionAbstractQueryResult executeQuery(String query, boolean streaming) throws QueryException
QueryExceptionAbstractQueryResult executeQuery(List<String> queries, boolean streaming, boolean isRewritable, int rewriteOffset) throws QueryException
QueryExceptionAbstractQueryResult executeQueries(List<String> queryParts, List<ParameterHolder[]> parameterList, boolean streaming, boolean isRewritable) throws QueryException
QueryExceptionAbstractQueryResult getResult(boolean streaming, boolean binaryProtocol) throws QueryException
QueryExceptionvoid cancelCurrentQuery()
throws QueryException,
IOException
QueryExceptionIOExceptionAbstractQueryResult getMoreResults(boolean streaming) throws QueryException
QueryExceptionboolean 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()
void connectWithoutProxy()
throws QueryException
QueryExceptionboolean shouldReconnectWithoutProxy()
void setHostFailedWithoutProxy()
AbstractQueryResult executePreparedQuery(PrepareResult prepareResult, String sql, ParameterHolder[] parameters, MariaDbType[] parameterTypeHeader, boolean isStreaming) throws QueryException
QueryExceptionAbstractQueryResult executePreparedQueryAfterFailover(PrepareResult prepareResult, String sql, ParameterHolder[] parameters, MariaDbType[] parameterTypeHeader, boolean isStreaming) throws QueryException
QueryExceptionvoid releasePrepareStatement(PrepareResult prepareResult, String sql) throws QueryException
QueryExceptionvoid forceReleasePrepareStatement(int statementId)
throws QueryException
QueryExceptionPrepareStatementCache prepareStatementCache()
Calendar getCalendar()
void prolog(boolean isStreaming,
int maxRows,
boolean hasProxy,
MariaDbConnection connection,
Statement statement)
throws SQLException
SQLExceptionvoid prologProxy(PrepareResult prepareResult, boolean isStreaming, int maxRows, boolean hasProxy, MariaDbConnection connection, Statement statement) throws SQLException
SQLExceptionCopyright © 2016. All rights reserved.