Package | Description |
---|---|
software.amazon.awssdk.enhanced.dynamodb | |
software.amazon.awssdk.enhanced.dynamodb.mapper |
Modifier and Type | Method and Description |
---|---|
static <T> StaticTableSchema.Builder<T> |
TableSchema.builder(Class<T> itemClass)
Returns a builder for the
StaticTableSchema implementation of this interface which allows all attributes,
tags and table structure to be directly declared in the builder. |
Modifier and Type | Method and Description |
---|---|
<R> StaticTableSchema.Builder<T> |
StaticTableSchema.Builder.addAttribute(Class<R> attributeClass,
Consumer<StaticAttribute.Builder<T,R>> staticAttribute)
Adds a single attribute to the table schema that can be mapped between the data item object and the database
record.
|
<R> StaticTableSchema.Builder<T> |
StaticTableSchema.Builder.addAttribute(EnhancedType<R> attributeType,
Consumer<StaticAttribute.Builder<T,R>> staticAttribute)
Adds a single attribute to the table schema that can be mapped between the data item object and the database
record.
|
StaticTableSchema.Builder<T> |
StaticTableSchema.Builder.addAttribute(StaticAttribute<T,?> staticAttribute)
Adds a single attribute to the table schema that can be mapped between the data item object and the database
record.
|
StaticTableSchema.Builder<T> |
StaticTableSchema.Builder.addTag(StaticTableTag staticTableTag)
Associates a
StaticTableTag with this schema. |
StaticTableSchema.Builder<T> |
StaticTableSchema.Builder.attributeConverterProviders(AttributeConverterProvider... attributeConverterProviders)
Specifies the
AttributeConverterProvider s to use with the table schema. |
StaticTableSchema.Builder<T> |
StaticTableSchema.Builder.attributeConverterProviders(List<AttributeConverterProvider> attributeConverterProviders)
Specifies the
AttributeConverterProvider s to use with the table schema. |
StaticTableSchema.Builder<T> |
StaticTableSchema.Builder.attributes(Collection<StaticAttribute<T,?>> staticAttributes)
A list of attributes that can be mapped between the data item object and the database record that are to
be associated with the schema.
|
StaticTableSchema.Builder<T> |
StaticTableSchema.Builder.attributes(StaticAttribute<T,?>... staticAttributes)
A list of attributes that can be mapped between the data item object and the database record that are to
be associated with the schema.
|
static <T> StaticTableSchema.Builder<T> |
StaticTableSchema.builder(Class<T> itemClass)
Creates a builder for a
StaticTableSchema typed to specific data item class. |
StaticTableSchema.Builder<T> |
StaticTableSchema.Builder.extend(StaticTableSchema<? super T> superTableSchema)
Extends the
StaticTableSchema of a super-class, effectively rolling all the attributes modelled by
the super-class into the StaticTableSchema of the sub-class. |
<R> StaticTableSchema.Builder<T> |
StaticTableSchema.Builder.flatten(StaticTableSchema<R> otherTableSchema,
Function<T,R> otherItemGetter,
BiConsumer<T,R> otherItemSetter)
Flattens all the attributes defined in another
StaticTableSchema into the database record this schema
maps to. |
StaticTableSchema.Builder<T> |
StaticTableSchema.Builder.newItemSupplier(Supplier<T> newItemSupplier)
A function that can be used to create new instances of the data item class.
|
StaticTableSchema.Builder<T> |
StaticTableSchema.Builder.tags(Collection<StaticTableTag> staticTableTags)
Associate one or more
StaticTableTag with this schema. |
StaticTableSchema.Builder<T> |
StaticTableSchema.Builder.tags(StaticTableTag... staticTableTags)
Associate one or more
StaticTableTag with this schema. |
Copyright © 2020. All rights reserved.