| Modifier and Type | Field and Description |
|---|---|
protected Protocol |
OceanBaseStatement.protocol
the protocol used to talk to the server.
|
protected Protocol |
JDBC4ResultSet.protocol |
| Modifier and Type | Method and Description |
|---|---|
Protocol |
OceanBaseConnection.getProtocol() |
Protocol |
JDBC4ResultSet.getProtocol() |
| Modifier and Type | Method and Description |
|---|---|
static ResultSet |
JDBC4ResultSet.createGeneratedData(long[] data,
Protocol protocol,
boolean findColumnReturnsOne)
Create a result set from given data.
|
static JDBC4ResultSet |
JDBC4ResultSet.createResultSet(String[] columnNames,
ColumnType[] columnTypes,
String[][] data,
Protocol protocol)
Create a result set from given data.
|
void |
JDBC4ResultSet.setProtocol(Protocol protocol) |
| Constructor and Description |
|---|
JDBC4ResultSet(ColumnDefinition[] columnDefinition,
List<byte[]> resultSet,
Protocol protocol,
int resultSetScrollType)
Create filled result-set.
|
JDBC4ResultSet(ColumnDefinition[] columnDefinition,
Results results,
Protocol protocol,
boolean callableResult,
boolean eofDeprecated,
boolean isPsOutParameter)
Create a cursor resultSet
|
JDBC4ResultSet(ColumnDefinition[] columnDefinition,
Results results,
Protocol protocol,
PacketInputStream reader,
boolean callableResult,
boolean eofDeprecated,
boolean isPsOutParameter)
Create a complete or streaming resultSet
|
JDBC4UpdatableResultSet(ColumnDefinition[] columnsInformation,
Results results,
Protocol protocol,
PacketInputStream reader,
boolean callableResult,
boolean eofDeprecated,
boolean isPsOutParamter)
Constructor.
|
OceanBaseConnection(Protocol protocol)
Creates a new connection with a given protocol and query factory.
|
| Modifier and Type | Method and Description |
|---|---|
static TIMESTAMP |
TIMESTAMPTZ.resultTIMESTAMP(Protocol protocol,
byte[] bytes) |
static TIMESTAMP |
TIMESTAMPLTZ.resultTIMESTAMP(Protocol protocol,
byte[] bytes) |
static Timestamp |
TIMESTAMPTZ.toTimestamp(Protocol protocol,
byte[] bytes) |
static Timestamp |
TIMESTAMPLTZ.toTimestamp(Protocol protocol,
byte[] bytes) |
static TIMESTAMP |
TIMESTAMPTZ.toTIMESTAMP(Protocol protocol,
byte[] bytes) |
static TIMESTAMP |
TIMESTAMPLTZ.toTIMESTAMP(Protocol protocol,
byte[] bytes) |
static Timestamp |
TIMESTAMPTZ.toTimestamp(Protocol protocol,
byte[] bytes,
boolean isResult) |
static Timestamp |
TIMESTAMPLTZ.toTimestamp(Protocol protocol,
byte[] bytes,
boolean isResult) |
| Modifier and Type | Method and Description |
|---|---|
ResultSet |
CmdInformationMultiple.getBatchGeneratedKeys(Protocol protocol) |
ResultSet |
CmdInformation.getBatchGeneratedKeys(Protocol protocol) |
ResultSet |
CmdInformationSingle.getBatchGeneratedKeys(Protocol protocol) |
ResultSet |
CmdInformationBatch.getBatchGeneratedKeys(Protocol protocol) |
ResultSet |
Results.getGeneratedKeys(Protocol protocol)
Send a resultSet that contain auto generated keys.
|
ResultSet |
CmdInformationMultiple.getGeneratedKeys(Protocol protocol,
String sql)
Return GeneratedKeys containing insert ids.
|
ResultSet |
CmdInformation.getGeneratedKeys(Protocol protocol,
String sql) |
ResultSet |
CmdInformationSingle.getGeneratedKeys(Protocol protocol,
String sql)
Get generated Keys.
|
ResultSet |
CmdInformationBatch.getGeneratedKeys(Protocol protocol,
String sql)
Return GeneratedKeys containing insert ids.
|
boolean |
Results.getMoreResults(int current,
Protocol protocol)
Position to next resultSet.
|
boolean |
Results.isFullyLoaded(Protocol protocol)
Indicate if result contain result-set that is still streaming from server.
|
void |
Results.loadFully(boolean skip,
Protocol protocol)
Load fully current results.
|
| Constructor and Description |
|---|
Cursor(ColumnDefinition[] columnDefinition,
Results results,
Protocol protocol,
boolean callableResult,
boolean eofDeprecated,
boolean isPsOutParameter) |
CursorResultSet(ColumnDefinition[] columnsInformation,
Results results,
Protocol protocol,
boolean callableResult,
boolean eofDeprecated,
boolean isPsOutParamter) |
RefCursor(ColumnDefinition[] columnsInformation,
Results results,
Protocol protocol,
boolean callableResult,
boolean eofDeprecated,
boolean isPsOutParamter,
RowObCursorData rowObCursorData) |
SelectResultSet(ColumnDefinition[] columnDefinition,
List<byte[]> resultSet,
Protocol protocol,
int resultSetScrollType) |
SelectResultSet(ColumnDefinition[] columnDefinition,
Results results,
Protocol protocol,
boolean callableResult,
boolean eofDeprecated,
boolean isPsOutParameter) |
SelectResultSet(ColumnDefinition[] columnDefinition,
Results results,
Protocol protocol,
PacketInputStream reader,
boolean callableResult,
boolean eofDeprecated,
boolean isPsOutParameter) |
SensitiveCursorResultSet(ColumnDefinition[] columnsInformation,
Results results,
Protocol protocol,
boolean callableResult,
boolean eofDeprecated,
boolean isPsOutParamter) |
UpdatableResultSet(ColumnDefinition[] columnsInformation,
Results results,
Protocol protocol,
PacketInputStream reader,
boolean callableResult,
boolean eofDeprecated,
boolean isPsOutParamter)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Protocol |
RowProtocol.getProtocol() |
| Modifier and Type | Method and Description |
|---|---|
void |
RowProtocol.setProtocol(Protocol protocol) |
| Modifier and Type | Method and Description |
|---|---|
static ServerPrepareResult |
ComStmtPrepare.read(PacketInputStream reader,
boolean eofDeprecated,
Protocol protocol,
String sql)
Read COM_PREPARE_RESULT.
|
static ServerPrepareResult |
ComStmtPrepareExecute.read(Protocol protocol,
PacketInputStream reader,
ServerPrepareResult serverPrepareResult,
Results results) |
static void |
ComStmtPrepareExecute.readTailPacket(Protocol protocol,
PacketInputStream reader,
Results results,
boolean hasResultSet) |
static void |
ComStmtExecute.send(PacketOutputStream pos,
int statementId,
ParameterHolder[] parameters,
int parameterCount,
ColumnType[] parameterTypeHeader,
byte cursorFlag,
Protocol protocol)
Send a prepare statement binary stream.
|
static void |
ComStmtPrepareExecute.send(PacketOutputStream pos,
Results results,
int parameterCount,
ParameterHolder[] parameters,
ColumnType[] parameterTypeHeader,
byte cursorFlag,
Protocol protocol,
ServerPrepareResult serverPrepareResult)
Send a prepare statement binary stream.
|
static void |
ComStmtExecute.sendArrayBinding(PacketOutputStream pos,
int statementId,
List<ParameterHolder[]> queryParameters,
int queryParamtersSize,
int parameterCount,
ColumnType[] parameterTypeHeader,
byte cursorFlag,
Protocol protocol) |
static void |
ComStmtPrepareExecute.sendArrayBinding(PacketOutputStream pos,
int statementId,
List<ParameterHolder[]> queryParameters,
int queryParamtersSize,
int parameterCount,
ColumnType[] parameterTypeHeader,
byte cursorFlag,
Protocol protocol,
Results results,
ServerPrepareResult serverPrepareResult) |
static void |
ComStmtExecute.writeCmdArrayBinding(int statementId,
List<ParameterHolder[]> queryParameters,
int queryParamtersSize,
int parameterCount,
ColumnType[] parameterTypeHeader,
PacketOutputStream pos,
byte cursorFlag,
Protocol protocol) |
| Modifier and Type | Field and Description |
|---|---|
protected Protocol |
AbstractMastersListener.currentProtocol |
| Modifier and Type | Field and Description |
|---|---|
protected AtomicReference<Protocol> |
AbstractMastersSlavesListener.waitNewMasterProtocol |
protected AtomicReference<Protocol> |
AbstractMastersSlavesListener.waitNewSecondaryProtocol |
| Modifier and Type | Method and Description |
|---|---|
Protocol |
Listener.getCurrentProtocol() |
Protocol |
AbstractMastersListener.getCurrentProtocol() |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractMastersListener.abortConnection(Protocol protocol)
Utility to force close existing connection.
|
void |
AbstractMastersListener.closeConnection(Protocol protocol)
Utility to close existing connection.
|
void |
Listener.foundActiveMaster(Protocol protocol) |
abstract void |
AbstractMastersSlavesListener.foundActiveSecondary(Protocol newSecondaryProtocol) |
HandleErrorResult |
Listener.handleFailover(SQLException qe,
Method method,
Object[] args,
Protocol protocol,
boolean wasClosed) |
HandleErrorResult |
AbstractMastersListener.handleFailover(SQLException qe,
Method method,
Object[] args,
Protocol protocol,
boolean isClosed)
Call when a failover is detected on master connection.
|
HandleErrorResult |
AbstractMastersSlavesListener.handleFailover(SQLException qe,
Method method,
Object[] args,
Protocol protocol,
boolean isClosed)
Handle failover on master or slave connection.
|
Object |
Listener.invoke(Method method,
Object[] args,
Protocol specificProtocol) |
Object |
AbstractMastersListener.invoke(Method method,
Object[] args,
Protocol specificProtocol) |
protected boolean |
AbstractMastersListener.pingMasterProtocol(Protocol protocol) |
protected void |
AbstractMastersListener.setSessionReadOnly(boolean readOnly,
Protocol protocol) |
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.
|
| Modifier and Type | Field and Description |
|---|---|
protected Protocol |
MastersSlavesListener.masterProtocol |
protected Protocol |
MastersSlavesListener.secondaryProtocol |
| Modifier and Type | Method and Description |
|---|---|
void |
MastersFailoverListener.foundActiveMaster(Protocol protocol)
method called when a new Master connection is found after a fallback.
|
void |
MastersSlavesListener.foundActiveMaster(Protocol newMasterProtocol)
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.lockAndSwitchMaster(Protocol newMasterProtocol)
Use the parameter newMasterProtocol as new current master connection.
|
void |
MastersSlavesListener.lockAndSwitchSecondary(Protocol newSecondaryProtocol)
Use the parameter newSecondaryProtocol as new current secondary connection.
|
void |
AuroraListener.retrieveAllEndpointsAndSet(Protocol protocol)
Retrieves the information necessary to add a new endpoint.
|
HostAddress |
AuroraListener.searchByStartName(Protocol secondaryProtocol,
List<HostAddress> loopAddress)
Looks for the current master/writer instance via the secondary protocol if it is found within 3
attempts.
|
| Constructor and Description |
|---|
ProtocolLoggingProxy(Protocol protocol,
Options options)
Constructor.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractConnectProtocol |
class |
AbstractQueryProtocol |
class |
AuroraProtocol |
class |
MasterProtocol |
class |
MastersSlavesProtocol |
| Modifier and Type | Method and Description |
|---|---|
Protocol |
AbstractMultiSend.getProtocol() |
| Constructor and Description |
|---|
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,
List<String> queries,
ThreadPoolExecutor readScheduler)
Bulk execute for statement.executeBatch().
|
AbstractMultiSend(Protocol protocol,
PacketOutputStream writer,
Results results,
ServerPrepareResult serverPrepareResult,
List<ParameterHolder[]> parametersList,
boolean readPrepareStmtResult,
String sql,
ThreadPoolExecutor readScheduler)
Bulk execute for Server PreparedStatement.executeBatch (when no COM_MULTI)
|
AsyncMultiRead(BulkStatus status,
Protocol protocol,
boolean readPrepareStmtResult,
AbstractMultiSend bulkSend,
int paramCount,
Results results,
List<ParameterHolder[]> parametersList,
List<String> queries,
String sql,
PrepareResult prepareResult)
Read results async to avoid local and remote networking stack buffer overflow "lock".
|
| Modifier and Type | Method and Description |
|---|---|
static Protocol |
Utils.retrieveProxy(UrlParser urlParser,
GlobalStateInfo globalInfo)
Retrieve protocol corresponding to the failover options.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
Utils.nativeSql(String sql,
Protocol protocol)
Escape sql String.
|
static ServerPrepareStatementCache |
ServerPrepareStatementCache.newInstance(int size,
Protocol protocol) |
| Modifier and Type | Method and Description |
|---|---|
Protocol |
ServerPrepareResult.getUnProxiedProtocol() |
| Modifier and Type | Method and Description |
|---|---|
void |
ServerPrepareResult.failover(int statementId,
Protocol unProxiedProtocol)
Update information after a failover.
|
| Constructor and Description |
|---|
ServerPrepareResult(String sql,
int statementId,
ColumnDefinition[] columns,
ColumnDefinition[] parameters,
Protocol unProxiedProtocol)
PrepareStatement Result object.
|
Copyright © 2022 oceanbase.com. All rights reserved.