Examples of coll()


Examples of org.nutz.ngqa.service.CommonMongoService.coll()

      root.setProvider("root");
      dao.save(root);
    }
   
    //检查超级用户的密码
    DBObject dbo = commons.coll("systemconfig").findOne();
    if (dbo == null) {
      commons.coll("systemconfig").insert(new BasicDBObject("api_version", Ngqa.apiVersion()));
      dbo = commons.coll("systemconfig").findOne();
    }
    if (Strings.isBlank((String)dbo.get("root_password"))) {
View Full Code Here

Examples of org.nutz.ngqa.service.CommonMongoService.coll()

    }
   
    //检查超级用户的密码
    DBObject dbo = commons.coll("systemconfig").findOne();
    if (dbo == null) {
      commons.coll("systemconfig").insert(new BasicDBObject("api_version", Ngqa.apiVersion()));
      dbo = commons.coll("systemconfig").findOne();
    }
    if (Strings.isBlank((String)dbo.get("root_password"))) {
      commons.coll("systemconfig").findAndModify(new BasicDBObject(), null, null, false, new BasicDBObject("$set", new BasicDBObject("root_password", R.sg(64).next())), true, true);
    }
View Full Code Here

Examples of org.nutz.ngqa.service.CommonMongoService.coll()

   
    //检查超级用户的密码
    DBObject dbo = commons.coll("systemconfig").findOne();
    if (dbo == null) {
      commons.coll("systemconfig").insert(new BasicDBObject("api_version", Ngqa.apiVersion()));
      dbo = commons.coll("systemconfig").findOne();
    }
    if (Strings.isBlank((String)dbo.get("root_password"))) {
      commons.coll("systemconfig").findAndModify(new BasicDBObject(), null, null, false, new BasicDBObject("$set", new BasicDBObject("root_password", R.sg(64).next())), true, true);
    }
   
View Full Code Here

Examples of org.nutz.ngqa.service.CommonMongoService.coll()

    if (dbo == null) {
      commons.coll("systemconfig").insert(new BasicDBObject("api_version", Ngqa.apiVersion()));
      dbo = commons.coll("systemconfig").findOne();
    }
    if (Strings.isBlank((String)dbo.get("root_password"))) {
      commons.coll("systemconfig").findAndModify(new BasicDBObject(), null, null, false, new BasicDBObject("$set", new BasicDBObject("root_password", R.sg(64).next())), true, true);
    }
   
    //载入js脚本
    MongoJsManager.load(dao.getDB(), "mongo_js");
   
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.