Search in sources :

Example 1 with DB2PlanAnalyser

use of org.jkiss.dbeaver.ext.db2.model.plan.DB2PlanAnalyser in project dbeaver by serge-rider.

the class DB2DataSource method planQueryExecution.

// --------------
// Plan Tables
// --------------
@Override
public DBCPlan planQueryExecution(DBCSession session, String query) throws DBCException {
    String ptSchemaname = getExplainTablesSchemaName(session);
    if (ptSchemaname == null) {
        throw new DBCException(DB2Messages.dialog_explain_no_tables_found_ex);
    }
    DB2PlanAnalyser plan = new DB2PlanAnalyser(query, ptSchemaname);
    plan.explain((JDBCSession) session);
    return plan;
}
Also used : DBCException(org.jkiss.dbeaver.model.exec.DBCException) DB2XMLString(org.jkiss.dbeaver.ext.db2.info.DB2XMLString) DB2PlanAnalyser(org.jkiss.dbeaver.ext.db2.model.plan.DB2PlanAnalyser)

Aggregations

DB2XMLString (org.jkiss.dbeaver.ext.db2.info.DB2XMLString)1 DB2PlanAnalyser (org.jkiss.dbeaver.ext.db2.model.plan.DB2PlanAnalyser)1 DBCException (org.jkiss.dbeaver.model.exec.DBCException)1