public static enum DynamoDBMapperModelFactory.Schema extends Enum<DynamoDBMapperModelFactory.Schema>
Enum Constant and Description |
---|
V1_0
The V1 schema mapping, which retains strict backwards compatibility with
the original DynamoDB data model.
|
V1_5
A V2 conversion schema which retains backwards compatibility with the
V1 conversion schema for existing DynamoDB types, but adds the ability
to marshall recursive structures using the new List and Map types.
|
V2_0
The native V2 conversion schema.
|
Modifier and Type | Field and Description |
---|---|
static DynamoDBMapperModelFactory.Schema |
DEFAULT
The default schema version.
|
Modifier and Type | Method and Description |
---|---|
boolean |
compatible(DynamoDBMapperModelFactory.Schema schema)
Returns true if this schema is compatible from the specified schema.
|
static DynamoDBMapperModelFactory.Schema |
of(DynamoDBMapperConfig config)
Gets the
DynamoDBMapperModelFactory.Schema from the DynamoDBMapperConfig . |
static DynamoDBMapperModelFactory.Schema |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DynamoDBMapperModelFactory.Schema[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DynamoDBMapperModelFactory.Schema V1_0
Use me if you have other code still using an old version of the SDK that does not understand the new List and Map types and want to ensure that you don't accidentally start writing values using these types.
public static final DynamoDBMapperModelFactory.Schema V1_5
public static final DynamoDBMapperModelFactory.Schema V2_0
public static final DynamoDBMapperModelFactory.Schema DEFAULT
public static DynamoDBMapperModelFactory.Schema[] values()
for (DynamoDBMapperModelFactory.Schema c : DynamoDBMapperModelFactory.Schema.values()) System.out.println(c);
public static DynamoDBMapperModelFactory.Schema valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean compatible(DynamoDBMapperModelFactory.Schema schema)
schema
- The schema to compare.public static DynamoDBMapperModelFactory.Schema of(DynamoDBMapperConfig config)
DynamoDBMapperModelFactory.Schema
from the DynamoDBMapperConfig
.config
- The DynamoDB mapper config.Copyright © 2016. All rights reserved.