Enum LoadSqlTuningSetDetails.CaptureMode
- java.lang.Object
-
- java.lang.Enum<LoadSqlTuningSetDetails.CaptureMode>
-
- com.oracle.bmc.databasemanagement.model.LoadSqlTuningSetDetails.CaptureMode
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<LoadSqlTuningSetDetails.CaptureMode>
- Enclosing class:
- LoadSqlTuningSetDetails
public static enum LoadSqlTuningSetDetails.CaptureMode extends Enum<LoadSqlTuningSetDetails.CaptureMode> implements BmcEnum
Specifies the capture mode.Note that this parameter is applicable only for UPDATE and MERGE capture options. Capture mode can take one of the following values - MODE_REPLACE_OLD_STATS Replaces statistics when the number of executions is greater than the number stored in the Sql tuning set - MODE_ACCUMULATE_STATS Adds new values to current values for Sql that is already stored. Note that this mode detects if a statement has been aged out, so the final value for a statistics is the sum of the statistics of all cursors that statement existed under.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ModeAccumulateStats
ModeReplaceOldStats
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LoadSqlTuningSetDetails.CaptureMode
create(String key)
String
getValue()
static LoadSqlTuningSetDetails.CaptureMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static LoadSqlTuningSetDetails.CaptureMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ModeReplaceOldStats
public static final LoadSqlTuningSetDetails.CaptureMode ModeReplaceOldStats
-
ModeAccumulateStats
public static final LoadSqlTuningSetDetails.CaptureMode ModeAccumulateStats
-
-
Method Detail
-
values
public static LoadSqlTuningSetDetails.CaptureMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LoadSqlTuningSetDetails.CaptureMode c : LoadSqlTuningSetDetails.CaptureMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LoadSqlTuningSetDetails.CaptureMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
create
public static LoadSqlTuningSetDetails.CaptureMode create(String key)
-
-