Package org.culturegraph.registry

Examples of org.culturegraph.registry.CultureGraphException


    DBObject o = newDBOBbject(record);
    String id = (String) o.get("_id");
    if (id != null
        && this.dbCollection.findOne(new BasicDBObject("_id", o
            .get("_id"))) != null) {
      throw new CultureGraphException(Type.ALREADY_REGISTERED,
          "Entity with id " + id + " has already been registered.");
    }
    this.dbCollection.save(o);
    return o.get("_id").toString();
  }
View Full Code Here

TOP

Related Classes of org.culturegraph.registry.CultureGraphException

Copyright © 2018 www.massapicom. 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.