Package org.culturegraph.registry.mongo

Examples of org.culturegraph.registry.mongo.MongoDao.find()


 
  private final static Logger logger = Logger.getLogger(MongoDaoTest.class);

  public void testSearch() throws UnknownHostException, MongoException {
    MongoDao dao = MongoDao.Factory.newTestMongoDao();
    Collection<PropertyRecord> result = dao.find("_id", "urn:nbn:de:eki:cg010018727");
    logger.info("" + result.size());
   
    Iterator<PropertyRecord> it = result.iterator();
    while(it.hasNext()){
      logger.info(it.next().getLastModified());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.