org.datanucleus.api.rest
Class FromJSONFieldManager

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

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

FieldManager responsible for accessing the values from a JSONObject, and putting into a POJO.


Constructor Summary
FromJSONFieldManager(JSONObject jsonobj, org.datanucleus.metadata.AbstractClassMetaData cmd, org.datanucleus.store.ExecutionContext ec)
           
FromJSONFieldManager(JSONObject jsonobj, org.datanucleus.metadata.AbstractClassMetaData cmd, org.datanucleus.store.ObjectProvider op)
           
 
Method Summary
 boolean fetchBooleanField(int position)
           
 byte fetchByteField(int position)
           
 char fetchCharField(int position)
           
 double fetchDoubleField(int position)
           
 float fetchFloatField(int position)
           
 int fetchIntField(int position)
           
 long fetchLongField(int position)
           
 java.lang.Object fetchObjectField(int position)
           
 short fetchShortField(int position)
           
 java.lang.String fetchStringField(int position)
           
 
Methods inherited from class org.datanucleus.store.fieldmanager.AbstractFieldManager
storeBooleanField, storeByteField, storeCharField, storeDoubleField, storeFloatField, storeIntField, storeLongField, storeObjectField, storeShortField, storeStringField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FromJSONFieldManager

public FromJSONFieldManager(JSONObject jsonobj,
                            org.datanucleus.metadata.AbstractClassMetaData cmd,
                            org.datanucleus.store.ExecutionContext ec)
Parameters:
jsonobj - The JSON Object that we are processing the values for.
cmd - Metadata for the class
ec - ExecutionContext

FromJSONFieldManager

public FromJSONFieldManager(JSONObject jsonobj,
                            org.datanucleus.metadata.AbstractClassMetaData cmd,
                            org.datanucleus.store.ObjectProvider op)
Method Detail

fetchStringField

public java.lang.String fetchStringField(int position)
Specified by:
fetchStringField in interface org.datanucleus.store.fieldmanager.FieldSupplier
Overrides:
fetchStringField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

fetchShortField

public short fetchShortField(int position)
Specified by:
fetchShortField in interface org.datanucleus.store.fieldmanager.FieldSupplier
Overrides:
fetchShortField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

fetchObjectField

public java.lang.Object fetchObjectField(int position)
Specified by:
fetchObjectField in interface org.datanucleus.store.fieldmanager.FieldSupplier
Overrides:
fetchObjectField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

fetchLongField

public long fetchLongField(int position)
Specified by:
fetchLongField in interface org.datanucleus.store.fieldmanager.FieldSupplier
Overrides:
fetchLongField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

fetchIntField

public int fetchIntField(int position)
Specified by:
fetchIntField in interface org.datanucleus.store.fieldmanager.FieldSupplier
Overrides:
fetchIntField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

fetchFloatField

public float fetchFloatField(int position)
Specified by:
fetchFloatField in interface org.datanucleus.store.fieldmanager.FieldSupplier
Overrides:
fetchFloatField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

fetchDoubleField

public double fetchDoubleField(int position)
Specified by:
fetchDoubleField in interface org.datanucleus.store.fieldmanager.FieldSupplier
Overrides:
fetchDoubleField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

fetchCharField

public char fetchCharField(int position)
Specified by:
fetchCharField in interface org.datanucleus.store.fieldmanager.FieldSupplier
Overrides:
fetchCharField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

fetchByteField

public byte fetchByteField(int position)
Specified by:
fetchByteField in interface org.datanucleus.store.fieldmanager.FieldSupplier
Overrides:
fetchByteField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

fetchBooleanField

public boolean fetchBooleanField(int position)
Specified by:
fetchBooleanField in interface org.datanucleus.store.fieldmanager.FieldSupplier
Overrides:
fetchBooleanField in class org.datanucleus.store.fieldmanager.AbstractFieldManager


Copyright © 2012. All Rights Reserved.