Class CmsSqlConsoleExecutor
java.lang.Object
org.opencms.ui.apps.dbmanager.sqlconsole.CmsSqlConsoleExecutor
Manages the SQL console.
- Since:
- 6.0.0
- Version:
- $Revision: 1.21 $
- Author:
- Michael Moossen
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionMain method of this class.
-
Constructor Details
-
CmsSqlConsoleExecutor
public CmsSqlConsoleExecutor()Default Constructor.
-
-
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 executepool
- name of the db pool to usereport
- the report to write the outputerrors
- a list to append errors to- Returns:
- a
if the sql is a SELECT sentence, orList
null
.
-