com.triactive.jdo
Class GenericFieldManager

java.lang.Object
  extended bycom.triactive.jdo.GenericFieldManager
All Implemented Interfaces:
FieldManager

public abstract class GenericFieldManager
extends java.lang.Object
implements FieldManager

An abstract base class for a field manager that deals with all fields as generic Objects. All the type-specific field manager methods (for primitives and Strings) are funneled to fetchObjectField() and storeObjectField() and primitive values are boxed/unboxed as needed.

Author:
Mike Martin

Constructor Summary
GenericFieldManager()
           
 
Method Summary
 boolean fetchBooleanField(int field)
           
 byte fetchByteField(int field)
           
 char fetchCharField(int field)
           
 double fetchDoubleField(int field)
           
 float fetchFloatField(int field)
           
 int fetchIntField(int field)
           
 long fetchLongField(int field)
           
abstract  java.lang.Object fetchObjectField(int field)
           
 short fetchShortField(int field)
           
 java.lang.String fetchStringField(int field)
           
 void storeBooleanField(int field, boolean value)
           
 void storeByteField(int field, byte value)
           
 void storeCharField(int field, char value)
           
 void storeDoubleField(int field, double value)
           
 void storeFloatField(int field, float value)
           
 void storeIntField(int field, int value)
           
 void storeLongField(int field, long value)
           
abstract  void storeObjectField(int field, java.lang.Object value)
           
 void storeShortField(int field, short value)
           
 void storeStringField(int field, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericFieldManager

public GenericFieldManager()
Method Detail

storeBooleanField

public void storeBooleanField(int field,
                              boolean value)
Specified by:
storeBooleanField in interface FieldManager

fetchBooleanField

public boolean fetchBooleanField(int field)
Specified by:
fetchBooleanField in interface FieldManager

storeCharField

public void storeCharField(int field,
                           char value)
Specified by:
storeCharField in interface FieldManager

fetchCharField

public char fetchCharField(int field)
Specified by:
fetchCharField in interface FieldManager

storeByteField

public void storeByteField(int field,
                           byte value)
Specified by:
storeByteField in interface FieldManager

fetchByteField

public byte fetchByteField(int field)
Specified by:
fetchByteField in interface FieldManager

storeShortField

public void storeShortField(int field,
                            short value)
Specified by:
storeShortField in interface FieldManager

fetchShortField

public short fetchShortField(int field)
Specified by:
fetchShortField in interface FieldManager

storeIntField

public void storeIntField(int field,
                          int value)
Specified by:
storeIntField in interface FieldManager

fetchIntField

public int fetchIntField(int field)
Specified by:
fetchIntField in interface FieldManager

storeLongField

public void storeLongField(int field,
                           long value)
Specified by:
storeLongField in interface FieldManager

fetchLongField

public long fetchLongField(int field)
Specified by:
fetchLongField in interface FieldManager

storeFloatField

public void storeFloatField(int field,
                            float value)
Specified by:
storeFloatField in interface FieldManager

fetchFloatField

public float fetchFloatField(int field)
Specified by:
fetchFloatField in interface FieldManager

storeDoubleField

public void storeDoubleField(int field,
                             double value)
Specified by:
storeDoubleField in interface FieldManager

fetchDoubleField

public double fetchDoubleField(int field)
Specified by:
fetchDoubleField in interface FieldManager

storeStringField

public void storeStringField(int field,
                             java.lang.String value)
Specified by:
storeStringField in interface FieldManager

fetchStringField

public java.lang.String fetchStringField(int field)
Specified by:
fetchStringField in interface FieldManager

storeObjectField

public abstract void storeObjectField(int field,
                                      java.lang.Object value)
Specified by:
storeObjectField in interface FieldManager

fetchObjectField

public abstract java.lang.Object fetchObjectField(int field)
Specified by:
fetchObjectField in interface FieldManager


Copyright © 2001-2007 The TJDO Project All Rights Reserved.