com.sleepycat.je.sync
Interface FieldConverter


public interface FieldConverter

Provides custom conversion between local field/property values and external field/column values.


Method Summary
 Object externalToLocal(Object fromValue, Class toClass, String localFieldName, String externalFieldName)
          Converts a external field/column value to a local field/property value, or returns fromValue unchanged if no custom conversion is needed.
 Object localToExternal(Object fromValue, Class toClass, String localFieldName, String externalFieldName)
          Converts a local field/property value to a external field/column value, or returns fromValue unchanged if no custom conversion is needed.
 

Method Detail

externalToLocal

Object externalToLocal(Object fromValue,
                       Class toClass,
                       String localFieldName,
                       String externalFieldName)
Converts a external field/column value to a local field/property value, or returns fromValue unchanged if no custom conversion is needed.


localToExternal

Object localToExternal(Object fromValue,
                       Class toClass,
                       String localFieldName,
                       String externalFieldName)
Converts a local field/property value to a external field/column value, or returns fromValue unchanged if no custom conversion is needed.



Copyright (c) 2004-2012 Oracle. All rights reserved.