Class SqlPlanBaseline.Builder
- java.lang.Object
- 
- com.oracle.bmc.databasemanagement.model.SqlPlanBaseline.Builder
 
- 
- Enclosing class:
- SqlPlanBaseline
 
 public static class SqlPlanBaseline.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlPlanBaseline.Builderaccepted(SqlPlanBaseline.Accepted accepted)Indicates whether the plan baseline is accepted (YES) or not (NO).SqlPlanBaseline.Builderaction(String action)The application action.SqlPlanBaseline.Builderadaptive(SqlPlanBaseline.Adaptive adaptive)Indicates whether a plan that is automatically captured by SQL plan management is marked adaptive or not.SqlPlanBaseline.BuilderautoPurge(SqlPlanBaseline.AutoPurge autoPurge)Indicates whether the plan baseline is auto-purged (YES) or not (NO).SqlPlanBaselinebuild()SqlPlanBaseline.Buildercopy(SqlPlanBaseline model)SqlPlanBaseline.Builderenabled(SqlPlanBaseline.Enabled enabled)Indicates whether the plan baseline is enabled (YES) or disabled (NO).SqlPlanBaseline.BuilderexecutionPlan(String executionPlan)The execution plan for the SQL statement.SqlPlanBaseline.Builderfixed(SqlPlanBaseline.Fixed fixed)Indicates whether the plan baseline is fixed (YES) or not (NO).SqlPlanBaseline.Buildermodule(String module)The application module name.SqlPlanBaseline.Builderorigin(SqlPlanBaselineOrigin origin)The origin of the SQL plan baseline.SqlPlanBaseline.BuilderplanName(String planName)The unique plan identifier.SqlPlanBaseline.Builderreproduced(SqlPlanBaseline.Reproduced reproduced)Indicates whether the optimizer was able to reproduce the plan (YES) or not (NO).SqlPlanBaseline.BuildersqlHandle(String sqlHandle)The unique SQL identifier.SqlPlanBaseline.BuildersqlText(String sqlText)The SQL text.SqlPlanBaseline.BuildertimeCreated(Date timeCreated)The date and time when the plan baseline was created.SqlPlanBaseline.BuildertimeLastExecuted(Date timeLastExecuted)The date and time when the plan baseline was last executed.SqlPlanBaseline.BuildertimeLastModified(Date timeLastModified)The date and time when the plan baseline was last modified.
 
- 
- 
- 
Method Detail- 
planNamepublic SqlPlanBaseline.Builder planName(String planName) The unique plan identifier.- Parameters:
- planName- the value to set
- Returns:
- this builder
 
 - 
sqlHandlepublic SqlPlanBaseline.Builder sqlHandle(String sqlHandle) The unique SQL identifier.- Parameters:
- sqlHandle- the value to set
- Returns:
- this builder
 
 - 
sqlTextpublic SqlPlanBaseline.Builder sqlText(String sqlText) The SQL text.- Parameters:
- sqlText- the value to set
- Returns:
- this builder
 
 - 
originpublic SqlPlanBaseline.Builder origin(SqlPlanBaselineOrigin origin) The origin of the SQL plan baseline.- Parameters:
- origin- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic SqlPlanBaseline.Builder timeCreated(Date timeCreated) The date and time when the plan baseline was created.- Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeLastModifiedpublic SqlPlanBaseline.Builder timeLastModified(Date timeLastModified) The date and time when the plan baseline was last modified.- Parameters:
- timeLastModified- the value to set
- Returns:
- this builder
 
 - 
timeLastExecutedpublic 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. - Parameters:
- timeLastExecuted- the value to set
- Returns:
- this builder
 
 - 
enabledpublic SqlPlanBaseline.Builder enabled(SqlPlanBaseline.Enabled enabled) Indicates whether the plan baseline is enabled (YES) or disabled (NO).- Parameters:
- enabled- the value to set
- Returns:
- this builder
 
 - 
acceptedpublic SqlPlanBaseline.Builder accepted(SqlPlanBaseline.Accepted accepted) Indicates whether the plan baseline is accepted (YES) or not (NO).- Parameters:
- accepted- the value to set
- Returns:
- this builder
 
 - 
fixedpublic SqlPlanBaseline.Builder fixed(SqlPlanBaseline.Fixed fixed) Indicates whether the plan baseline is fixed (YES) or not (NO).- Parameters:
- fixed- the value to set
- Returns:
- this builder
 
 - 
reproducedpublic 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. - Parameters:
- reproduced- the value to set
- Returns:
- this builder
 
 - 
autoPurgepublic SqlPlanBaseline.Builder autoPurge(SqlPlanBaseline.AutoPurge autoPurge) Indicates whether the plan baseline is auto-purged (YES) or not (NO).- Parameters:
- autoPurge- the value to set
- Returns:
- this builder
 
 - 
adaptivepublic 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. - Parameters:
- adaptive- the value to set
- Returns:
- this builder
 
 - 
modulepublic SqlPlanBaseline.Builder module(String module) The application module name.- Parameters:
- module- the value to set
- Returns:
- this builder
 
 - 
actionpublic SqlPlanBaseline.Builder action(String action) The application action.- Parameters:
- action- the value to set
- Returns:
- this builder
 
 - 
executionPlanpublic SqlPlanBaseline.Builder executionPlan(String executionPlan) The execution plan for the SQL statement.- Parameters:
- executionPlan- the value to set
- Returns:
- this builder
 
 - 
buildpublic SqlPlanBaseline build() 
 - 
copypublic SqlPlanBaseline.Builder copy(SqlPlanBaseline model) 
 
- 
 
-