com.basho.riak.client.convert
Class PassThroughConverter

java.lang.Object
  extended by 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

Constructor Summary
PassThroughConverter()
           
 
Method Summary
 IRiakObject fromDomain(IRiakObject domainObject, VClock vclock)
          Convert from domain specific type to RiakObject
 IRiakObject toDomain(IRiakObject riakObject)
          Convert from a riakObject to a domain specific instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassThroughConverter

public PassThroughConverter()
Method Detail

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.