org.tranql.field
Class GlobalIdentityAccessor

java.lang.Object
  extended byorg.tranql.field.GlobalIdentityAccessor
All Implemented Interfaces:
FieldTransform, java.io.Serializable

public class GlobalIdentityAccessor
extends java.lang.Object
implements FieldTransform

Version:
$Revision: 127 $ $Date: 2004-10-15 03:52:57 +0200 (Fri, 15 Oct 2004) $
See Also:
Serialized Form

Constructor Summary
GlobalIdentityAccessor(FieldTransform next, IdentityTransform idTransform)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalIdentityAccessor

public GlobalIdentityAccessor(FieldTransform next,
                              IdentityTransform idTransform)
Method Detail

getFieldClass

public java.lang.Class getFieldClass()
Description copied from interface: FieldTransform
Return the Java Class that will be returned by fetch and that should be passed to set.

Specified by:
getFieldClass in interface FieldTransform
Returns:
the Java Class for this field

get

public java.lang.Object get(Row row)
                     throws FieldTransformException
Description copied from interface: FieldTransform
Return a value from the cache

Specified by:
get in interface FieldTransform
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
Description copied from interface: FieldTransform
Set a value into the cache

Specified by:
set in interface FieldTransform
Parameters:
row - the row to store the value into
value - the value to be transformed
Throws:
FieldTransformException


Copyright © -2006 The Codehaus. All Rights Reserved.