org.pentaho.di.trans.steps.salesforceinput
Class SalesforceConnection
java.lang.Object
org.pentaho.di.trans.steps.salesforceinput.SalesforceConnection
public class SalesforceConnection
- extends Object
SalesforceConnection
public SalesforceConnection(LogChannelInterface logInterface,
String url,
String username,
String password)
throws KettleException
- Construct a new Salesforce Connection
- Throws:
KettleException
isRollbackAllChangesOnError
public boolean isRollbackAllChangesOnError()
rollbackAllChangesOnError
public void rollbackAllChangesOnError(boolean value)
isQueryAll
public boolean isQueryAll()
queryAll
public void queryAll(boolean value)
setCalendar
public void setCalendar(int recordsFilter,
GregorianCalendar startDate,
GregorianCalendar endDate)
throws KettleException
- Throws:
KettleException
setCondition
public void setCondition(String condition)
getCondition
public String getCondition()
setSQL
public void setSQL(String sql)
setFieldsList
public void setFieldsList(String fieldsList)
setModule
public void setModule(String module)
getURL
public String getURL()
getSQL
public String getSQL()
getServerTimestamp
public Date getServerTimestamp()
getModule
public String getModule()
getQueryResult
public com.sforce.soap.partner.QueryResult getQueryResult()
getBinding
public com.sforce.soap.partner.SoapBindingStub getBinding()
setTimeOut
public void setTimeOut(int timeout)
getTimeOut
public int getTimeOut()
isUsingCompression
public boolean isUsingCompression()
setUsingCompression
public void setUsingCompression(boolean useCompression)
getUsername
public String getUsername()
setUsername
public void setUsername(String value)
getPassword
public String getPassword()
setPassword
public void setPassword(String value)
connect
public void connect()
throws KettleException
- Throws:
KettleException
query
public void query(boolean specifyQuery)
throws KettleException
- Throws:
KettleException
close
public void close()
throws KettleException
- Throws:
KettleException
getQueryResultSize
public int getQueryResultSize()
getRecordsCount
public int getRecordsCount()
getRecord
public SalesforceRecordValue getRecord(int recordIndex)
getRecordValue
public String getRecordValue(com.sforce.soap.partner.sobject.SObject con,
int valueIndex)
getElements
public org.apache.axis.message.MessageElement[] getElements()
throws Exception
- Throws:
Exception
queryMore
public boolean queryMore()
throws KettleException
- Throws:
KettleException
getAllAvailableObjects
public String[] getAllAvailableObjects(boolean OnlyQueryableObjects)
throws KettleException
- Throws:
KettleException
getObjectFields
public com.sforce.soap.partner.Field[] getObjectFields(String objectName)
throws KettleException
- Throws:
KettleException
getFields
public String[] getFields(String objectName)
throws KettleException
- Throws:
KettleException
upsert
public com.sforce.soap.partner.UpsertResult[] upsert(String upsertField,
com.sforce.soap.partner.sobject.SObject[] sfBuffer)
throws KettleException
- Throws:
KettleException
insert
public com.sforce.soap.partner.SaveResult[] insert(com.sforce.soap.partner.sobject.SObject[] sfBuffer)
throws KettleException
- Throws:
KettleException
update
public com.sforce.soap.partner.SaveResult[] update(com.sforce.soap.partner.sobject.SObject[] sfBuffer)
throws KettleException
- Throws:
KettleException
delete
public com.sforce.soap.partner.DeleteResult[] delete(String[] id)
throws KettleException
- Throws:
KettleException
createMessageElement
public static org.apache.axis.message.MessageElement createMessageElement(String name,
Object value,
boolean useExternalKey)
throws Exception
- Throws:
Exception
fromTemplateElement
public static org.apache.axis.message.MessageElement fromTemplateElement(String name,
Object value,
boolean setValue)
throws javax.xml.soap.SOAPException
- Throws:
javax.xml.soap.SOAPException