public void close() throws KettleException { try { if ( !getQueryResult().isDone() ) { this.qr.setDone( true ); this.qr = null; } if ( this.sObjects != null ) { this.sObjects = null; } if ( this.binding != null ) { this.binding = null; } if ( this.loginResult != null ) { this.loginResult = null; } if ( this.userInfo != null ) { this.userInfo = null; } if ( this.getDeletedList != null ) { getDeletedList.clear(); getDeletedList = null; } if ( log.isDetailed() ) { log.logDetailed( BaseMessages.getString( PKG, "SalesforceInput.Log.ConnectionClosed" ) ); } } catch ( Exception e ) { throw new KettleException( BaseMessages.getString( PKG, "SalesforceInput.Error.ClosingConnection" ), e ); } }
public QueryResult buildQueryResult(SObject[] objects) { QueryResult result = new QueryResult(); result.setRecords(objects); result.setSize(objects.length); result.setDone(true); return result; }
private void loadFields1(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { setDone(__in, __typeMapper); setQueryLocator(__in, __typeMapper); setRecords(__in, __typeMapper); setSize(__in, __typeMapper); }
protected void setDone(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { __in.peekTag(); if (__typeMapper.verifyElement(__in, _lookupTypeInfo("done", "urn:partner.soap.sforce.com","done","http://www.w3.org/2001/XMLSchema","boolean",1,1,true))) { setDone(__typeMapper.readBoolean(__in, _lookupTypeInfo("done", "urn:partner.soap.sforce.com","done","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), boolean.class)); } }