com.khubla.pragmatach.plugin.mongodb.serializer
Class SetFieldSerializer

java.lang.Object
  extended by com.khubla.pragmatach.plugin.mongodb.serializer.SetFieldSerializer
All Implemented Interfaces:
FieldSerializer

public class SetFieldSerializer
extends Object
implements FieldSerializer

Author:
tom

Constructor Summary
SetFieldSerializer(Class<?> typeClazz)
          ctor
 
Method Summary
 void deserializeField(Object object, Field field, com.mongodb.DBObject dbObject)
           
 void serializeField(com.mongodb.BasicDBObject parentDBObject, Object object, Field field)
          the strategy here is that we store the id's in the parent object, and then use DAOs to persist each contained object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetFieldSerializer

public SetFieldSerializer(Class<?> typeClazz)
ctor

Method Detail

deserializeField

public void deserializeField(Object object,
                             Field field,
                             com.mongodb.DBObject dbObject)
                      throws PragmatachException
Specified by:
deserializeField in interface FieldSerializer
Throws:
PragmatachException

serializeField

public void serializeField(com.mongodb.BasicDBObject parentDBObject,
                           Object object,
                           Field field)
                    throws PragmatachException
the strategy here is that we store the id's in the parent object, and then use DAOs to persist each contained object.

Specified by:
serializeField in interface FieldSerializer
Throws:
PragmatachException


Copyright © 2014 khubla.com. All rights reserved.