org.apache.jdo.impl.fostore
Class AbstractFieldManager

java.lang.Object
  extended byorg.apache.jdo.impl.fostore.AbstractFieldManager
All Implemented Interfaces:
FieldManager
Direct Known Subclasses:
FieldFetcher

class AbstractFieldManager
extends java.lang.Object
implements FieldManager

An implementation of FieldManager in which all methods throw a FOStoreAbstractMethodException with the name of the method invoked.

Author:
Dave Bristor

Field Summary
private static java.lang.String name
           
 
Constructor Summary
(package private) AbstractFieldManager()
           
 
Method Summary
 boolean fetchBooleanField(int fieldNum)
           
 byte fetchByteField(int fieldNum)
           
 char fetchCharField(int fieldNum)
           
 double fetchDoubleField(int fieldNum)
           
 float fetchFloatField(int fieldNum)
           
 int fetchIntField(int fieldNum)
           
 long fetchLongField(int fieldNum)
           
 java.lang.Object fetchObjectField(int fieldNum)
           
 short fetchShortField(int fieldNum)
           
 java.lang.String fetchStringField(int fieldNum)
           
 void storeBooleanField(int fieldNum, boolean value)
          Provides the means by which the value of a boolean field can be given by a StateManager to an object that needs the value.
 void storeByteField(int fieldNum, byte value)
          Provides the means by which the value of a byte field can be given by a StateManager to an object that needs the value.
 void storeCharField(int fieldNum, char value)
          Provides the means by which the value of a char field can be given by a StateManager to an object that needs the value.
 void storeDoubleField(int fieldNum, double value)
          Provides the means by which the value of a double field can be given by a StateManager to an object that needs the value.
 void storeFloatField(int fieldNum, float value)
          Provides the means by which the value of a field can be given by a StateManager to an object that needs the value.
 void storeIntField(int fieldNum, int value)
          Provides the means by which the value of a int field can be given by a StateManager to an object that needs the value.
 void storeLongField(int fieldNum, long value)
          Provides the means by which the value of a long field can be given by a StateManager to an object that needs the value.
 void storeObjectField(int fieldNum, java.lang.Object value)
          Provides the means by which the value of an Object field can be given by a StateManager to an object that needs the value.
 void storeShortField(int fieldNum, short value)
          Provides the means by which the value of a short field can be given by a StateManager to an object that needs the value.
 void storeStringField(int fieldNum, java.lang.String value)
          Provides the means by which the value of a String field can be given by a StateManager to an object that needs the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private static final java.lang.String name
Constructor Detail

AbstractFieldManager

AbstractFieldManager()
Method Detail

storeBooleanField

public void storeBooleanField(int fieldNum,
                              boolean value)
Description copied from interface: FieldManager
Provides the means by which the value of a boolean field can be given by a StateManager to an object that needs the value.

Specified by:
storeBooleanField in interface FieldManager
Parameters:
fieldNum - Field number of the field in the object whose value is given.
value - Boolean that is the value of a particular field.
See Also:
FieldManager.storeBooleanField(int fieldNum, boolean value)

fetchBooleanField

public boolean fetchBooleanField(int fieldNum)
Specified by:
fetchBooleanField in interface FieldManager
See Also:
FieldManager.fetchBooleanField(int fieldNum)

storeCharField

public void storeCharField(int fieldNum,
                           char value)
Description copied from interface: FieldManager
Provides the means by which the value of a char field can be given by a StateManager to an object that needs the value.

Specified by:
storeCharField in interface FieldManager
Parameters:
fieldNum - Field number of the field in the object whose value is given.
value - Char that is the value of a particular field.
See Also:
FieldManager.storeCharField(int fieldNum, char value)

fetchCharField

public char fetchCharField(int fieldNum)
Specified by:
fetchCharField in interface FieldManager
See Also:
FieldManager.fetchCharField(int fieldNum)

storeByteField

public void storeByteField(int fieldNum,
                           byte value)
Description copied from interface: FieldManager
Provides the means by which the value of a byte field can be given by a StateManager to an object that needs the value.

Specified by:
storeByteField in interface FieldManager
Parameters:
fieldNum - Field number of the field in the object whose value is given.
value - Byte that is the value of a particular field.
See Also:
FieldManager.storeByteField(int fieldNum, byte value)

fetchByteField

