Uses of Interface
org.mariadb.jdbc.internal.protocol.Protocol
-
-
Uses of Protocol in org.mariadb.jdbc
Fields in org.mariadb.jdbc declared as Protocol Modifier and Type Field Description protected ProtocolMariaDbStatement. protocolthe protocol used to talk to the server.Methods in org.mariadb.jdbc that return Protocol Modifier and Type Method Description protected ProtocolMariaDbConnection. getProtocol()Methods in org.mariadb.jdbc with parameters of type Protocol Modifier and Type Method Description protected voidMariaDbStatement. skipMoreResults(Protocol protocol)Constructors in org.mariadb.jdbc with parameters of type Protocol Constructor Description MariaDbConnection(Protocol protocol)Creates a new connection with a given protocol and query factory. -
Uses of Protocol in org.mariadb.jdbc.internal.com.read.dao
Methods in org.mariadb.jdbc.internal.com.read.dao with parameters of type Protocol Modifier and Type Method Description ResultSetCmdInformation. getBatchGeneratedKeys(Protocol protocol)ResultSetCmdInformationBatch. getBatchGeneratedKeys(Protocol protocol)ResultSetCmdInformationMultiple. getBatchGeneratedKeys(Protocol protocol)ResultSetCmdInformationSingle. getBatchGeneratedKeys(Protocol protocol)ResultSetCmdInformation. getGeneratedKeys(Protocol protocol, String sql)ResultSetCmdInformationBatch. getGeneratedKeys(Protocol protocol, String sql)Return GeneratedKeys containing insert ids.ResultSetCmdInformationMultiple. getGeneratedKeys(Protocol protocol, String sql)Return GeneratedKeys containing insert ids.ResultSetCmdInformationSingle. getGeneratedKeys(Protocol protocol, String sql)Get generated Keys.ResultSetResults. getGeneratedKeys(Protocol protocol)Send a resultSet that contain auto generated keys.booleanResults. getMoreResults(int current, Protocol protocol)Position to next resultSet.booleanResults. isFullyLoaded(Protocol protocol)Indicate if result contain result-set that is still streaming from server.voidResults. loadFully(boolean skip, Protocol protocol)Load fully current results. -
Uses of Protocol in org.mariadb.jdbc.internal.com.read.resultset
Methods in org.mariadb.jdbc.internal.com.read.resultset with parameters of type Protocol Modifier and Type Method Description static ResultSetSelectResultSet. createGeneratedData(long[] data, Protocol protocol, boolean findColumnReturnsOne)Create a result set from given data.static ResultSetSelectResultSet. createResultSet(String[] columnNames, ColumnType[] columnTypes, String[][] data, Protocol protocol)Create a result set from given data.Constructors in org.mariadb.jdbc.internal.com.read.resultset with parameters of type Protocol Constructor Description SelectResultSet(ColumnDefinition[] columnDefinition, List<byte[]> resultSet, Protocol protocol, int resultSetScrollType)Create filled result-set.SelectResultSet(ColumnDefinition[] columnDefinition, Results results, Protocol protocol, PacketInputStream reader, boolean callableResult, boolean eofDeprecated)Create Streaming resultSet.UpdatableResultSet(ColumnDefinition[] columnsInformation, Results results, Protocol protocol, PacketInputStream reader, boolean callableResult, boolean eofDeprecated)Constructor. -
Uses of Protocol in org.mariadb.jdbc.internal.com.send
Constructors in org.mariadb.jdbc.internal.com.send with parameters of type Protocol Constructor Description ComStmtPrepare(Protocol protocol, String sql) -
Uses of Protocol in org.mariadb.jdbc.internal.failover
Fields in org.mariadb.jdbc.internal.failover declared as Protocol Modifier and Type Field Description protected ProtocolAbstractMastersListener. currentProtocolFields in org.mariadb.jdbc.internal.failover with type parameters of type Protocol Modifier and Type Field Description protected AtomicReference<Protocol>AbstractMastersReplicasListener. waitNewMasterProtocolprotected AtomicReference<Protocol>AbstractMastersReplicasListener. waitNewSecondaryProtocolMethods in org.mariadb.jdbc.internal.failover that return Protocol Modifier and Type Method Description ProtocolAbstractMastersListener. getCurrentProtocol()ProtocolListener. getCurrentProtocol()Methods in org.mariadb.jdbc.internal.failover with parameters of type Protocol Modifier and Type Method Description voidAbstractMastersListener. abortConnection(Protocol protocol)Utility to force close existing connection.voidAbstractMastersListener. closeConnection(Protocol protocol)Utility to close existing connection.voidListener. foundActiveMaster(Protocol protocol)abstract voidAbstractMastersReplicasListener. foundActiveSecondary(Protocol newSecondaryProtocol)HandleErrorResultAbstractMastersListener. handleFailover(SQLException qe, Method method, Object[] args, Protocol protocol, boolean isClosed)Call when a failover is detected on master connection.HandleErrorResultAbstractMastersReplicasListener. handleFailover(SQLException qe, Method method, Object[] args, Protocol protocol, boolean isClosed)Handle failover on master or replica connection.HandleErrorResultListener. handleFailover(SQLException qe, Method method, Object[] args, Protocol protocol, boolean wasClosed)ObjectAbstractMastersListener. invoke(Method method, Object[] args, Protocol specificProtocol)ObjectListener. invoke(Method method, Object[] args, Protocol specificProtocol)protected booleanAbstractMastersListener. pingMasterProtocol(Protocol protocol)protected voidAbstractMastersListener. setSessionReadOnly(boolean readOnly, Protocol protocol)voidAbstractMastersListener. syncConnection(Protocol from, Protocol to)When switching between 2 connections, report existing connection parameter to the new used connection.voidListener. syncConnection(Protocol from, Protocol to) -
Uses of Protocol in org.mariadb.jdbc.internal.failover.impl
Fields in org.mariadb.jdbc.internal.failover.impl declared as Protocol Modifier and Type Field Description protected ProtocolMastersReplicasListener. masterProtocolprotected ProtocolMastersReplicasListener. secondaryProtocolMethods in org.mariadb.jdbc.internal.failover.impl with parameters of type Protocol Modifier and Type Method Description voidMastersFailoverListener. foundActiveMaster(Protocol protocol)method called when a new Master connection is found after a fallback.voidMastersReplicasListener. foundActiveMaster(Protocol newMasterProtocol)Method called when a new Master connection is found after a fallback.voidMastersReplicasListener. foundActiveSecondary(Protocol newSecondaryProtocol)Method called when a new secondary connection is found after a fallback.voidMastersReplicasListener. lockAndSwitchMaster(Protocol newMasterProtocol)Use the parameter newMasterProtocol as new current master connection.voidMastersReplicasListener. lockAndSwitchSecondary(Protocol newSecondaryProtocol)Use the parameter newSecondaryProtocol as new current secondary connection.voidAuroraListener. retrieveAllEndpointsAndSet(Protocol protocol)Retrieves the information necessary to add a new endpoint.HostAddressAuroraListener. searchByStartName(Protocol secondaryProtocol, List<HostAddress> loopAddress)Looks for the current master/writer instance via the secondary protocol if it is found within 3 attempts. -
Uses of Protocol in org.mariadb.jdbc.internal.logging
Constructors in org.mariadb.jdbc.internal.logging with parameters of type Protocol Constructor Description ProtocolLoggingProxy(Protocol protocol, Options options)Constructor. -
Uses of Protocol in org.mariadb.jdbc.internal.protocol
Classes in org.mariadb.jdbc.internal.protocol that implement Protocol Modifier and Type Class Description classAbstractConnectProtocolclassAbstractQueryProtocolclassAuroraProtocolclassMasterProtocolclassMastersReplicasProtocolConstructors in org.mariadb.jdbc.internal.protocol with parameters of type Protocol Constructor Description AbstractMultiSend(Protocol protocol, PacketOutputStream writer, Results results, List<String> queries, ThreadPoolExecutor readScheduler)Bulk execute for statement.executeBatch().AbstractMultiSend(Protocol protocol, PacketOutputStream writer, Results results, ClientPrepareResult clientPrepareResult, List<ParameterHolder[]> parametersList, ThreadPoolExecutor readScheduler)Bulk execute for client-side PreparedStatement.executeBatch (no prepare).AbstractMultiSend(Protocol protocol, PacketOutputStream writer, Results results, ServerPrepareResult serverPrepareResult, List<ParameterHolder[]> parametersList, String sql, ThreadPoolExecutor readScheduler)Bulk execute for Server PreparedStatement.executeBatch (when no COM_MULTI)AsyncMultiRead(BulkStatus status, Protocol protocol, AbstractMultiSend bulkSend, int paramCount, Results results, List<ParameterHolder[]> parametersList, List<String> queries, PrepareResult prepareResult)Read results async to avoid local and remote networking stack buffer overflow "lock". -
Uses of Protocol in org.mariadb.jdbc.internal.util
Methods in org.mariadb.jdbc.internal.util that return Protocol Modifier and Type Method Description static ProtocolUtils. retrieveProxy(UrlParser urlParser, GlobalStateInfo globalInfo)Retrieve protocol corresponding to the failover options.Methods in org.mariadb.jdbc.internal.util with parameters of type Protocol Modifier and Type Method Description static StringUtils. nativeSql(String sql, Protocol protocol)Escape sql String.static ServerPrepareStatementCacheServerPrepareStatementCache. newInstance(int size, Protocol protocol) -
Uses of Protocol in org.mariadb.jdbc.internal.util.dao
Methods in org.mariadb.jdbc.internal.util.dao that return Protocol Modifier and Type Method Description ProtocolServerPrepareResult. getUnProxiedProtocol()Methods in org.mariadb.jdbc.internal.util.dao with parameters of type Protocol Modifier and Type Method Description voidServerPrepareResult. failover(int statementId, Protocol unProxiedProtocol)Update information after a failover.Constructors in org.mariadb.jdbc.internal.util.dao with parameters of type Protocol Constructor Description ServerPrepareResult(String sql, int statementId, ColumnDefinition[] columns, ColumnDefinition[] parameters, Protocol unProxiedProtocol)PrepareStatement Result object.
-