## Uses of Class
org.mariadb.jdbc.internal.util.dao.QueryException

Packages that use QueryException
org.mariadb.jdbc.internal.failover
org.mariadb.jdbc.internal.failover.impl
org.mariadb.jdbc.internal.packet.read
org.mariadb.jdbc.internal.packet.send
org.mariadb.jdbc.internal.protocol
org.mariadb.jdbc.internal.query
org.mariadb.jdbc.internal.queryresults
org.mariadb.jdbc.internal.util
org.mariadb.jdbc.internal.util.dao

### Uses of QueryException in org.mariadb.jdbc.internal.failover

Methods in org.mariadb.jdbc.internal.failover with parameters of type QueryException

`boolean`

FailoverProxy.`hasToHandleFailover(QueryException exception)`
Check if this Sqlerror is a connection exception. if that's the case, must be handle by failover error codes : 08000 : connection exception 08001 : SQL client unable to establish SQL connection 08002 : connection name in use 08003 : connection does not exist 08004 : SQL server rejected SQL connection 08006 : connection failure 08007 : transaction resolution unknown 70100 : connection was killed

`void` Listener.`throwFailoverMessage(HostAddress failHostAddress, boolean wasMaster, QueryException queryException, boolean reconnected)`
`void` AbstractMastersListener.`throwFailoverMessage(HostAddress failHostAddress, boolean wasMaster, QueryException queryException, boolean reconnected)` Throw a human readable message after a failoverException.

Methods in org.mariadb.jdbc.internal.failover that throw QueryException
`void` Listener.`foundActiveMaster(Protocol protocol)`
`abstract void` AbstractMastersSlavesListener.`foundActiveSecondary(Protocol newSecondaryProtocol)`
`void` Listener.`initializeConnection()`
`void` AbstractMastersListener.`initializeConnection()` Initialize Listener.
`protected void` AbstractMastersListener.`preAutoReconnect()`
`void` Listener.`preExecute()`
`abstract void` AbstractMastersListener.`preExecute()`
`void` Listener.`reconnect()`
`abstract void` AbstractMastersListener.`reconnect()`
`void` Listener.`reconnectFailedConnection(SearchFilter filter)`
`abstract void` AbstractMastersListener.`reconnectFailedConnection(SearchFilter filter)`
`protected void` AbstractMastersListener.`setSessionReadOnly(boolean readOnly, Protocol protocol)`
`void` Listener.`switchReadOnlyConnection(Boolean readonly)`
`abstract void` AbstractMastersListener.`switchReadOnlyConnection(Boolean readonly)`
`void` Listener.`syncConnection(Protocol from, Protocol to)`
`void` AbstractMastersListener.`syncConnection(Protocol from, Protocol to)` When switching between 2 connections, report existing connection parameter to the new used connection.
`void` Listener.`throwFailoverMessage(HostAddress failHostAddress, boolean wasMaster, QueryException queryException, boolean reconnected)`
`void` AbstractMastersListener.`throwFailoverMessage(HostAddress failHostAddress, boolean wasMaster, QueryException queryException, boolean reconnected)` Throw a human readable message after a failoverException.

Constructors in org.mariadb.jdbc.internal.failover that throw QueryException
Constructor and Description
`FailoverProxy(Listener listener, ReentrantLock lock)` Procy constructor.

### Uses of QueryException in org.mariadb.jdbc.internal.failover.impl

Methods in org.mariadb.jdbc.internal.failover.impl with parameters of type QueryException
`protected void` MastersSlavesListener.`checkInitialConnection(QueryException queryException)`