public byte fetchByteField(int fieldNum)
Specified by:
fetchByteField in interface FieldManager
See Also:
FieldManager.fetchByteField(int fieldNum)

storeShortField

public void storeShortField(int fieldNum,
                            short value)
Description copied from interface: FieldManager
Provides the means by which the value of a short field can be given by a StateManager to an object that needs the value.

Specified by:
storeShortField in interface FieldManager
Parameters:
fieldNum - Field number of the field in the object whose value is given.
value - Short that is the value of a particular field.
See Also:
FieldManager.storeShortField(int fieldNum, short value)

fetchShortField

public short fetchShortField(int fieldNum)
Specified by:
fetchShortField in interface FieldManager
See Also:
FieldManager.fetchShortField(int fieldNum)

storeIntField

public void storeIntField(int fieldNum,
                          int value)
Description copied from interface: FieldManager
Provides the means by which the value of a int field can be given by a StateManager to an object that needs the value.

Specified by:
storeIntField in interface FieldManager
Parameters:
fieldNum - Field number of the field in the object whose value is given.
value - Int that is the value of a particular field.
See Also:
FieldManager.storeIntField(int fieldNum, int value)

fetchIntField

public int fetchIntField(int fieldNum)
Specified by:
fetchIntField in interface FieldManager
See Also:
FieldManager.fetchIntField(int fieldNum)

storeLongField

public void storeLongField(int fieldNum,
                           long value)
Description copied from interface: FieldManager
Provides the means by which the value of a long field can be given by a StateManager to an object that needs the value.

Specified by:
storeLongField in interface FieldManager
Parameters:
fieldNum - Field number of the field in the object whose value is given.
value - Long that is the value of a particular field.
See Also:
FieldManager.storeLongField(int fieldNum, long value)

fetchLongField

public long fetchLongField(int fieldNum)
Specified by:
fetchLongField in interface FieldManager
See Also:
FieldManager.fetchLongField(int fieldNum)

storeFloatField

public void storeFloatField(int fieldNum,
                            float value)
Description copied from interface: FieldManager
Provides the means by which the value of a field can be given by a StateManager to an object that needs the value.

Specified by:
storeFloatField in interface FieldManager
Parameters:
fieldNum - Field number of the field in the object whose value is given.
value - that is the value of a particular field.
See Also:
FieldManager.storeFloatField(int fieldNum, float value)

fetchFloatField

public float fetchFloatField(int fieldNum)
Specified by:
fetchFloatField in interface FieldManager
See Also:
FieldManager.fetchFloatField(int fieldNum)

storeDoubleField

public void storeDoubleField(int fieldNum,
                             double value)
Description copied from interface: FieldManager
Provides the means by which the value of a double field can be given by a StateManager to an object that needs the value.

Specified by:
storeDoubleField in interface FieldManager
Parameters:
fieldNum - Field number of the field in the object whose value is given.
value - Double that is the value of a particular field.
See Also:
FieldManager.storeDoubleField(int fieldNum, double value)

fetchDoubleField

public double fetchDoubleField(int fieldNum)
Specified by:
fetchDoubleField in interface FieldManager
See Also:
FieldManager.fetchDoubleField(int fieldNum)

storeStringField

public void storeStringField(int fieldNum,
                             java.lang.String value)
Description copied from interface: FieldManager
Provides the means by which the value of a String field can be given by a StateManager to an object that needs the value.

Specified by:
storeStringField in interface FieldManager
Parameters:
fieldNum - Field number of the field in the object whose value is given.
value - String that is the value of a particular field.
See Also:
FieldManager.storeStringField(int fieldNum, String value)

fetchStringField

public java.lang.String fetchStringField(int fieldNum)
Specified by:
fetchStringField in interface FieldManager
See Also:
FieldManager.fetchStringField(int fieldNum)

storeObjectField

public void storeObjectField(int fieldNum,
                             java.lang.Object value)
Description copied from interface: FieldManager
Provides the means by which the value of an Object field can be given by a StateManager to an object that needs the value.

Specified by:
storeObjectField in interface FieldManager
Parameters:
fieldNum - Field number of the field in the object whose value is given.
value - Object that is the value of a particular field.
See Also:
FieldManager.storeObjectField(int fieldNum, Object value)

fetchObjectField

public java.lang.Object fetchObjectField(int fieldNum)
Specified by:
fetchObjectField in interface FieldManager
See Also:
FieldManager.fetchObjectField(int fieldNum)