Package org.leo.aws.ddb.repositories
Class AbstractDataMapper<T>
- java.lang.Object
-
- org.leo.aws.ddb.repositories.AbstractDataMapper<T>
-
- All Implemented Interfaces:
DataMapper<T>
abstract class AbstractDataMapper<T> extends Object implements DataMapper<T>
-
-
Field Summary
-
Fields inherited from interface org.leo.aws.ddb.repositories.DataMapper
LOGGER
-
-
Constructor Summary
Constructors Constructor Description AbstractDataMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetHashKey()Class<T>getParameterType()private StringgetPKKey(KeyType keyType)protected StringgetRangeKey()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.leo.aws.ddb.repositories.DataMapper
applyTTLLogic, createPKFromItem, getAttributeBuilderFunctionForKeys, getMappedValues, getPKMapping, getPrimaryKey, getVersionedAttribute, mapFromAttributeValueToEntity, mapFromEntityToAttributeValue, tableName
-
-
-
-
Method Detail
-
getParameterType
public Class<T> getParameterType()
- Specified by:
getParameterTypein interfaceDataMapper<T>- Returns:
- Entity class
-
getHashKey
protected String getHashKey()
- Returns:
- Hash key of the DDB table
-
getRangeKey
protected String getRangeKey()
- Returns:
- Range key of the DDB table
-
-