org.eclipse.datatools.enablement.ingres.internal.ui.plan
Class IngresPlanSupportRunnable

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.core.internal.jobs.InternalJob
          extended by org.eclipse.core.runtime.jobs.Job
              extended by org.eclipse.datatools.sqltools.plan.PlanSupportRunnable
                  extended by org.eclipse.datatools.enablement.ingres.internal.ui.plan.IngresPlanSupportRunnable
All Implemented Interfaces:
java.lang.Comparable, org.eclipse.core.runtime.IAdaptable

public class IngresPlanSupportRunnable
extends PlanSupportRunnable

This class is responsible for retrieving QEP's from an driver log file. It parses the log file and extracts the last stored QEP (actually it's the last DBMS log entry). It's neither guaranteed that the found log message is a QEP nor that the found QEP is linked to the SQL statement. There's a small chance that another QEP is logged between execution of the query and retrieving the QEP.

Author:
enrico.schenk@ingres.com

Field Summary
 
Fields inherited from class org.eclipse.core.runtime.jobs.Job
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
 
Constructor Summary
IngresPlanSupportRunnable(PlanRequest request, java.lang.String profileName, java.lang.String dbName)
           
 
Method Summary
 java.sql.Connection createConnection()
          Returns a new created connection from the SQL tools.
 java.sql.Connection getConnection()
           
 void setConnection(java.sql.Connection conn)
          Setting the connection has no effect, as we always use an own connection.
 
Methods inherited from class org.eclipse.datatools.sqltools.plan.PlanSupportRunnable
getRequest, setRequest
 
Methods inherited from class org.eclipse.core.runtime.jobs.Job
addJobChangeListener, belongsTo, cancel, done, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, removeJobChangeListener, schedule, schedule, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, wakeUp, wakeUp
 
Methods inherited from class org.eclipse.core.internal.jobs.InternalJob
compareTo, toString
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

IngresPlanSupportRunnable

public IngresPlanSupportRunnable(PlanRequest request,
                                 java.lang.String profileName,
                                 java.lang.String dbName)
Method Detail

getConnection

public java.sql.Connection getConnection()
Overrides:
getConnection in class PlanSupportRunnable

createConnection

public java.sql.Connection createConnection()
Returns a new created connection from the SQL tools.

Returns:
the connection

setConnection

public void setConnection(java.sql.Connection conn)
Setting the connection has no effect, as we always use an own connection.

Overrides:
setConnection in class PlanSupportRunnable
Parameters:
conn - database connection
See Also:
PlanSupportRunnable.setConnection(java.sql.Connection)