org.tranql.cache
Class ModifiedSlotAccessor

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

public class ModifiedSlotAccessor
extends CacheRowAccessor

Version:
$Revision: 45 $ $Date: 2004-04-20 00:23:20 +0200 (Tue, 20 Apr 2004) $
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
Returns:
the Java Class for this field

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
Parameters:
row - the row whose data should be set
value - the value to store in the row, may be null


Copyright © -2010 The Codehaus. All Rights Reserved.