java.lang.Object
bayern.steinbrecher.dbConnector.DBConnection
bayern.steinbrecher.dbConnector.SshConnection
All Implemented Interfaces:
java.lang.AutoCloseable

public final class SshConnection
extends DBConnection
Since:
0.1
  • Constructor Details

  • Method Details

    • execQuery

      @NotNull public @NotNull java.util.List<java.util.List<java.lang.String>> execQuery​(@NotNull @NotNull java.lang.String sqlCode) throws QueryFailedException
      Description copied from class: DBConnection
      Executes a query and returns the result.
      Specified by:
      execQuery in class DBConnection
      Parameters:
      sqlCode - The sql code to execute.
      Returns:
      Table containing the results AND the headings of each column. First dimension rows; second columns.
      Throws:
      QueryFailedException - Thrown if the sql code is invalid.
      Since:
      0.1
    • execUpdate

      public void execUpdate​(@NotNull @NotNull java.lang.String sqlCode) throws QueryFailedException
      Description copied from class: DBConnection
      Executes a command like INSERT INTO, UPDATE or CREATE.
      Specified by:
      execUpdate in class DBConnection
      Parameters:
      sqlCode - The sql code to execute.
      Throws:
      QueryFailedException - Thrown if the sql code is invalid.
      Since:
      0.1
    • close

      public void close()
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in class DBConnection
      Since:
      0.1