Class CmsSqlConsoleExecutor


  • public final class CmsSqlConsoleExecutor
    extends java.lang.Object
    Manages the SQL console.

    Since:
    6.0.0
    Version:
    $Revision: 1.21 $
    Author:
    Michael Moossen
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CmsSqlConsoleResults execute​(java.lang.String sql, java.lang.String pool, I_CmsReport report, java.util.List<java.lang.Throwable> errors)
      Main method of this class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • execute

        public CmsSqlConsoleResults execute​(java.lang.String sql,
                                            java.lang.String pool,
                                            I_CmsReport report,
                                            java.util.List<java.lang.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.