org.datanucleus.store.fieldmanager
Class DeleteFieldManager

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

public class DeleteFieldManager
extends AbstractFieldManager

Field manager that deletes all "dependent" PC objects referenced from the source object. Effectively provides "delete-dependent".

Version:
$Revision: 1.9 $

Constructor Summary
DeleteFieldManager(StateManager sm)
          Constructor.
 
Method Summary
protected  void processPersistable(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

DeleteFieldManager

public DeleteFieldManager(StateManager sm)
Constructor.

Parameters:
sm - The state manager for the object.
Method Detail

processPersistable

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

Parameters:
pc - The PC object

storeObjectField

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

Specified by:
storeObjectField in interface FieldConsumer
Overrides:
storeObjectField in class 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 FieldConsumer
Overrides:
storeBooleanField in class 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 FieldConsumer
Overrides:
storeByteField in class 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 FieldConsumer
Overrides:
storeCharField in class 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 FieldConsumer
Overrides:
storeDoubleField in class 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 FieldConsumer
Overrides:
storeFloatField in class 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 FieldConsumer
Overrides:
storeIntField in class 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 FieldConsumer
Overrides:
storeLongField in class 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 FieldConsumer
Overrides:
storeShortField in class 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 FieldConsumer
Overrides:
storeStringField in class AbstractFieldManager
Parameters:
fieldNumber - Number of the field (absolute)
value - Value of the field


Copyright © 2009. All Rights Reserved.