org.datanucleus.store.db4o.fieldmanager
Class AssignStateManagerFieldManager

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

public class AssignStateManagerFieldManager
extends org.datanucleus.store.fieldmanager.AbstractFieldManager

Field manager that starts from the source object and for all fields will assign StateManagers to all related PersistenceCapable objects found (unless already managed), assuming they are in PersistenceClean state.


Constructor Summary
AssignStateManagerFieldManager(DB4OStoreManager storeMgr, com.db4o.ObjectContainer cont, org.datanucleus.store.ObjectProvider sm)
          Constructor.
 
Method Summary
protected  void processPersistable(int fieldNumber, java.lang.Object pc)
          Utility method to process the passed persistable object.
 void storeBooleanField(int fieldNumber, boolean value)
          Method to store a boolean field.
 void storeByteField(int fieldNumber, byte value)
          Method to store a byte field.
 void storeCharField(int fieldNumber, char value)
          Method to store a char field.
 void storeDoubleField(int fieldNumber, double value)
          Method to store a double field.
 void storeFloatField(int fieldNumber, float value)
          Method to store a float field.
 void storeIntField(int fieldNumber, int value)
          Method to store an int field.
 void storeLongField(int fieldNumber, long value)
          Method to store a long field.
 void storeObjectField(int fieldNumber, java.lang.Object value)
          Method to store an object field.
 void storeShortField(int fieldNumber, short value)
          Method to store a short field.
 void storeStringField(int fieldNumber, java.lang.String value)
          Method to store a string field.
 
Methods inherited from class org.datanucleus.store.fieldmanager.AbstractFieldManager
fetchBooleanField, fetchByteField, fetchCharField, fetchDoubleField, fetchFloatField, fetchIntField, fetchLongField, fetchObjectField, fetchShortField, fetchStringField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssignStateManagerFieldManager

public AssignStateManagerFieldManager(DB4OStoreManager storeMgr,
                                      com.db4o.ObjectContainer cont,
                                      org.datanucleus.store.ObjectProvider sm)
Constructor.

Parameters:
storeMgr - DB4OStoreManager
cont - ObjectContainer
sm - The state manager for the object.
Method Detail

processPersistable

protected void processPersistable(int fieldNumber,
                                  java.lang.Object pc)
Utility method to process the passed persistable object.

Parameters:
fieldNumber - Absolute field number
pc - The persistable object

storeObjectField

public void storeObjectField(int fieldNumber,
                             java.lang.Object value)
Method to store an object field.

Specified by:
storeObjectField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeObjectField in class org.datanucleus.store.fieldmanager.AbstractFieldManager
Parameters:
fieldNumber - Number of the field (absolute)
value - Value of the field

storeBooleanField

public void storeBooleanField(int fieldNumber,
                              boolean value)
Method to store a boolean field.

Specified by:
storeBooleanField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeBooleanField in class org.datanucleus.store.fieldmanager.AbstractFieldManager
Parameters:
fieldNumber - Number of the field (absolute)
value - Value of the field

storeByteField

public void storeByteField(int fieldNumber,
                           byte value)
Method to store a byte field.

Specified by:
storeByteField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeByteField in class org.datanucleus.store.fieldmanager.AbstractFieldManager
Parameters:
fieldNumber - Number of the field (absolute)
value - Value of the field

storeCharField

public void storeCharField(int fieldNumber,
                           char value)
Method to store a char field.

Specified by:
storeCharField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeCharField in class org.datanucleus.store.fieldmanager.AbstractFieldManager
Parameters:
fieldNumber - Number of the field (absolute)
value - Value of the field

storeDoubleField

public void storeDoubleField(int fieldNumber,
                             double value)
Method to store a double field.

Specified by:
storeDoubleField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeDoubleField in class org.datanucleus.store.fieldmanager.AbstractFieldManager
Parameters:
fieldNumber - Number of the field (absolute)
value - Value of the field

storeFloatField

public void storeFloatField(int fieldNumber,
                            float value)
Method to store a float field.

Specified by:
storeFloatField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeFloatField in class org.datanucleus.store.fieldmanager.AbstractFieldManager
Parameters:
fieldNumber - Number of the field (absolute)
value - Value of the field

storeIntField

public void storeIntField(int fieldNumber,
                          int value)
Method to store an int field.

Specified by:
storeIntField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeIntField in class org.datanucleus.store.fieldmanager.AbstractFieldManager
Parameters:
fieldNumber - Number of the field (absolute)
value - Value of the field

storeLongField

public void storeLongField(int fieldNumber,
                           long value)
Method to store a long field.

Specified by:
storeLongField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeLongField in class org.datanucleus.store.fieldmanager.AbstractFieldManager
Parameters:
fieldNumber - Number of the field (absolute)
value - Value of the field

storeShortField

public void storeShortField(int fieldNumber,
                            short value)
Method to store a short field.

Specified by:
storeShortField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeShortField in class org.datanucleus.store.fieldmanager.AbstractFieldManager
Parameters:
fieldNumber - Number of the field (absolute)
value - Value of the field

storeStringField

public void storeStringField(int fieldNumber,
                             java.lang.String value)
Method to store a string field.

Specified by:
storeStringField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeStringField in class org.datanucleus.store.fieldmanager.AbstractFieldManager
Parameters:
fieldNumber - Number of the field (absolute)
value - Value of the field


Copyright © 2012. All Rights Reserved.