Interface CommandExecuteEngine


public interface CommandExecuteEngine
Command execute engine.
  • Method Details

    • getCommandPacketType

      CommandPacketType getCommandPacketType(PacketPayload packetPayload)
      Get command packet type.
      Parameters:
      packetPayload - packet payload
      Returns:
      command packet type
    • getCommandPacket

      CommandPacket getCommandPacket(PacketPayload payload, CommandPacketType type, ConnectionSession connectionSession)
      Get command packet.
      Parameters:
      payload - packet payload
      type - command packet type
      connectionSession - connection session
      Returns:
      command packet
    • getCommandExecutor

      CommandExecutor getCommandExecutor(CommandPacketType type, CommandPacket packet, ConnectionSession connectionSession) throws SQLException
      Get command executor.
      Parameters:
      type - command packet type
      packet - command packet
      connectionSession - connection session
      Returns:
      command executor
      Throws:
      SQLException - SQL exception
    • getErrorPacket

      DatabasePacket<?> getErrorPacket(Exception cause)
      Get error packet.
      Parameters:
      cause - cause of error
      Returns:
      error packet
    • getOtherPacket

      Optional<DatabasePacket<?>> getOtherPacket(ConnectionSession connectionSession)
      Get other packet.
      Parameters:
      connectionSession - connection session
      Returns:
      other packet
    • writeQueryData

      void writeQueryData(io.netty.channel.ChannelHandlerContext context, BackendConnection backendConnection, QueryCommandExecutor queryCommandExecutor, int headerPackagesCount) throws SQLException
      Write query data.
      Parameters:
      context - channel handler context
      backendConnection - backend connection
      queryCommandExecutor - query command executor
      headerPackagesCount - count of header packages
      Throws:
      SQLException - SQL exception