public interface Protocol
PrepareResult prepare(String sql) throws QueryException
QueryExceptionvoid closePreparedStatement(int statementId)
throws QueryException
QueryExceptionboolean getAutocommit()
boolean noBackslashEscapes()
throws QueryException
QueryExceptionvoid connect()
throws QueryException
QueryExceptionJDBCUrl 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
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
QueryExceptionQueryResult executeQuery(Query dQuery) throws QueryException
QueryExceptionQueryResult executeQuery(List<Query> dQueries, boolean streaming, boolean isRewritable, int rewriteOffset) throws QueryException
QueryExceptionQueryResult getResult(Object dQuery, boolean streaming, boolean binaryProtocol) throws QueryException
QueryExceptionQueryResult executeQuery(Query dQuery, boolean streaming) throws QueryException
QueryExceptionvoid cancelCurrentQuery()
throws QueryException,
IOException
QueryExceptionIOExceptionQueryResult getMoreResults(boolean streaming) throws QueryException
QueryExceptionboolean 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()
void connectWithoutProxy()
throws QueryException
QueryExceptionboolean shouldReconnectWithoutProxy()
void setHostFailedWithoutProxy()
QueryResult executePreparedQuery(String sql, ParameterHolder[] parameters, PrepareResult prepareResult, MySQLType[] parameterTypeHeader, boolean isStreaming) throws QueryException
QueryExceptionvoid releasePrepareStatement(String sql, int statementId) throws QueryException
QueryExceptionQueryResult executePreparedQueryAfterFailover(String sql, ParameterHolder[] parameters, PrepareResult oldPrepareResult, MySQLType[] parameterTypeHeader, boolean isStreaming) throws QueryException
QueryExceptionPrepareStatementCache prepareStatementCache()
Calendar getCalendar()
Copyright © 2015. All rights reserved.