Class CmsSqlConsoleExecutor

java.lang.Object
org.opencms.ui.apps.dbmanager.sqlconsole.CmsSqlConsoleExecutor

public final class CmsSqlConsoleExecutor extends Object
Manages the SQL console.

Since:
6.0.0
Version:
$Revision: 1.21 $
Author:
Michael Moossen
  • Constructor Details

  • Method Details

    • execute

      public CmsSqlConsoleResults execute(String sql, String pool, I_CmsReport report, List<Throwable> errors)
      Main method of this class. Executes the given sql query.

      This method also checks the permissions for executing sql sentences, according to the vfs-doctor.xml configuration file.

      Parameters:
      sql - the sql query to execute
      pool - name of the db pool to use
      report - the report to write the output
      errors - a list to append errors to
      Returns:
      a List if the sql is a SELECT sentence, or null.