Package org.leo.aws.ddb.repositories
Class AttributeMapper.AttributeMapperBuilder<T>
- java.lang.Object
-
- org.leo.aws.ddb.repositories.AttributeMapper.AttributeMapperBuilder<T>
-
- All Implemented Interfaces:
AttributeMapper.Builder<T>
- Enclosing class:
- AttributeMapper<T>
private static class AttributeMapper.AttributeMapperBuilder<T> extends Object implements AttributeMapper.Builder<T>
-
-
Field Summary
Fields Modifier and Type Field Description private Constructor<T>constructorprivate Tuple<String,Field>dateCreatedFieldprivate Tuple<String,Field>dateUpdatedFieldprivate Map<String,GSI>globalSecondaryIndexMapprivate Class<T>mappedClassprivate Map<String,Tuple<Field,DbAttribute>>mappedFieldsprivate Map<KeyType,Tuple<String,Field>>primaryKeyMappingprivate StringtableNameprivate Tuple<Field,DbAttribute>versionAttributeField
-
Constructor Summary
Constructors Modifier Constructor Description privateAttributeMapperBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeMapper<T>build()AttributeMapper.Builder<T>constructor(Constructor<T> constructor)AttributeMapper.Builder<T>dateCreatedField(Tuple<String,Field> dateCreatedField)AttributeMapper.Builder<T>dateUpdatedField(Tuple<String,Field> dateUpdatedField)AttributeMapper.Builder<T>globalSecondaryIndexMap(Map<String,GSI> globalSecondaryIndexMap)AttributeMapper.Builder<T>mappedClass(Class<T> mappedClass)AttributeMapper.Builder<T>mappedFields(Map<String,Tuple<Field,DbAttribute>> mappedFields)AttributeMapper.Builder<T>primaryKeyMapping(Map<KeyType,Tuple<String,Field>> primaryKeyMapping)AttributeMapper.Builder<T>tableName(String tableName)AttributeMapper.Builder<T>versionAttributeField(Tuple<Field,DbAttribute> versionAttributeField)
-
-
-
Field Detail
-
mappedFields
private Map<String,Tuple<Field,DbAttribute>> mappedFields
-
constructor
private Constructor<T> constructor
-
tableName
private String tableName
-
versionAttributeField
private Tuple<Field,DbAttribute> versionAttributeField
-
-
Method Detail
-
mappedClass
public AttributeMapper.Builder<T> mappedClass(Class<T> mappedClass)
- Specified by:
mappedClassin interfaceAttributeMapper.Builder<T>
-
mappedFields
public AttributeMapper.Builder<T> mappedFields(Map<String,Tuple<Field,DbAttribute>> mappedFields)
- Specified by:
mappedFieldsin interfaceAttributeMapper.Builder<T>
-
constructor
public AttributeMapper.Builder<T> constructor(Constructor<T> constructor)
- Specified by:
constructorin interfaceAttributeMapper.Builder<T>
-
primaryKeyMapping
public AttributeMapper.Builder<T> primaryKeyMapping(Map<KeyType,Tuple<String,Field>> primaryKeyMapping)
- Specified by:
primaryKeyMappingin interfaceAttributeMapper.Builder<T>
-
tableName
public AttributeMapper.Builder<T> tableName(String tableName)
- Specified by:
tableNamein interfaceAttributeMapper.Builder<T>
-
dateUpdatedField
public AttributeMapper.Builder<T> dateUpdatedField(Tuple<String,Field> dateUpdatedField)
- Specified by:
dateUpdatedFieldin interfaceAttributeMapper.Builder<T>
-
dateCreatedField
public AttributeMapper.Builder<T> dateCreatedField(Tuple<String,Field> dateCreatedField)
- Specified by:
dateCreatedFieldin interfaceAttributeMapper.Builder<T>
-
globalSecondaryIndexMap
public AttributeMapper.Builder<T> globalSecondaryIndexMap(Map<String,GSI> globalSecondaryIndexMap)
- Specified by:
globalSecondaryIndexMapin interfaceAttributeMapper.Builder<T>
-
versionAttributeField
public AttributeMapper.Builder<T> versionAttributeField(Tuple<Field,DbAttribute> versionAttributeField)
- Specified by:
versionAttributeFieldin interfaceAttributeMapper.Builder<T>
-
build
public AttributeMapper<T> build()
- Specified by:
buildin interfaceAttributeMapper.Builder<T>
-
-