public static class SqlPlanBaseline.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SqlPlanBaseline.Builder |
accepted(SqlPlanBaseline.Accepted accepted)
Indicates whether the plan baseline is accepted (
YES ) or not (NO ). |
SqlPlanBaseline.Builder |
action(String action)
The application action.
|
SqlPlanBaseline.Builder |
adaptive(SqlPlanBaseline.Adaptive adaptive)
Indicates whether a plan that is automatically captured by SQL plan management is marked
adaptive or not.
|
SqlPlanBaseline.Builder |
autoPurge(SqlPlanBaseline.AutoPurge autoPurge)
Indicates whether the plan baseline is auto-purged (
YES ) or not (NO ). |
SqlPlanBaseline |
build() |
SqlPlanBaseline.Builder |
copy(SqlPlanBaseline model) |
SqlPlanBaseline.Builder |
enabled(SqlPlanBaseline.Enabled enabled)
Indicates whether the plan baseline is enabled (
YES ) or disabled (NO ). |
SqlPlanBaseline.Builder |
executionPlan(String executionPlan)
The execution plan for the SQL statement.
|
SqlPlanBaseline.Builder |
fixed(SqlPlanBaseline.Fixed fixed)
Indicates whether the plan baseline is fixed (
YES ) or not (NO ). |
SqlPlanBaseline.Builder |
module(String module)
The application module name.
|
SqlPlanBaseline.Builder |
origin(SqlPlanBaselineOrigin origin)
The origin of the SQL plan baseline.
|
SqlPlanBaseline.Builder |
planName(String planName)
The unique plan identifier.
|
SqlPlanBaseline.Builder |
reproduced(SqlPlanBaseline.Reproduced reproduced)
Indicates whether the optimizer was able to reproduce the plan (
YES ) or not
(NO ). |
SqlPlanBaseline.Builder |
sqlHandle(String sqlHandle)
The unique SQL identifier.
|
SqlPlanBaseline.Builder |
sqlText(String sqlText)
The SQL text.
|
SqlPlanBaseline.Builder |
timeCreated(Date timeCreated)
The date and time when the plan baseline was created.
|
SqlPlanBaseline.Builder |
timeLastExecuted(Date timeLastExecuted)
The date and time when the plan baseline was last executed.
|
SqlPlanBaseline.Builder |
timeLastModified(Date timeLastModified)
The date and time when the plan baseline was last modified.
|
public SqlPlanBaseline.Builder planName(String planName)
The unique plan identifier.
planName
- the value to setpublic SqlPlanBaseline.Builder sqlHandle(String sqlHandle)
The unique SQL identifier.
sqlHandle
- the value to setpublic SqlPlanBaseline.Builder sqlText(String sqlText)
The SQL text.
sqlText
- the value to setpublic SqlPlanBaseline.Builder origin(SqlPlanBaselineOrigin origin)
The origin of the SQL plan baseline.
origin
- the value to setpublic SqlPlanBaseline.Builder timeCreated(Date timeCreated)
The date and time when the plan baseline was created.
timeCreated
- the value to setpublic SqlPlanBaseline.Builder timeLastModified(Date timeLastModified)
The date and time when the plan baseline was last modified.
timeLastModified
- the value to setpublic SqlPlanBaseline.Builder timeLastExecuted(Date timeLastExecuted)
The date and time when the plan baseline was last executed.
*Note:** For performance reasons, database does not update this value immediately after each execution of the plan baseline. Therefore, the plan baseline may have been executed more recently than this value indicates.
timeLastExecuted
- the value to setpublic SqlPlanBaseline.Builder enabled(SqlPlanBaseline.Enabled enabled)
Indicates whether the plan baseline is enabled (YES
) or disabled (NO
).
enabled
- the value to setpublic SqlPlanBaseline.Builder accepted(SqlPlanBaseline.Accepted accepted)
Indicates whether the plan baseline is accepted (YES
) or not (NO
).
accepted
- the value to setpublic SqlPlanBaseline.Builder fixed(SqlPlanBaseline.Fixed fixed)
Indicates whether the plan baseline is fixed (YES
) or not (NO
).
fixed
- the value to setpublic SqlPlanBaseline.Builder reproduced(SqlPlanBaseline.Reproduced reproduced)
Indicates whether the optimizer was able to reproduce the plan (YES
) or not
(NO
). The value is set to YES
when a plan is initially added to the plan
baseline.
reproduced
- the value to setpublic SqlPlanBaseline.Builder autoPurge(SqlPlanBaseline.AutoPurge autoPurge)
Indicates whether the plan baseline is auto-purged (YES
) or not (NO
).
autoPurge
- the value to setpublic SqlPlanBaseline.Builder adaptive(SqlPlanBaseline.Adaptive adaptive)
Indicates whether a plan that is automatically captured by SQL plan management is marked adaptive or not.
When a new adaptive plan is found for a SQL statement that has an existing SQL plan
baseline, that new plan will be added to the SQL plan baseline as an unaccepted plan, and
the ADAPTIVE
property will be marked YES
. When this new plan is verified
(either manually or via the auto evolve task), the plan will be test executed and the
final plan determined at execution will become an accepted plan if its performance is
better than the existing plan baseline. At this point, the value of the ADAPTIVE
property is set to NO
since the plan is no longer adaptive, but resolved.
adaptive
- the value to setpublic SqlPlanBaseline.Builder module(String module)
The application module name.
module
- the value to setpublic SqlPlanBaseline.Builder action(String action)
The application action.
action
- the value to setpublic SqlPlanBaseline.Builder executionPlan(String executionPlan)
The execution plan for the SQL statement.
executionPlan
- the value to setpublic SqlPlanBaseline build()
public SqlPlanBaseline.Builder copy(SqlPlanBaseline model)
Copyright © 2016–2024. All rights reserved.