Examples of CultureGraphException


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
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.