Class BeanUtilsHashMapper<T>
java.lang.Object
org.springframework.data.redis.hash.BeanUtilsHashMapper<T>
- All Implemented Interfaces:
HashMapper<T,
String, String>
HashMapper based on Apache Commons BeanUtils project. Does NOT supports nested properties.
- Author:
- Costin Leau, Christoph Strobl, Mark Paluch
-
Constructor Summary
ConstructorDescriptionBeanUtilsHashMapper
(Class<T> type) Create a newBeanUtilsHashMapper
for the giventype
. -
Method Summary
-
Constructor Details
-
BeanUtilsHashMapper
Create a newBeanUtilsHashMapper
for the giventype
.- Parameters:
type
- must not be null.
-
-
Method Details
-
fromHash
Description copied from interface:HashMapper
Convert ahash
(map) to an object.- Specified by:
fromHash
in interfaceHashMapper<T,
String, String> - Returns:
-
toHash
Description copied from interface:HashMapper
Convert anobject
to a map that can be used with Redis hashes.- Specified by:
toHash
in interfaceHashMapper<T,
String, String> - Returns:
-