Cumulus4j API
(1.1.0)

org.cumulus4j.store.fieldmanager
Class StoreFieldManager

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

public class StoreFieldManager
extends AbstractFieldManager

Manager for the process of persisting a user object into the datastore, handling the translation from the users own object into the DataEntry object.

Author:
Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de

Constructor Summary
StoreFieldManager(ObjectProvider op, CryptoContext cryptoContext, PersistenceManager pmData, ClassMeta classMeta, AbstractClassMetaData dnClassMetaData, int keyStoreRefID, ObjectContainer objectContainer)
           
 
Method Summary
protected  EmbeddedObjectContainer createEmbeddedObjectContainerFromPC(FieldMeta fieldMeta, EmbeddedClassMeta embeddedClassMeta, Object pc)
           
 void storeBooleanField(int fieldNumber, boolean value)
           
 void storeByteField(int fieldNumber, byte value)
           
 void storeCharField(int fieldNumber, char value)
           
 void storeDoubleField(int fieldNumber, double value)
           
 void storeFloatField(int fieldNumber, float value)
           
 void storeIntField(int fieldNumber, int value)
           
 void storeLongField(int fieldNumber, long value)
           
 void storeObjectField(int fieldNumber, Object value)
           
protected  void storeObjectFieldWithRelationTypeArray(int fieldNumber, Object value, AbstractMemberMetaData mmd, FieldMeta fieldMeta)
          Store an array of related objects (1-n-relationship).
protected  void storeObjectFieldWithRelationTypeCollection(int fieldNumber, Object value, AbstractMemberMetaData mmd, FieldMeta fieldMeta)
          Store a Collection (List, Set, etc.) of related objects (1-n-relationship).
protected  void storeObjectFieldWithRelationTypeMap(int fieldNumber, Object value, AbstractMemberMetaData mmd, FieldMeta fieldMeta)
          Store a Map of related objects (1-n-relationship).
protected  void storeObjectFieldWithRelationTypeNone(int fieldNumber, Object value, AbstractMemberMetaData mmd, FieldMeta fieldMeta)
          Store related objects that are not persistence-capable.
protected  void storeObjectFieldWithRelationTypeSingleValue(int fieldNumber, Object value, AbstractMemberMetaData mmd, FieldMeta fieldMeta)
          Store a single related object (1-1-relationship).
 void storeShortField(int fieldNumber, short value)
           
 void storeStringField(int fieldNumber, String value)
           
 
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

StoreFieldManager

public StoreFieldManager(ObjectProvider op,
                         CryptoContext cryptoContext,
                         PersistenceManager pmData,
                         ClassMeta classMeta,
                         AbstractClassMetaData dnClassMetaData,
                         int keyStoreRefID,
                         ObjectContainer objectContainer)
Method Detail

storeBooleanField

public void storeBooleanField(int fieldNumber,
                              boolean value)
Specified by:
storeBooleanField in interface FieldConsumer
Overrides:
storeBooleanField in class AbstractFieldManager

storeByteField

public void storeByteField(int fieldNumber,
                           byte value)
Specified by:
storeByteField in interface FieldConsumer
Overrides:
storeByteField in class AbstractFieldManager

storeCharField

public void storeCharField(int fieldNumber,
                           char value)
Specified by:
storeCharField in interface FieldConsumer
Overrides:
storeCharField in class AbstractFieldManager

storeDoubleField

public void storeDoubleField(int fieldNumber,
                             double value)
Specified by:
storeDoubleField in interface FieldConsumer
Overrides:
storeDoubleField in class AbstractFieldManager

storeFloatField

public void storeFloatField(int fieldNumber,
                            float value)
Specified by:
storeFloatField in interface FieldConsumer
Overrides:
storeFloatField in class AbstractFieldManager

storeIntField

public void storeIntField(int fieldNumber,
                          int value)
Specified by:
storeIntField in interface FieldConsumer
Overrides:
storeIntField in class AbstractFieldManager

storeLongField

public void storeLongField(int fieldNumber,
                           long value)
Specified by:
storeLongField in interface FieldConsumer
Overrides:
storeLongField in class AbstractFieldManager

storeShortField

public void storeShortField(int fieldNumber,
                            short value)
Specified by:
storeShortField in interface FieldConsumer
Overrides:
storeShortField in class AbstractFieldManager

storeStringField

public void storeStringField(int fieldNumber,
                             String value)
Specified by:
storeStringField in interface FieldConsumer
Overrides:
storeStringField in class AbstractFieldManager

storeObjectField

public void storeObjectField(int fieldNumber,
                             Object value)
Specified by:
storeObjectField in interface FieldConsumer
Overrides:
storeObjectField in class AbstractFieldManager

storeObjectFieldWithRelationTypeNone

protected void storeObjectFieldWithRelationTypeNone(int fieldNumber,
                                                    Object value,
                                                    AbstractMemberMetaData mmd,
                                                    FieldMeta fieldMeta)
Store related objects that are not persistence-capable. The related objects might be single-valued, arrays, collections or maps.


createEmbeddedObjectContainerFromPC

protected EmbeddedObjectContainer createEmbeddedObjectContainerFromPC(FieldMeta fieldMeta,
                                                                      EmbeddedClassMeta embeddedClassMeta,
                                                                      Object pc)

storeObjectFieldWithRelationTypeSingleValue

protected void storeObjectFieldWithRelationTypeSingleValue(int fieldNumber,
                                                           Object value,
                                                           AbstractMemberMetaData mmd,
                                                           FieldMeta fieldMeta)
Store a single related object (1-1-relationship). The related object is persistence-capable.


storeObjectFieldWithRelationTypeArray

protected void storeObjectFieldWithRelationTypeArray(int fieldNumber,
                                                     Object value,
                                                     AbstractMemberMetaData mmd,
                                                     FieldMeta fieldMeta)
Store an array of related objects (1-n-relationship). The related objects are persistence-capable.


storeObjectFieldWithRelationTypeCollection

protected void storeObjectFieldWithRelationTypeCollection(int fieldNumber,
                                                          Object value,
                                                          AbstractMemberMetaData mmd,
                                                          FieldMeta fieldMeta)
Store a Collection (List, Set, etc.) of related objects (1-n-relationship). The related objects are persistence-capable.


storeObjectFieldWithRelationTypeMap

protected void storeObjectFieldWithRelationTypeMap(int fieldNumber,
                                                   Object value,
                                                   AbstractMemberMetaData mmd,
                                                   FieldMeta fieldMeta)
Store a Map of related objects (1-n-relationship). The related objects are persistence-capable.


Cumulus4j API
(1.1.0)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.