public interface Protocol
PrepareResult prepare(String sql) throws QueryException
QueryException
void closePreparedStatement(int statementId) throws QueryException
QueryException
boolean getAutocommit()
boolean noBackslashEscapes() throws QueryException
QueryException
void connect() throws QueryException
QueryException
JDBCUrl getJdbcUrl()
boolean inTransaction()
FailoverProxy getProxy()
void setProxy(FailoverProxy proxy)
Options getOptions()
boolean hasMoreResults()
void close()
void closeExplicit()
boolean isClosed()
void setCatalog(String database) throws QueryException
QueryException
String getServerVersion()
boolean isConnected()
boolean getReadonly()
void setReadonly(boolean readOnly) throws QueryException
QueryException
boolean 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
QueryException
QueryResult executeQuery(Query dQuery) throws QueryException
QueryException
QueryResult executeQuery(List<Query> dQueries, boolean streaming, boolean isRewritable, int rewriteOffset) throws QueryException
QueryException
QueryResult getResult(Object dQuery, boolean streaming, boolean binaryProtocol) throws QueryException
QueryException
QueryResult executeQuery(Query dQuery, boolean streaming) throws QueryException
QueryException
void cancelCurrentQuery() throws QueryException, IOException
QueryException
IOException
QueryResult getMoreResults(boolean streaming) throws QueryException
QueryException
boolean hasUnreadData()
boolean checkIfMaster() throws QueryException
QueryException
boolean hasWarnings()
int getDatatypeMappingFlags()
void setInternalMaxRows(int max)
int getMaxRows()
void setMaxRows(int max) throws QueryException
QueryException
int getMajorServerVersion()
int getMinorServerVersion()
boolean versionGreaterOrEqual(int major, int minor, int patch)
void setLocalInfileInputStream(InputStream inputStream)
int getTimeout() throws SocketException
SocketException
void setTimeout(int timeout) throws SocketException
SocketException
boolean getPinGlobalTxToPhysicalConnection()
long getServerThreadId()
void setTransactionIsolation(int level) throws QueryException
QueryException
int getTransactionIsolationLevel()
boolean isExplicitClosed()
void closeIfActiveResult()
void connectWithoutProxy() throws QueryException
QueryException
boolean shouldReconnectWithoutProxy()
void setHostFailedWithoutProxy()
QueryResult executePreparedQuery(String sql, ParameterHolder[] parameters, PrepareResult prepareResult, MySQLType[] parameterTypeHeader, boolean isStreaming) throws QueryException
QueryException
void releasePrepareStatement(String sql, int statementId) throws QueryException
QueryException
QueryResult executePreparedQueryAfterFailover(String sql, ParameterHolder[] parameters, PrepareResult oldPrepareResult, MySQLType[] parameterTypeHeader, boolean isStreaming) throws QueryException
QueryException
PrepareStatementCache prepareStatementCache()
Calendar getCalendar()
Copyright © 2015. All rights reserved.