|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.plan.PlanOption
public class PlanOption
A default implementation of IPlanOption
, the vendor should implement IPlanOption
from
scratch
Field Summary | |
---|---|
static int |
GRAPHIC_PLAN
Graphic execution plan mask |
static java.lang.String |
GRAPHIC_PLAN_DESC
|
static int |
TEXT_PLAN
Text execution plan mask |
static java.lang.String |
TEXT_PLAN_DESC
|
Fields inherited from interface org.eclipse.datatools.sqltools.plan.IPlanOption |
---|
TYPE_EVENT, TYPE_SP, TYPE_TRIGGER, TYPE_UDF |
Constructor Summary | |
---|---|
PlanOption()
|
Method Summary | |
---|---|
int |
getCurrentType()
The default implementation always returns TEXT_PLAN |
int |
getDefaultOption()
Returns the default plan type id |
java.lang.String[] |
getPlanTypes()
Returns all available plan types, in string mode. |
int |
getTypeIdByName(java.lang.String name)
Returns type id by name |
java.lang.String |
getTypeNameById(int type)
Returns type name by id |
boolean |
isGraphicPlan(int type)
Checks if the given type id is graphic type |
boolean |
supportPlan(int procType)
Returns if the execution plan is supported for the given proc type |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int GRAPHIC_PLAN
public static final int TEXT_PLAN
public static final java.lang.String GRAPHIC_PLAN_DESC
public static final java.lang.String TEXT_PLAN_DESC
Constructor Detail |
---|
public PlanOption()
Method Detail |
---|
public int getCurrentType()
getCurrentType
in interface IPlanOption
public int getDefaultOption()
IPlanOption
getDefaultOption
in interface IPlanOption
public int getTypeIdByName(java.lang.String name)
IPlanOption
getTypeIdByName
in interface IPlanOption
name
- the name of the plan type
public java.lang.String getTypeNameById(int type)
IPlanOption
getTypeNameById
in interface IPlanOption
type
- the plan type id
public java.lang.String[] getPlanTypes()
IPlanOption
getPlanTypes
in interface IPlanOption
public boolean isGraphicPlan(int type)
IPlanOption
isGraphicPlan
in interface IPlanOption
type
- a given plan type
true
if the given type is grahic type, false
otherwisepublic boolean supportPlan(int procType)
IPlanOption
supportPlan
in interface IPlanOption
procType
- the type of procedural object
true
if the execution plan for the given type is supportedIPlanOption.TYPE_SP
,
IPlanOption.TYPE_UDF
,
IPlanOption.TYPE_TRIGGER
,
IPlanOption.TYPE_EVENT
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |