Examples of systemConfig()


Examples of com.google.gerrit.reviewdb.server.ReviewDb.systemConfig()

  }

  public SystemConfig getSystemConfig() throws OrmException {
    final ReviewDb c = open();
    try {
      return c.systemConfig().get(new SystemConfig.Key());
    } finally {
      c.close();
    }
  }
View Full Code Here

Examples of com.google.gerrit.reviewdb.server.ReviewDb.systemConfig()

  private static File read(SchemaFactory<ReviewDb> schemaFactory)
      throws OrmException {
    ReviewDb db = schemaFactory.open();
    try {
      List<SystemConfig> all = db.systemConfig().all().toList();
      switch (all.size()) {
        case 1:
          return new File(all.get(0).sitePath);
        case 0:
          throw new OrmException("system_config table is empty");
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.