public interface Protocol
MySQLProtocol.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()
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
QueryException
String getServerVersion()
void setReadonly(boolean readOnly) throws QueryException
QueryException
boolean 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
QueryException
QueryResult executeQuery(Query dQuery) throws QueryException
QueryException
QueryResult executeQuery(List<Query> dQueries, boolean streaming, boolean isRewritable, int rewriteOffset) throws QueryException
QueryException
QueryResult getResult(List<Query> dQuery, boolean streaming) 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 setMaxRows(int max) throws QueryException
QueryException
void 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
SocketException
int getTimeout() 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()
Copyright © 2015. All rights reserved.