public interface Protocol
MySQLProtocol.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()
void setProxy(FailoverProxy proxy)
FailoverProxy getProxy()
void setHostAddress(HostAddress hostAddress)
Options getOptions()
boolean hasMoreResults()
void close()
void closeExplicit()
boolean isClosed()
void setCatalog(String database) throws QueryException
QueryExceptionString getServerVersion()
void setReadonly(boolean readOnly)
throws QueryException
QueryExceptionboolean isConnected()
boolean getReadonly()
boolean isMasterConnection()
boolean mustBeMasterConnection()
HostAddress getHostAddress()
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(List<Query> dQuery, boolean streaming) 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 setMaxRows(int max)
throws QueryException
QueryExceptionvoid setInternalMaxRows(int max)
int getMaxRows()
int getMajorServerVersion()
int getMinorServerVersion()
boolean versionGreaterOrEqual(int major,
int minor,
int patch)
void setLocalInfileInputStream(InputStream inputStream)
int getMaxAllowedPacket()
void setMaxAllowedPacket(int maxAllowedPacket)
void setTimeout(int timeout)
throws SocketException
SocketExceptionint getTimeout()
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()
Copyright © 2015. All rights reserved.