Package | Description |
---|---|
software.amazon.awssdk.enhanced.dynamodb | |
software.amazon.awssdk.enhanced.dynamodb.mapper |
Modifier and Type | Method and Description |
---|---|
static <T,B> StaticImmutableTableSchema.Builder<T,B> |
TableSchema.builder(Class<T> immutableItemClass,
Class<B> immutableBuilderClass)
Returns a builder for the
StaticImmutableTableSchema 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> StaticImmutableTableSchema.Builder<T,B> |
StaticImmutableTableSchema.Builder.addAttribute(Class<R> attributeClass,
Consumer<ImmutableAttribute.Builder<T,B,R>> immutableAttribute)
Adds a single attribute to the table schema that can be mapped between the data item object and the database
record.
|
<R> StaticImmutableTableSchema.Builder<T,B> |
StaticImmutableTableSchema.Builder.addAttribute(EnhancedType<R> attributeType,
Consumer<ImmutableAttribute.Builder<T,B,R>> immutableAttribute)
Adds a single attribute to the table schema that can be mapped between the data item object and the database
record.
|
StaticImmutableTableSchema.Builder<T,B> |
StaticImmutableTableSchema.Builder.addAttribute(ImmutableAttribute<T,B,?> immutableAttribute)
Adds a single attribute to the table schema that can be mapped between the data item object and the database
record.
|
StaticImmutableTableSchema.Builder<T,B> |
StaticImmutableTableSchema.Builder.addTag(StaticTableTag staticTableTag)
Associates a
StaticTableTag with this schema. |
StaticImmutableTableSchema.Builder<T,B> |
StaticImmutableTableSchema.Builder.attributeConverterProviders(AttributeConverterProvider... attributeConverterProviders)
Specifies the
AttributeConverterProvider s to use with the table schema. |
StaticImmutableTableSchema.Builder<T,B> |
StaticImmutableTableSchema.Builder.attributeConverterProviders(List<AttributeConverterProvider> attributeConverterProviders)
Specifies the
AttributeConverterProvider s to use with the table schema. |
StaticImmutableTableSchema.Builder<T,B> |
StaticImmutableTableSchema.Builder.attributes(Collection<ImmutableAttribute<T,B,?>> immutableAttributes)
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.
|
StaticImmutableTableSchema.Builder<T,B> |
StaticImmutableTableSchema.Builder.attributes(ImmutableAttribute<T,B,?>... immutableAttributes)
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,B> StaticImmutableTableSchema.Builder<T,B> |
StaticImmutableTableSchema.builder(Class<T> itemClass,
Class<B> builderClass)
Creates a builder for a
StaticImmutableTableSchema typed to specific immutable data item class. |
StaticImmutableTableSchema.Builder<T,B> |
StaticImmutableTableSchema.Builder.extend(StaticImmutableTableSchema<? super T,? super B> superTableSchema)
Extends the
StaticImmutableTableSchema of a super-class, effectively rolling all the attributes modelled by
the super-class into the StaticImmutableTableSchema of the sub-class. |
<T1> StaticImmutableTableSchema.Builder<T,B> |
StaticImmutableTableSchema.Builder.flatten(TableSchema<T1> otherTableSchema,
Function<T,T1> otherItemGetter,
BiConsumer<B,T1> otherItemSetter)
Flattens all the attributes defined in another
TableSchema into the database record this schema
maps to. |
StaticImmutableTableSchema.Builder<T,B> |
StaticImmutableTableSchema.Builder.newItemBuilder(Supplier<B> newBuilderMethod,
Function<B,T> buildMethod)
Methods used to construct a new instance of the immutable data object.
|
StaticImmutableTableSchema.Builder<T,B> |
StaticImmutableTableSchema.Builder.tags(Collection<StaticTableTag> staticTableTags)
Associate one or more
StaticTableTag with this schema. |
StaticImmutableTableSchema.Builder<T,B> |
StaticImmutableTableSchema.Builder.tags(StaticTableTag... staticTableTags)
Associate one or more
StaticTableTag with this schema. |
Copyright © 2021. All rights reserved.