org.tranql.cache
Class ModifiedSlotAccessor

java.lang.Object
  extended byorg.tranql.field.FieldAccessor
      extended byorg.tranql.cache.CacheRowAccessor
          extended byorg.tranql.cache.ModifiedSlotAccessor
All Implemented Interfaces:
FieldTransform, java.io.Serializable

public class ModifiedSlotAccessor
extends CacheRowAccessor

Version:
$Revision: 1.2 $ $Date: 2004/04/19 22:23:20 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.tranql.field.FieldAccessor
fieldClass, slot
 
Constructor Summary
ModifiedSlotAccessor(int slot, java.lang.Class fieldClass)
           
 
Method Summary
 java.lang.Object get(Row row)
          Return a value from the supplied row.
 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 supplied row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModifiedSlotAccessor

public ModifiedSlotAccessor(int slot,
                            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
Overrides:
getFieldClass in class FieldAccessor

get

public java.lang.Object get(Row row)
Description copied from class: FieldAccessor
Return a value from the supplied row.

Specified by:
get in interface FieldTransform
Overrides:
get in class FieldAccessor
Parameters:
row - the row whose data should be returned
Returns:
the value this row contains for this accessor, may be null

set

public void set(Row row,
                java.lang.Object value)
Description copied from class: FieldAccessor
Set a value into the supplied row.

Specified by:
set in interface FieldTransform
Overrides:
set in class CacheRowAccessor


Copyright © -2005 The Codehaus. All Rights Reserved.