|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPlanOption
Generally speaking, a database server may support several types of execution plan, for example, a text type and a
graphic type, which renders the execution plan in text string or using graph respectively.
This interface tries to build a relationship between the type id and type name, and check which type is graphic one,
such that the framework can draw the execution plan in a canvas instead of displaying it as a literal string.
Also, the consumer needs to create the preference section on "Execution Plan View Option" page to let the end user
select the plan type, the framework does not implement this part.
Field Summary | |
---|---|
static int |
TYPE_EVENT
|
static int |
TYPE_SP
|
static int |
TYPE_TRIGGER
|
static int |
TYPE_UDF
|
Method Summary | |
---|---|
int |
getCurrentType()
Returns the current plan type configured by the user |
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 |
Field Detail |
---|
static final int TYPE_SP
static final int TYPE_UDF
static final int TYPE_EVENT
static final int TYPE_TRIGGER
Method Detail |
---|
java.lang.String[] getPlanTypes()
boolean isGraphicPlan(int type)
type
- a given plan type
true
if the given type is grahic type, false
otherwiseint getDefaultOption()
java.lang.String getTypeNameById(int type)
type
- the plan type id
int getTypeIdByName(java.lang.String name)
name
- the name of the plan type
int getCurrentType()
boolean supportPlan(int procType)
procType
- the type of procedural object
true
if the execution plan for the given type is supportedTYPE_SP
,
TYPE_UDF
,
TYPE_TRIGGER
,
TYPE_EVENT
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |