org.datanucleus.store.json.fieldmanager
Class StoreFieldManager

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

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

FieldManager for inserting data into the provided JSONObject from the ObjectProvider.


Field Summary
protected  boolean insert
           
 
Constructor Summary
StoreFieldManager(org.datanucleus.store.ObjectProvider op, JSONObject jsonobj, boolean insert)
           
 
Method Summary
protected  boolean isStorable(org.datanucleus.metadata.AbstractMemberMetaData mmd)
           
protected  boolean isStorable(int fieldNumber)
           
 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, java.lang.Object value)
           
protected  void storeObjectFieldInternal(int fieldNumber, java.lang.Object value, org.datanucleus.metadata.AbstractMemberMetaData mmd, org.datanucleus.ClassLoaderResolver clr)
           
 void storeShortField(int fieldNumber, short value)
           
 void storeStringField(int fieldNumber, java.lang.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
 

Field Detail

insert

protected boolean insert
Constructor Detail

StoreFieldManager

public StoreFieldManager(org.datanucleus.store.ObjectProvider op,
                         JSONObject jsonobj,
                         boolean insert)
Method Detail

isStorable

protected boolean isStorable(int fieldNumber)

isStorable

protected boolean isStorable(org.datanucleus.metadata.AbstractMemberMetaData mmd)

storeBooleanField

public void storeBooleanField(int fieldNumber,
                              boolean value)
Specified by:
storeBooleanField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeBooleanField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

storeByteField

public void storeByteField(int fieldNumber,
                           byte value)
Specified by:
storeByteField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeByteField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

storeCharField

public void storeCharField(int fieldNumber,
                           char value)
Specified by:
storeCharField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeCharField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

storeDoubleField

public void storeDoubleField(int fieldNumber,
                             double value)
Specified by:
storeDoubleField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeDoubleField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

storeFloatField

public void storeFloatField(int fieldNumber,
                            float value)
Specified by:
storeFloatField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeFloatField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

storeIntField

public void storeIntField(int fieldNumber,
                          int value)
Specified by:
storeIntField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeIntField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

storeLongField

public void storeLongField(int fieldNumber,
                           long value)
Specified by:
storeLongField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeLongField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

storeShortField

public void storeShortField(int fieldNumber,
                            short value)
Specified by:
storeShortField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeShortField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

storeStringField

public void storeStringField(int fieldNumber,
                             java.lang.String value)
Specified by:
storeStringField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeStringField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

storeObjectField

public void storeObjectField(int fieldNumber,
                             java.lang.Object value)
Specified by:
storeObjectField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeObjectField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

storeObjectFieldInternal

protected void storeObjectFieldInternal(int fieldNumber,
                                        java.lang.Object value,
                                        org.datanucleus.metadata.AbstractMemberMetaData mmd,
                                        org.datanucleus.ClassLoaderResolver clr)
                                 throws JSONException
Throws:
JSONException


Copyright © 2012. All Rights Reserved.