org.springframework.data.keyvalue.redis.hash
Class BeanUtilsHashMapper<T>
java.lang.Object
org.springframework.data.keyvalue.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.
- Author:
- Costin Leau
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanUtilsHashMapper
public BeanUtilsHashMapper(Class<T> type)
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>
Copyright © 2010-2011 SpringSource. All Rights Reserved.