org.datanucleus.store.fieldmanager
Class AbstractFieldManager

java.lang.Object
  extended by org.datanucleus.store.fieldmanager.AbstractFieldManager
All Implemented Interfaces:
FieldConsumer, FieldManager, FieldSupplier
Direct Known Subclasses:
AbstractFetchFieldManager, AttachFieldManager, CachePopulateFieldManager, CacheRetrieveFieldManager, DeleteFieldManager, NullifyRelationFieldManager, PersistFieldManager, ReachabilityFieldManager, UnsetOwners

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

Abstract representation of a field manager.


Constructor Summary
AbstractFieldManager()
          Default constructor
 
Method Summary
 boolean fetchBooleanField(int fieldNumber)
          Fetch a boolean field at the specified field number, returning it.
 byte fetchByteField(int fieldNumber)
          Fetch a byte field at the specified field number, returning it.
 char fetchCharField(int fieldNumber)
          Fetch a char field at the specified field number, returning it.
 double fetchDoubleField(int fieldNumber)
          Fetch a double field at the specified field number, returning it.
 float fetchFloatField(int fieldNumber)
          Fetch a float field at the specified field number, returning it.
 int fetchIntField(int fieldNumber)
          Fetch an int field at the specified field number, returning it.
 long fetchLongField(int fieldNumber)
          Fetch a long field at the specified field number, returning it.
 java.lang.Object fetchObjectField(int fieldNumber)
          Fetch an object field at the specified field number, returning it.
 short fetchShortField(int fieldNumber)
          Fetch a short field at the specified field number, returning it.
 java.lang.String fetchStringField(int fieldNumber)
          Fetch a string field at the specified field number, returning it.
 void storeBooleanField(int fieldNumber, boolean value)
          Method to store a boolean field value in the object at the specified field position.
 void storeByteField(int fieldNumber, byte value)
          Method to store a byte field value in the object at the specified field position.
 void storeCharField(int fieldNumber, char value)
          Method to store a char field value in the object at the specified field position.
 void storeDoubleField(int fieldNumber, double value)
          Method to store a double field value in the object at the specified field position.
 void storeFloatField(int fieldNumber, float value)
          Method to store a float field value in the object at the specified field position.
 void storeIntField(int fieldNumber, int value)
          Method to store an int field value in the object at the specified field position.
 void storeLongField(int fieldNumber, long value)
          Method to store a long field value in the object at the specified field position.
 void storeObjectField(int fieldNumber, java.lang.Object value)
          Method to store an object field value in the object at the specified field position.
 void storeShortField(int fieldNumber, short value)
          Method to store a short field value in the object at the specified field position.
 void storeStringField(int fieldNumber, java.lang.String value)
          Method to store a string field value in the object at the specified field position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFieldManager

public AbstractFieldManager()
Default constructor

Method Detail

storeBooleanField

public void storeBooleanField(int fieldNumber,
                              boolean value)
Description copied from interface: FieldConsumer
Method to store a boolean field value in the object at the specified field position.

Specified by:
storeBooleanField in interface FieldConsumer
Parameters:
fieldNumber - Number of the field
value - value to store

fetchBooleanField

public boolean fetchBooleanField(int fieldNumber)
Description copied from interface: FieldSupplier
Fetch a boolean field at the specified field number, returning it.

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

storeCharField

public void storeCharField(int fieldNumber,
                           char value)
Description copied from interface: FieldConsumer
Method to store a char field value in the object at the specified field position.

Specified by:
storeCharField in interface FieldConsumer
Parameters:
fieldNumber - Number of the field
value - value to store

fetchCharField

public char fetchCharField(int fieldNumber)
Description copied from interface: FieldSupplier
Fetch a char field at the specified field number, returning it.

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

storeByteField

public void storeByteField(int fieldNumber,
                           byte value)
Description copied from interface: FieldConsumer
Method to store a byte field value in the object at the specified field position.

Specified by:
storeByteField in interface FieldConsumer
Parameters:
fieldNumber - Number of the field
value - value to store

fetchByteField

public byte fetchByteField(int fieldNumber)
Description copied from interface: FieldSupplier
Fetch a byte field at the specified field number, returning it.

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

storeShortField

public void storeShortField(int fieldNumber,
                            short value)
Description copied from interface: FieldConsumer
Method to store a short field value in the object at the specified field position.

Specified by:
storeShortField in interface FieldConsumer
Parameters:
fieldNumber - Number of the field
value - value to store

fetchShortField

public short fetchShortField(int fieldNumber)
Description copied from interface: FieldSupplier
Fetch a short field at the specified field number, returning it.

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

storeIntField

public void storeIntField(int fieldNumber,
                          int value)
Description copied from interface: FieldConsumer
Method to store an int field value in the object at the specified field position.

Specified by:
storeIntField in interface FieldConsumer
Parameters:
fieldNumber - Number of the field
value - value to store

fetchIntField

public int fetchIntField(int fieldNumber)
Description copied from interface: FieldSupplier
Fetch an int field at the specified field number, returning it.

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

storeLongField

public void storeLongField(int fieldNumber,
                           long value)
Description copied from interface: FieldConsumer
Method to store a long field value in the object at the specified field position.

Specified by:
storeLongField in interface FieldConsumer
Parameters:
fieldNumber - Number of the field
value - value to store

fetchLongField

public long fetchLongField(int fieldNumber)
Description copied from interface: FieldSupplier
Fetch a long field at the specified field number, returning it.

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

storeFloatField

public void storeFloatField(int fieldNumber,
                            float value)
Description copied from interface: FieldConsumer
Method to store a float field value in the object at the specified field position.

Specified by:
storeFloatField in interface FieldConsumer
Parameters:
fieldNumber - Number of the field
value - value to store

fetchFloatField

public float fetchFloatField(int fieldNumber)
Description copied from interface: FieldSupplier
Fetch a float field at the specified field number, returning it.

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

storeDoubleField

public void storeDoubleField(int fieldNumber,
                             double value)
Description copied from interface: FieldConsumer
Method to store a double field value in the object at the specified field position.

Specified by:
storeDoubleField in interface FieldConsumer
Parameters:
fieldNumber - Number of the field
value - value to store

fetchDoubleField

public double fetchDoubleField(int fieldNumber)
Description copied from interface: FieldSupplier
Fetch a double field at the specified field number, returning it.

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

storeStringField

public void storeStringField(int fieldNumber,
                             java.lang.String value)
Description copied from interface: FieldConsumer
Method to store a string field value in the object at the specified field position.

Specified by:
storeStringField in interface FieldConsumer
Parameters:
fieldNumber - Number of the field
value - value to store

fetchStringField

public java.lang.String fetchStringField(int fieldNumber)
Description copied from interface: FieldSupplier
Fetch a string field at the specified field number, returning it.

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

storeObjectField

public void storeObjectField(int fieldNumber,
                             java.lang.Object value)
Description copied from interface: FieldConsumer
Method to store an object field value in the object at the specified field position.

Specified by:
storeObjectField in interface FieldConsumer
Parameters:
fieldNumber - Number of the field
value - value to store

fetchObjectField

public java.lang.Object fetchObjectField(int fieldNumber)
Description copied from interface: FieldSupplier
Fetch an object field at the specified field number, returning it.

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


Copyright © 2011. All Rights Reserved.