/** * Creates a new ObjectConnection that will need to be closed by the caller. */ @Override public ObjectConnection getConnection() throws RepositoryException { ObjectConnection con; RepositoryConnection conn = getDelegate().getConnection(); synchronized (compiled) { ObjectFactory factory = createObjectFactory(mapper, pm, literals, resolver, cl); con = new ObjectConnection(this, conn, factory, createTypeManager(), blobs); } con.setIncludeInferred(isIncludeInferred()); con.setMaxQueryTime(getMaxQueryTime()); // con.setQueryResultLimit(getQueryResultLimit()); con.setQueryLanguage(getQueryLanguage()); con.setReadContexts(getReadContexts()); con.setAddContexts(getAddContexts()); con.setRemoveContexts(getRemoveContexts()); con.setArchiveContexts(getArchiveContexts()); return con; }
/** * Creates a new ObjectConnection that will need to be closed by the caller. */ @Override public ObjectConnection getConnection() throws RepositoryException { BlobStore blobs; try { blobs = getBlobStore(); } catch (ObjectStoreConfigException e) { throw new RepositoryException(e); } ObjectFactory factory = service.createObjectFactory(); RepositoryConnection conn = getDelegate().getConnection(); ObjectConnection con = new ObjectConnection(this, conn, factory, createTypeManager(), blobs, idGenerator); con.setIncludeInferred(isIncludeInferred()); con.setMaxQueryTime(getMaxQueryTime()); // con.setQueryResultLimit(getQueryResultLimit()); con.setQueryLanguage(getQueryLanguage()); con.setReadContexts(getReadContexts()); con.setAddContexts(getAddContexts()); con.setRemoveContexts(getRemoveContexts()); con.setArchiveContexts(getArchiveContexts()); return con; }