Methods in org.mariadb.jdbc.internal.failover.impl that throw QueryException
`protected void` MastersSlavesListener.`checkInitialConnection(QueryException queryException)`
`void` MastersSlavesListener.`checkWaitingConnection()` Verify that there is waiting connection that have to replace failing one.
`void` MastersFailoverListener.`foundActiveMaster(Protocol protocol)` method called when a new Master connection is found after a fallback.
`void` MastersSlavesListener.`foundActiveSecondary(Protocol newSecondaryProtocol)` Method called when a new secondary connection is found after a fallback.
`void` MastersSlavesListener.`initializeConnection()` Initialize connections.
`void` MastersFailoverListener.`initializeConnection()` Connect to database.
`void` MastersSlavesListener.`lockAndSwitchSecondary(Protocol newSecondaryProtocol)` Use the parameter newSecondaryProtocol as new current secondary connection.
`void` MastersSlavesListener.`preExecute()`
`void` MastersFailoverListener.`preExecute()` Before executing query, reconnect if connection is closed, and autoReconnect option is set.
`void` MastersSlavesListener.`reconnect()` Reconnect failed connection.
`void` MastersFailoverListener.`reconnect()` Try to reconnect connection.
`void` MastersSlavesListener.`reconnectFailedConnection(SearchFilter searchFilter)` Loop to connect.
`void` MastersFailoverListener.`reconnectFailedConnection(SearchFilter searchFilter)` Loop to connect failed hosts.
`void` AuroraListener.`reconnectFailedConnection(SearchFilter searchFilter)` Search a valid connection for failed one.
`void` MastersSlavesListener.`switchReadOnlyConnection(Boolean mustBeReadOnly)` Switch to a read-only(secondary) or read and write connection(master).
`void` MastersFailoverListener.`switchReadOnlyConnection(Boolean mustBeReadOnly)` Force session to read-only according to options.

### Uses of QueryException in org.mariadb.jdbc.internal.packet.read

Constructors in org.mariadb.jdbc.internal.packet.read that throw QueryException
Constructor and Description
`ReadInitialConnectPacket(ReadPacketFetcher packetFetcher)` Read database initial stream.

### Uses of QueryException in org.mariadb.jdbc.internal.packet.send

Methods in org.mariadb.jdbc.internal.packet.send that throw QueryException
`int` SendTextQueryPacket.`send(OutputStream stream)` Send queries to server.
`int` InterfaceSendPacket.`send(OutputStream os)`

### Uses of QueryException in org.mariadb.jdbc.internal.protocol

Methods in org.mariadb.jdbc.internal.protocol that throw QueryException
`void` Protocol.`cancelCurrentQuery()`
`void` AbstractQueryProtocol.`cancelCurrentQuery()` Cancels the current query - clones the current protocol and executes a query using the new connection.
`boolean` Protocol.`checkIfMaster()`
`boolean` AuroraProtocol.`checkIfMaster()` Aurora best way to check if a node is a master : is not in read-only mode.
`boolean` AbstractConnectProtocol.`checkIfMaster()`
`protected static void` AbstractConnectProtocol.`close(ReadPacketFetcher fetcher, PacketOutputStream packetOutputStream, Socket socket)`
`void` Protocol.`closePreparedStatement(int statementId)`
`void` AbstractQueryProtocol.`closePreparedStatement(int statementId)`
`void` Protocol.`connect()`
`void` AbstractConnectProtocol.`connect()` Connect to currentHost.
`void` Protocol.`connectWithoutProxy()`
`void` AbstractConnectProtocol.`connectWithoutProxy()` Connect without proxy.
`AbstractQueryResult` AbstractQueryProtocol.`executeBatch(List<Query> queries, boolean streaming, boolean isRewritable, int rewriteOffset)` Execute queries.
`AbstractQueryResult` Protocol.`executePreparedQuery(String sql, ParameterHolder[] parameters, PrepareResult prepareResult, MariaDbType[] parameterTypeHeader, boolean isStreaming)`
`AbstractQueryResult` AbstractQueryProtocol.`executePreparedQuery(String sql, ParameterHolder[] parameters, PrepareResult prepareResult, MariaDbType[] parameterTypeHeader, boolean isStreaming)`
`AbstractQueryResult` Protocol.`executePreparedQueryAfterFailover(String sql, ParameterHolder[] parameters, PrepareResult oldPrepareResult, MariaDbType[] parameterTypeHeader, boolean isStreaming)`
`AbstractQueryResult` AbstractQueryProtocol.`executePreparedQueryAfterFailover(String sql, ParameterHolder[] parameters, PrepareResult oldPrepareResult, MariaDbType[] parameterTypeHeader, boolean isStreaming)`
`AbstractQueryResult` Protocol.`executeQuery(List<Query> queries, boolean streaming, boolean isRewritable, int rewriteOffset)`
`AbstractQueryResult` AbstractQueryProtocol.`executeQuery(List<Query> queries, boolean streaming, boolean isRewritable, int rewriteOffset)` Execute list of queries.
`AbstractQueryResult` Protocol.`executeQuery(Query query)`
`AbstractQueryResult` AbstractQueryProtocol.`executeQuery(Query query)`
`abstract AbstractQueryResult` AbstractConnectProtocol.`executeQuery(Query query)`
`AbstractQueryResult` Protocol.`executeQuery(Query query, boolean streaming)`
`AbstractQueryResult` AbstractQueryProtocol.`executeQuery(Query query, boolean streaming)` Execute query.
`protected static boolean` MastersSlavesProtocol.`foundSecondary(MastersSlavesListener listener, MastersSlavesProtocol protocol, SearchFilter searchFilter)`
`AbstractQueryResult` Protocol.`getMoreResults(boolean streaming)`
`AbstractQueryResult` AbstractQueryProtocol.`getMoreResults(boolean streaming)`
`abstract AbstractQueryResult` AbstractConnectProtocol.`getMoreResults(boolean streaming)`
`AbstractQueryResult` Protocol.`getResult(Object queryObj, boolean streaming, boolean binaryProtocol)`
`AbstractQueryResult` AbstractQueryProtocol.`getResult(Object queriesObj, boolean streaming, boolean binaryProtocol)`
`static void` AuroraProtocol.`loop(AuroraListener listener, List<HostAddress> addresses, SearchFilter searchFilter)` loop until found the failed connection.
`static void` MasterProtocol.`loop(Listener listener, List<HostAddress> addresses, SearchFilter searchFilter)` loop until found the failed connection.
`static void` MastersSlavesProtocol.`loop(MastersSlavesListener listener, List<HostAddress> addresses, SearchFilter searchFilter)` loop until found the failed connection.
`boolean` Protocol.`ping()`
`boolean` AbstractQueryProtocol.`ping()`
`PrepareResult` Protocol.`prepare(String sql)`
`PrepareResult` AbstractQueryProtocol.`prepare(String sql)`
`void` AbstractConnectProtocol.`readEofPacket()` Check that next read packet is a End-of-file packet.
`void` Protocol.`releasePrepareStatement(String sql, int statementId)`
`void` AbstractQueryProtocol.`releasePrepareStatement(String sql, int statementId)`
`static void` AuroraProtocol.`searchProbableMaster(AuroraListener listener, HostAddress probableMaster, SearchFilter searchFilter)` Connect aurora probable master.
`void` Protocol.`setCatalog(String database)`
`void` AbstractQueryProtocol.`setCatalog(String database)`
`void` Protocol.`setMaxRows(int max)`
`void` AbstractQueryProtocol.`setMaxRows(int max)`
`void` Protocol.`setReadonly(boolean readOnly)`
`void` Protocol.`setTransactionIsolation(int level)`
`void` AbstractQueryProtocol.`setTransactionIsolation(int level)` Set transaction isolation.

