org.datanucleus.store.fieldmanager
Class SingleValueFieldManager

java.lang.Object
  extended by org.datanucleus.store.fieldmanager.SingleValueFieldManager
All Implemented Interfaces:
FieldConsumer, FieldManager, FieldSupplier

public class SingleValueFieldManager
extends java.lang.Object
implements FieldManager

Field manager for single field. Stores only a single field value, unlike the StateFieldManager which stores various types.

The field number arguments to each method are ignored.

Version:
$Revision: 1.2 $

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

Constructor Detail

SingleValueFieldManager

public SingleValueFieldManager()
Method Detail

storeBooleanField

public void storeBooleanField(int fieldNumber,
                              boolean value)
Mutator for boolean field.

Specified by:
storeBooleanField in interface FieldConsumer
Parameters:
fieldNumber - Number of field
value - Value

fetchBooleanField

public boolean fetchBooleanField(int fieldNumber)
Accessor for boolean field.

Specified by:
fetchBooleanField in interface FieldSupplier
Parameters:
fieldNumber - Number of field
Returns:
Boolean value

storeCharField

public void storeCharField(int fieldNumber,
                           char value)
Mutator for char field.

Specified by:
storeCharField in interface FieldConsumer
Parameters:
fieldNumber - Number of field
value - Value

fetchCharField

public char fetchCharField(int fieldNumber)
Accessor for int field.

Specified by:
fetchCharField in interface FieldSupplier
Parameters:
fieldNumber - Number of field
Returns:
int value

storeByteField

public void storeByteField(int fieldNumber,
                           byte value)
Mutator for byte field.

Specified by:
storeByteField in interface FieldConsumer
Parameters:
fieldNumber - Number of field
value - Value

fetchByteField

public byte fetchByteField(int fieldNumber)
Accessor for byte field.

Specified by:
fetchByteField in interface FieldSupplier
Parameters:
fieldNumber - Number of field
Returns:
byte value

storeShortField

public void storeShortField(int fieldNumber,
                            short value)
Mutator for boolean field.

Specified by:
storeShortField in interface FieldConsumer
Parameters:
fieldNumber - Number of field
value - Value

fetchShortField

public short fetchShortField(int fieldNumber)
Accessor for short field.

Specified by:
fetchShortField in interface FieldSupplier
Parameters:
fieldNumber - Number of field
Returns:
short value

storeIntField

public void storeIntField(int fieldNumber,
                          int value)
Mutator for int field.

Specified by:
storeIntField in interface FieldConsumer
Parameters:
fieldNumber - Number of field
value - Value

fetchIntField

public int fetchIntField(int fieldNumber)
Accessor for int field.

Specified by:
fetchIntField in interface FieldSupplier
Parameters:
fieldNumber - Number of field
Returns:
int value

storeLongField

public void storeLongField(int fieldNumber,
                           long value)
Mutator for long field.

Specified by:
storeLongField in interface FieldConsumer
Parameters:
fieldNumber - Number of field
value - Value

fetchLongField

public long fetchLongField(int fieldNumber)
Accessor for long field.

Specified by:
fetchLongField in interface FieldSupplier
Parameters:
fieldNumber - Number of field
Returns:
long value

storeFloatField

public void storeFloatField(int fieldNumber,
                            float value)
Mutator for float field.

Specified by:
storeFloatField in interface FieldConsumer
Parameters:
fieldNumber - Number of field
value - Value

fetchFloatField

public float fetchFloatField(int fieldNumber)
Accessor for float field.

Specified by:
fetchFloatField in interface FieldSupplier
Parameters:
fieldNumber - Number of field
Returns:
float value

storeDoubleField

public void storeDoubleField(int fieldNumber,
                             double value)
Mutator for double field.

Specified by:
storeDoubleField in interface FieldConsumer
Parameters:
fieldNumber - Number of field
value - Value

fetchDoubleField

public double fetchDoubleField(int fieldNumber)
Accessor for double field.

Specified by:
fetchDoubleField in interface FieldSupplier
Parameters:
fieldNumber - Number of field
Returns:
double value

storeStringField

public void storeStringField(int fieldNumber,
                             java.lang.String value)
Mutator for String field.

Specified by:
storeStringField in interface FieldConsumer
Parameters:
fieldNumber - Number of field
value - Value

fetchStringField

public java.lang.String fetchStringField(int fieldNumber)
Accessor for String field.

Specified by:
fetchStringField in interface FieldSupplier
Parameters:
fieldNumber - Number of field
Returns:
String value

storeObjectField

public void storeObjectField(int fieldNumber,
                             java.lang.Object value)
Mutator for Object field.

Specified by:
storeObjectField in interface FieldConsumer
Parameters:
fieldNumber - Number of field
value - Value

fetchObjectField

public java.lang.Object fetchObjectField(int fieldNumber)
Accessor for Object field.

Specified by:
fetchObjectField in interface FieldSupplier
Parameters:
fieldNumber - Number of field
Returns:
Object value


Copyright © 2009. All Rights Reserved.