com.basho.riak.client.convert
Class PassThroughConverter
java.lang.Object
com.basho.riak.client.convert.PassThroughConverter
- All Implemented Interfaces:
- Converter<IRiakObject>
public class PassThroughConverter
- extends Object
- implements Converter<IRiakObject>
For working with IRiakObject
rather than domain types.
- Author:
- russell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PassThroughConverter
public PassThroughConverter()
fromDomain
public IRiakObject fromDomain(IRiakObject domainObject,
VClock vclock)
throws ConversionException
- Description copied from interface:
Converter
- Convert from domain specific type to RiakObject
- Specified by:
fromDomain
in interface Converter<IRiakObject>
- Returns:
- a RiakObject populated from domainObject
- Throws:
ConversionException
toDomain
public IRiakObject toDomain(IRiakObject riakObject)
throws ConversionException
- Description copied from interface:
Converter
- Convert from a riakObject to a domain specific instance
- Specified by:
toDomain
in interface Converter<IRiakObject>
- Parameters:
riakObject
- the RiakObject to convert
- Returns:
- an instance of type T
- Throws:
ConversionException
Copyright © 2012. All Rights Reserved.