001 package com.khubla.pragmatach.plugin.mongodb.serializer; 002 003 import java.lang.reflect.Field; 004 005 import com.khubla.pragmatach.framework.api.PragmatachException; 006 import com.mongodb.BasicDBObject; 007 import com.mongodb.DBObject; 008 009 /** 010 * @author tom 011 */ 012 public interface FieldSerializer { 013 void deserializeField(Object object, Field field, DBObject dbObject) throws PragmatachException; 014 015 void serializeField(BasicDBObject parentDBObject, Object object, Field field) throws PragmatachException; 016 }