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
ConstructorsConstructorDescriptionBeanUtilsHashMapper(Class<T> type) Create a newBeanUtilsHashMapperfor the giventype. -
Method Summary
-
Constructor Details
-
BeanUtilsHashMapper
Create a newBeanUtilsHashMapperfor the giventype.- Parameters:
type- must not be null.
-
-
Method Details
-
fromHash
Description copied from interface:HashMapperConvert ahash(map) to an object.- Specified by:
fromHashin interfaceHashMapper<T,String, String> - Returns:
-
toHash
Description copied from interface:HashMapperConvert anobjectto a map that can be used with Redis hashes.- Specified by:
toHashin interfaceHashMapper<T,String, String> - Returns:
-