org.springframework.data.redis.hash
Class BeanUtilsHashMapper<T>

java.lang.Object
  extended by org.springframework.data.redis.hash.BeanUtilsHashMapper<T>
All Implemented Interfaces:
HashMapper<T,String,String>

public class BeanUtilsHashMapper<T>
extends Object
implements HashMapper<T,String,String>

HashMapper based on Apache Commons BeanUtils project. Does NOT supports nested properties.


Constructor Summary
BeanUtilsHashMapper(Class<T> type)
           
 
Method Summary
 T fromHash(Map<String,String> hash)
           
 Map<String,String> toHash(T object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanUtilsHashMapper

public BeanUtilsHashMapper(Class<T> type)
Method Detail

fromHash

public T fromHash(Map<String,String> hash)
Specified by:
fromHash in interface HashMapper<T,String,String>

toHash

public Map<String,String> toHash(T object)
Specified by:
toHash in interface HashMapper<T,String,String>