getDeletedList.put( dr.getId(), dr.getDeletedDate().getTime() ); this.qr = getBinding().queryAll( getSQL() ); this.sObjects = getQueryResult().getRecords(); if ( this.sObjects != null ) { default: this.qr = isQueryAll() ? getBinding().queryAll( getSQL() ) : getBinding().query( getSQL() ); this.sObjects = getQueryResult().getRecords(); this.queryResultSize = getQueryResult().getSize();
@Override public com.sforce.soap.partner.IQueryResult queryAll(java.lang.String queryString) throws com.sforce.ws.ConnectionException { return connection.queryAll( queryString); }
@Override public boolean start() throws IOException { try { result = getResult(); queryStringList = getQueryStringList(result); if (queryStringList.size() == 0) { return false; } inputResult = getConnection().queryAll(queryStringList.get(queryIndex++)); inputRecords = inputResult.getRecords(); inputRecordsIndex = 0; } catch (ConnectionException e) { throw new IOException(e); } boolean startable = inputRecords.length > 0; if (startable) { dataCount++; } return startable; }
@Override public boolean advance() throws IOException { inputRecordsIndex++; // Fast return conditions. if (inputRecordsIndex < inputRecords.length) { dataCount++; return true; } if ((inputResult == null || inputResult.isDone()) && queryIndex < queryStringList.size()) { try { inputResult = getConnection().queryAll(queryStringList.get(queryIndex++)); inputRecords = inputResult.getRecords(); inputRecordsIndex = 0; boolean isAdvanced = inputResult.getSize() > 0; if (isAdvanced) { dataCount++; } return isAdvanced; } catch (ConnectionException e) { throw new IOException(e); } } return false; }
@Override public boolean start() throws IOException { try { result = getResult(); queryStringList = getQueryStringList(result); if (queryStringList.size() == 0) { return false; } inputResult = getConnection().queryAll(queryStringList.get(queryIndex++)); inputRecords = inputResult.getRecords(); while (!inputResult.isDone()) { inputResult = getConnection().queryMore(inputResult.getQueryLocator()); inputRecords = ArrayUtils.addAll(inputRecords, inputResult.getRecords()); } inputRecordsIndex = 0; } catch (ConnectionException e) { throw new IOException(e); } boolean startable = inputRecords.length > 0; if (startable) { dataCount++; } return startable; }
@Override public boolean advance() throws IOException { inputRecordsIndex++; // Fast return conditions. if (inputRecordsIndex < inputRecords.length) { dataCount++; return true; } if ((inputResult == null || inputResult.isDone()) && queryIndex < queryStringList.size()) { try { inputResult = getConnection().queryAll(queryStringList.get(queryIndex++)); inputRecords = inputResult.getRecords(); while (!inputResult.isDone()) { inputResult = getConnection().queryMore(inputResult.getQueryLocator()); inputRecords = ArrayUtils.addAll(inputRecords, inputResult.getRecords()); } inputRecordsIndex = 0; boolean isAdvanced = inputResult.getSize() > 0; if (isAdvanced) { dataCount++; } return isAdvanced; } catch (ConnectionException e) { throw new IOException(e); } } return false; }
@Override public boolean start() throws IOException { try { result = getResult(); queryStringList = getQueryStringList(result); if (queryStringList.size() == 0) { return false; } inputResult = getConnection().queryAll(queryStringList.get(queryIndex++)); inputRecords = inputResult.getRecords(); while (!inputResult.isDone()) { inputResult = getConnection().queryMore(inputResult.getQueryLocator()); inputRecords = ArrayUtils.addAll(inputRecords, inputResult.getRecords()); } inputRecordsIndex = 0; } catch (ConnectionException e) { throw new IOException(e); } boolean startable = inputRecords.length > 0; if (startable) { dataCount++; } return startable; }
@Override public boolean advance() throws IOException { inputRecordsIndex++; // Fast return conditions. if (inputRecordsIndex < inputRecords.length) { dataCount++; return true; } if ((inputResult == null || inputResult.isDone()) && queryIndex < queryStringList.size()) { try { inputResult = getConnection().queryAll(queryStringList.get(queryIndex++)); inputRecords = inputResult.getRecords(); while (!inputResult.isDone()) { inputResult = getConnection().queryMore(inputResult.getQueryLocator()); inputRecords = ArrayUtils.addAll(inputRecords, inputResult.getRecords()); } inputRecordsIndex = 0; boolean isAdvanced = inputResult.getSize() > 0; if (isAdvanced) { dataCount++; } return isAdvanced; } catch (ConnectionException e) { throw new IOException(e); } } return false; }
protected QueryResult executeSalesforceQuery() throws IOException, ConnectionException { TSalesforceInputProperties inProperties = (TSalesforceInputProperties) properties; getConnection().setQueryOptions(inProperties.batchSize.getValue()); if (inProperties.includeDeleted.getValue()) { return getConnection().queryAll(getQueryString(inProperties)); } else { return getConnection().query(getQueryString(inProperties)); } }
protected QueryResult executeSalesforceQuery() throws IOException, ConnectionException { TSalesforceInputProperties inProperties = (TSalesforceInputProperties) properties; getConnection().setQueryOptions(inProperties.batchSize.getValue()); if (inProperties.includeDeleted.getValue()) { return getConnection().queryAll(getQueryString(inProperties)); } else { return getConnection().query(getQueryString(inProperties)); } }
protected QueryResult executeSalesforceQuery() throws IOException, ConnectionException { TSalesforceInputProperties inProperties = (TSalesforceInputProperties) properties; getConnection().setQueryOptions(inProperties.batchSize.getValue()); if (inProperties.includeDeleted.getValue()) { return getConnection().queryAll(getQueryString(inProperties)); } else { return getConnection().query(getQueryString(inProperties)); } }
try { if(queryAll) { qr = partnerConnection.queryAll(queryString); } else { partnerConnection.setMruHeader(false);