Tuscany DAS for Relational Databases

org.apache.tuscany.das.rdb.graphbuilder.impl
Class DefaultConverter

java.lang.Object
  extended by org.apache.tuscany.das.rdb.graphbuilder.impl.DefaultConverter
All Implemented Interfaces:
Converter

public class DefaultConverter
extends java.lang.Object
implements Converter


Constructor Summary
DefaultConverter()
           
 
Method Summary
 java.lang.Object getColumnValue(java.lang.Object data)
          Transform the columnData object to a new value and possibly new type.
 java.lang.Object getPropertyValue(java.lang.Object data)
          Transform the columnData object to a new value and possibly new type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConverter

public DefaultConverter()
Method Detail

getColumnValue

public java.lang.Object getColumnValue(java.lang.Object data)
Description copied from interface: Converter
Transform the columnData object to a new value and possibly new type. This should be the invers operation of #getPropertyValue

Specified by:
getColumnValue in interface Converter
Parameters:
data - The property value to transform
Returns:
Returns the transformed value

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object data)
Description copied from interface: Converter
Transform the columnData object to a new value and possibly new type. This should be the invers operation of #getColumnValue

Specified by:
getPropertyValue in interface Converter
Parameters:
data - The column value to transorm
Returns:
Returns the transformed value

Tuscany DAS for Relational Databases

-