com.khubla.pragmatach.plugin.mongodb
Class MongoDBObjectPersister

java.lang.Object
  extended by com.khubla.pragmatach.plugin.mongodb.MongoDBObjectPersister

public class MongoDBObjectPersister
extends Object

Author:
tom

Constructor Summary
MongoDBObjectPersister(Class<?> typeClazz)
           
 
Method Summary
 com.mongodb.DBObject find(String id)
          find an instance by an id
 Object load(com.mongodb.DBObject dbObject)
           
 void save(Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MongoDBObjectPersister

public MongoDBObjectPersister(Class<?> typeClazz)
Method Detail

find

public com.mongodb.DBObject find(String id)
                          throws PragmatachException
find an instance by an id

Returns:
Throws:
PragmatachException

load

public Object load(com.mongodb.DBObject dbObject)
            throws PragmatachException
Throws:
PragmatachException

save

public void save(Object object)
          throws PragmatachException
Throws:
PragmatachException


Copyright © 2014 khubla.com. All rights reserved.