@Override public com.sforce.soap.partner.sobject.ISObject[] retrieve(java.lang.String fieldList,java.lang.String sObjectType,java.lang.String[] ids) throws com.sforce.ws.ConnectionException { return connection.retrieve( fieldList, sObjectType, ids); }
@Override public boolean advance() throws IOException { inputRecordsIndex++; // Fast return conditions. if (inputRecordsIndex < inputRecords.length) { dataCount++; return true; } if (queryIndex < idsList.size()) { try { inputRecords = getConnection().retrieve(getFieldNamesStr(), properties.module.moduleName.getValue(), idsList.get(queryIndex++)); inputRecordsIndex = 0; boolean isAdvanced = inputRecords.length > 0; if (isAdvanced) { dataCount++; } return isAdvanced; } catch (ConnectionException e) { throw new IOException(e); } } return false; }
@Override public boolean advance() throws IOException { inputRecordsIndex++; // Fast return conditions. if (inputRecordsIndex < inputRecords.length) { dataCount++; return true; } if (queryIndex < idsList.size()) { try { inputRecords = getConnection().retrieve(getFieldNamesStr(), properties.module.moduleName.getValue(), idsList.get(queryIndex++)); inputRecordsIndex = 0; boolean isAdvanced = inputRecords.length > 0; if (isAdvanced) { dataCount++; } return isAdvanced; } catch (ConnectionException e) { throw new IOException(e); } } return false; }
@Override public boolean start() throws IOException { try { result = getResult(); idsList = splitIds(result); if (idsList.size() == 0) { return false; } inputRecords = getConnection().retrieve(getFieldNamesStr(), properties.module.moduleName.getValue(), idsList.get(queryIndex++)); inputRecordsIndex = 0; } catch (ConnectionException e) { throw new IOException(e); } boolean startable = inputRecords.length > 0; if (startable) { dataCount++; } return startable; }
@Override public boolean start() throws IOException { try { result = getResult(); idsList = splitIds(result); if (idsList.size() == 0) { return false; } inputRecords = getConnection().retrieve(getFieldNamesStr(), properties.module.moduleName.getValue(), idsList.get(queryIndex++)); inputRecordsIndex = 0; } catch (ConnectionException e) { throw new IOException(e); } boolean startable = inputRecords.length > 0; if (startable) { dataCount++; } return startable; }
public SObject[] retrieve(String fieldList, String sObjectType, List<String> ids) throws ResourceException { try { return partnerConnection.retrieve(fieldList, sObjectType, ids.toArray(new String[ids.size()])); } catch (InvalidFieldFault e) { throw new ResourceException(e); } catch (MalformedQueryFault e) { throw new ResourceException(e); } catch (InvalidSObjectFault e) { throw new ResourceException(e); } catch (InvalidIdFault e) { throw new ResourceException(e); } catch (UnexpectedErrorFault e) { throw new ResourceException(e); } catch (ConnectionException e) { throw new ResourceException(e); } }
results = Connector.newConnection(config).retrieve("Name", "Profile", new String[] {userInfoResult.getProfileId()}); } catch (ConnectionException e) {
results = Connector.newConnection(config).retrieve("Name", "Profile", new String[] {userInfoResult.getProfileId()}); } catch (ConnectionException e) {