org.tranql.field
Interface FieldTransform

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
EJBLocalObjectAsIdTransform, EJBObjectAsIdTransform, FieldAccessor, FieldMarshaller, IdAsEJBLocalObjectTransform, IdAsEJBObjectTransform, ModifiedSlotDetector, NullAccessor, ReferenceAccessor

public interface FieldTransform
extends java.io.Serializable

Transform that converts values being loaded or stored into the cache.

Version:
$Revision: 1.4 $ $Date: 2004/04/19 22:23:20 $

Method Summary
 java.lang.Object get(Row row)
          Return a value from the cache
 java.lang.Class getFieldClass()
          Return the Java Class that will be returned by fetch and that should be passed to set.
 void set(Row row, java.lang.Object value)
          Set a value into the cache
 

Method Detail

getFieldClass

public java.lang.Class getFieldClass()
Return the Java Class that will be returned by fetch and that should be passed to set.

Returns:
the Java Class for this field

get

public java.lang.Object get(Row row)
                     throws FieldTransformException
Return a value from the cache

Parameters:
row - the row to fetch from
Returns:
the transformed value
Throws:
FieldTransformException

set

public void set(Row row,
                java.lang.Object value)
         throws FieldTransformException
Set a value into the cache

Parameters:
row - the row to store the value into
value - the value to be transformed
Throws:
FieldTransformException


Copyright © -2005 The Codehaus. All Rights Reserved.