Enum ExecutionContext
- java.lang.Object
-
- java.lang.Enum<ExecutionContext>
-
- software.amazon.awssdk.enhanced.dynamodb.ExecutionContext
-
- All Implemented Interfaces:
Serializable,Comparable<ExecutionContext>
@SdkProtectedApi public enum ExecutionContext extends Enum<ExecutionContext>
Execution context used internally during table schema creation to track whether a schema is being created for a root entity or a flattened nested object.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExecutionContextvalueOf(String name)Returns the enum constant of this type with the specified name.static ExecutionContext[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ROOT
public static final ExecutionContext ROOT
Indicates schema creation for a top-level entity that will be directly used with DynamoDB operations. Enables schema caching for performance optimization.
-
FLATTENED
public static final ExecutionContext FLATTENED
Indicates schema creation for a nested object marked with@DynamoDbFlatten. Bypasses caching to prevent conflicts and infinite recursion during flattened object processing.
-
-
Method Detail
-
values
public static ExecutionContext[] 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 (ExecutionContext c : ExecutionContext.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExecutionContext 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
-
-