org.tranql.field
Class NullAccessor

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

public class NullAccessor
extends java.lang.Object
implements FieldTransform

Version:
$Revision: 1.1 $ $Date: 2004/04/20 23:29:04 $
See Also:
Serialized Form

Constructor Summary
NullAccessor(java.lang.Class fieldClass)
           
 
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

NullAccessor

public NullAccessor(java.lang.Class fieldClass)
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 © -2005 The Codehaus. All Rights Reserved.