### Uses of QueryException in org.mariadb.jdbc.internal.query

Methods in org.mariadb.jdbc.internal.query that throw QueryException
`void` Query.`validate()`
`void` MariaDbQuery.`validate()`
`void` MariaDbClientParameterizeQuery.`validate()` Validate that all parameters are set.

### Uses of QueryException in org.mariadb.jdbc.internal.queryresults

Subclasses of QueryException in org.mariadb.jdbc.internal.queryresults
`class` `NoSuchColumnException`

Methods in org.mariadb.jdbc.internal.queryresults that throw QueryException
`static CachedSelectResult` CachedSelectResult.`createCachedSelectResult(StreamingSelectResult streamingResult)` Will retrieve all "next" stream, and cache them.
`static StreamingSelectResult` StreamingSelectResult.`createStreamingSelectResult(ResultSetPacket packet, ReadPacketFetcher packetFetcher, AbstractQueryProtocol protocol, boolean binaryProtocol)` Create streaming resultset.
`boolean` StreamingSelectResult.`next()`
`abstract boolean` SelectQueryResult.`next()` Move pointer forward.
`boolean` CachedSelectResult.`next()`

### Uses of QueryException in org.mariadb.jdbc.internal.util

Methods in org.mariadb.jdbc.internal.util with parameters of type QueryException
`static SQLException` ExceptionMapper.`createException(QueryException exception, MariaDbConnection connection, Statement statement)` Helper to create exception from queryException.
`static void` ExceptionMapper.`throwException(QueryException exception, MariaDbConnection connection, Statement statement)` Helper to throw exception.

Methods in org.mariadb.jdbc.internal.util that throw QueryException
`static Protocol` Utils.`retrieveProxy(UrlParser urlParser, ReentrantLock lock)` Retreive protocol corresponding to the failover options.

### Uses of QueryException in org.mariadb.jdbc.internal.util.dao

Subclasses of QueryException in org.mariadb.jdbc.internal.util.dao
`class` `ReconnectDuringTransactionException`