org.tranql.field
Interface FieldTransform

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
QueryBinding
All Known Implementing Classes:
DomainIdentityAccessor, EJBLocalObjectAsIdTransform, EJBObjectAsIdTransform, FieldAccessor, FieldMarshaller, GlobalIdentityAccessor, IdAsEJBLocalObjectTransform, IdAsEJBObjectTransform, IdentityExtractorAccessor, ModifiedSlotDetector, NestedRowAccessor, NotNullAccessor, NullAccessor, QueryBindingImpl, ReferenceAccessor, UnderConstructionSlotDetector

public interface FieldTransform
extends java.io.Serializable

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

Version:
$Revision: 45 $ $Date: 2004-04-20 00:23:20 +0200 (Tue, 20 Apr 2004) $

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 © -2006 The Codehaus. All Rights Reserved.