public DeleteResult[] delete( String[] id ) throws KettleException { try { return getBinding().delete( id ); } catch ( Exception e ) { throw new KettleException( BaseMessages.getString( PKG, "SalesforceInput.ErrorDelete", e ) ); } }
@Override public com.sforce.soap.partner.IDeleteResult[] delete(java.lang.String[] ids) throws com.sforce.ws.ConnectionException { return connection.delete( ids); }
protected void delete(String[] ids) { flushInserts(); try { _connection.delete(ids); } catch (ConnectionException e) { throw SalesforceUtils.wrapException(e, "Failed to delete objects in Salesforce"); } }
protected void delete(String[] ids) { flushInserts(); try { _connection.delete(ids); } catch (ConnectionException e) { throw SalesforceUtils.wrapException(e, "Failed to delete objects in Salesforce"); } }
protected void delete(String[] ids) { flushInserts(); try { _connection.delete(ids); } catch (ConnectionException e) { throw SalesforceUtils.wrapException(e, "Failed to delete objects in Salesforce"); } }
dr = connection.delete(delIDs); if (dr != null && dr.length != 0) { int batch_idx = -1;
dr = connection.delete(delIDs); if (dr != null && dr.length != 0) { int batch_idx = -1;
public int delete(String[] ids) throws ResourceException { DeleteResult[] results = null; try { results = partnerConnection.delete(ids); } catch (UnexpectedErrorFault e) { throw new ResourceException(e);
dr = connection.delete(delIDs); if (dr != null && dr.length != 0) { int batch_idx = -1;
connection.setAllOrNoneHeader(true); try { DeleteResult[] results = connection.delete(objects); checkForErrors(results); } finally {
connection.setAllOrNoneHeader(true); try { DeleteResult[] results = connection.delete(objects); checkForErrors(results); } finally {
LOGGER.debug("Deleting object: " + pkValue); DeleteResult[] results = ((PartnerConnection) mconn.getConnection()).delete(new String[]{(String) pkValue}); checkForErrors(results); } else {
@Override public void execute() throws BuildException { try { PartnerConnection pc = ConnectionFactory.getPartnerConnection(getConfig()); String soql = String.format(FORMAT_SOQL, objectApiName); QueryResult qr = pc.query(soql); Boolean done = false; log(String.format(FORMAT_DELETE_MSG, qr.getSize(), objectApiName)); if (qr.getSize() > 0) { while (!done) { com.sforce.soap.partner.sobject.SObject[] records = qr.getRecords(); String[] ids = new String[records.length]; for (int i = 0; i<records.length; ++i) { ids[i] = (String)records[i].getField("Id"); } pc.delete(ids); if (qr.isDone()) { done = true; } else { qr = pc.queryMore(qr.getQueryLocator()); } } } } catch (ConnectionException e) { handleException(e); } }
LOGGER.debug("Deleting object: " + pkValue); DeleteResult[] results = ((PartnerConnection) mconn.getConnection()).delete(new String[]{(String) pkValue}); checkForErrors(results); } else {
DeleteResult[] deleteResult = service.delete(idsToDelete); ForcePersistenceHandler.checkForErrors(deleteResult);
DeleteResult[] deleteResult = service.delete(idsToDelete); ForcePersistenceHandler.checkForErrors(deleteResult);