/** * Create an uninitialised ObjectRepository without a delegate. */ @Override public ObjectRepository getRepository(RepositoryImplConfig configuration) throws RepositoryConfigException { if (configuration instanceof ObjectRepositoryConfig) { ObjectRepositoryConfig config = (ObjectRepositoryConfig) configuration; ObjectRepository repo = getObjectRepository(config); repo.setIncludeInferred(config.isIncludeInferred()); repo.setMaxQueryTime(config.getMaxQueryTime()); repo.setQueryLanguage(config.getQueryLanguage()); repo.setReadContexts(config.getReadContexts()); repo.setAddContexts(config.getAddContexts()); repo.setInsertContext(config.getInsertContext()); repo.setRemoveContexts(config.getRemoveContexts()); repo.setArchiveContexts(config.getArchiveContexts()); // repo.setQueryResultLimit(config.getQueryResultLimit()); return repo; } throw new RepositoryConfigException("Invalid configuration class: " + configuration.getClass()); }
private ObjectRepository getRepository(ObjectRepositoryConfig config, ValueFactory vf) throws ObjectStoreConfigException { ObjectRepository repo = getObjectRepository(config, vf); repo.setIncludeInferred(config.isIncludeInferred()); repo.setMaxQueryTime(config.getMaxQueryTime()); repo.setQueryLanguage(config.getQueryLanguage()); repo.setReadContexts(config.getReadContexts()); repo.setAddContexts(config.getAddContexts()); repo.setInsertContext(config.getInsertContext()); repo.setRemoveContexts(config.getRemoveContexts()); repo.setArchiveContexts(config.getArchiveContexts()); // repo.setQueryResultLimit(config.getQueryResultLimit()); return repo; }