/** * Creates an instance of <code>PlanRequest</code> * * @param sql the SQL statement * @param databaseDefinitionId the database definition id * @param planType the type of plan * @param mode the show view mode * @return an instance of <code>PlanRequest</code> */ protected PlanRequest createPlanRequest(String sql, String databaseDefinitionId, int planType, int mode) { PlanRequest request = new PlanRequest(sql, databaseDefinitionId, planType, mode); request.setNoexec(false); request.setVarDecs(getVariableDeclarations()); return request; }