當前位置: 首頁>>代碼示例>>Java>>正文


Java SalesforceConnectionUtils類代碼示例

本文整理匯總了Java中org.pentaho.di.trans.steps.salesforceinput.SalesforceConnectionUtils的典型用法代碼示例。如果您正苦於以下問題:Java SalesforceConnectionUtils類的具體用法?Java SalesforceConnectionUtils怎麽用?Java SalesforceConnectionUtils使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


SalesforceConnectionUtils類屬於org.pentaho.di.trans.steps.salesforceinput包,在下文中一共展示了SalesforceConnectionUtils類的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setDefault

import org.pentaho.di.trans.steps.salesforceinput.SalesforceConnectionUtils; //導入依賴的package包/類
public void setDefault()
{
	targeturl=SalesforceConnectionUtils.TARGET_DEFAULT_URL ;
	password = "";
	module = "Account";
	batchSize="10";
	
	int nrFields =0;
	allocate(nrFields);	
	
	for (int i=0;i<nrFields;i++)
	{
		updateLookup[i]="name"+(i+1); //$NON-NLS-1$
		updateStream[i]="field"+(i+1); //$NON-NLS-1$
		useExternalId[i]=Boolean.FALSE; //$NON-NLS-1$
	}
	useCompression=false;
	rollbackAllChangesOnError=false;
	timeout= "60000";
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:21,代碼來源:SalesforceUpdateMeta.java

示例2: setDefault

import org.pentaho.di.trans.steps.salesforceinput.SalesforceConnectionUtils; //導入依賴的package包/類
public void setDefault()
{
	targeturl=SalesforceConnectionUtils.TARGET_DEFAULT_URL ;
	password = "";
	module = "Account";
	UpsertField = "Id";
	batchSize="10";
	salesforceIDFieldName="Id";
	
	int nrFields =0;
	allocate(nrFields);	
	
	for (int i=0;i<nrFields;i++)
	{
		updateLookup[i]="name"+(i+1); //$NON-NLS-1$
		updateStream[i]="field"+(i+1); //$NON-NLS-1$
		useExternalId[i]=Boolean.FALSE; //$NON-NLS-1$
	}
	useCompression=false;
	rollbackAllChangesOnError=false;
	timeout= "60000";
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:23,代碼來源:SalesforceUpsertMeta.java

示例3: setDefault

import org.pentaho.di.trans.steps.salesforceinput.SalesforceConnectionUtils; //導入依賴的package包/類
public void setDefault()
{
	targeturl=SalesforceConnectionUtils.TARGET_DEFAULT_URL ;
	password = "";
	module = "Account";
	batchSize="10";
	salesforceIDFieldName="Id";
	
	int nrFields =0;
	allocate(nrFields);	
	
	for (int i=0;i<nrFields;i++)
	{
		updateLookup[i]="name"+(i+1); //$NON-NLS-1$
		updateStream[i]="field"+(i+1); //$NON-NLS-1$
		useExternalId[i]=Boolean.FALSE; //$NON-NLS-1$
	}
	useCompression=false;
	rollbackAllChangesOnError=false;
	timeout= "60000";
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:22,代碼來源:SalesforceInsertMeta.java

示例4: getInfo

import org.pentaho.di.trans.steps.salesforceinput.SalesforceConnectionUtils; //導入依賴的package包/類
private void getInfo(SalesforceUpdateMeta in) throws KettleException {
	stepname = wStepname.getText(); // return value

	// copy info to SalesforceUpdateMeta class (input)
	in.setTargetURL(Const.NVL(wURL.getText(),SalesforceConnectionUtils.TARGET_DEFAULT_URL));
	in.setUserName(wUserName.getText());
	in.setPassword(wPassword.getText());
	in.setModule(Const.NVL(wModule.getText(),"Account"));
	in.setBatchSize(wBatchSize.getText());

	int nrfields = wReturn.nrNonEmpty();

	in.allocate(nrfields);

	for (int i = 0; i < nrfields; i++)
	{
		TableItem item = wReturn.getNonEmpty(i);
		in.getUpdateLookup()[i] = item.getText(1);
		in.getUpdateStream()[i] = item.getText(2);
		in.getUseExternalId()[i] = Boolean.valueOf("Y".equals(item.getText(3)));
	}
	in.setUseCompression(wUseCompression.getSelection());
	in.setTimeOut(Const.NVL(wTimeOut.getText(),"0"));
	in.setRollbackAllChangesOnError(wRollbackAllChangesOnError.getSelection());
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:26,代碼來源:SalesforceUpdateDialog.java

示例5: setEnableQuery

import org.pentaho.di.trans.steps.salesforceinput.SalesforceConnectionUtils; //導入依賴的package包/類
private void setEnableQuery()
{
wQuery.setVisible(wspecifyQuery.getSelection());
wlCondition.setVisible(!wspecifyQuery.getSelection());
wCondition.setVisible(!wspecifyQuery.getSelection());
wlModule.setVisible(!wspecifyQuery.getSelection());
wModule.setVisible(!wspecifyQuery.getSelection());

if(wspecifyQuery.getSelection()){
	if(wInclModule.getSelection()) wInclModule.setSelection(false);
	wRecordsFilter.setText(SalesforceConnectionUtils.getRecordsFilterDesc(SalesforceConnectionUtils.RECORDS_FILTER_ALL));
}
wlInclModule.setEnabled(!wspecifyQuery.getSelection());
wInclModule.setEnabled(!wspecifyQuery.getSelection());
setEnableInclModule();
wlRecordsFilter.setEnabled(!wspecifyQuery.getSelection());
wRecordsFilter.setEnabled(!wspecifyQuery.getSelection());
updateRecordsFilter();
enableCondition();
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:21,代碼來源:SalesforceInputDialog.java

示例6: updateRecordsFilter

import org.pentaho.di.trans.steps.salesforceinput.SalesforceConnectionUtils; //導入依賴的package包/類
private void updateRecordsFilter()
{
 boolean activeFilter=(!wspecifyQuery.getSelection() && SalesforceConnectionUtils.getRecordsFilterByDesc(wRecordsFilter.getText())!=SalesforceConnectionUtils.RECORDS_FILTER_ALL);

 wlReadFrom.setEnabled(activeFilter);
 wReadFrom.setEnabled(activeFilter);
 open.setEnabled(activeFilter);
 wlReadTo.setEnabled(activeFilter);
 wReadTo.setEnabled(activeFilter);
 opento.setEnabled(activeFilter);
 wlQueryAll.setEnabled(!activeFilter);
 wQueryAll.setEnabled(!activeFilter);
 enableCondition();
 boolean activateDeletionDate=SalesforceConnectionUtils.getRecordsFilterByDesc(wRecordsFilter.getText())==SalesforceConnectionUtils.RECORDS_FILTER_DELETED;
 if(!activateDeletionDate) {
  wInclDeletionDate.setSelection(false);
 }
 wlInclDeletionDate.setEnabled(activateDeletionDate);
 wInclDeletionDate.setEnabled(activateDeletionDate);
 wlInclDeletionDateField.setEnabled(activateDeletionDate);
 wInclDeletionDateField.setEnabled(activateDeletionDate);
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:23,代碼來源:SalesforceInputDialog.java

示例7: getInfo

import org.pentaho.di.trans.steps.salesforceinput.SalesforceConnectionUtils; //導入依賴的package包/類
private void getInfo(SalesforceInsertMeta in) throws KettleException {
	stepname = wStepname.getText(); // return value

	// copy info to SalesforceInsertMeta class (input)
	in.setTargetURL(Const.NVL(wURL.getText(),SalesforceConnectionUtils.TARGET_DEFAULT_URL));
	in.setUserName(wUserName.getText());
	in.setPassword(wPassword.getText());
	in.setModule(Const.NVL(wModule.getText(),"Account"));
	in.setSalesforceIDFieldName(wSalesforceIDFieldName.getText());
	in.setBatchSize(wBatchSize.getText());

	int nrfields = wReturn.nrNonEmpty();

	in.allocate(nrfields);

	for (int i = 0; i < nrfields; i++)
	{
		TableItem item = wReturn.getNonEmpty(i);
		in.getUpdateLookup()[i] = item.getText(1);
		in.getUpdateStream()[i] = item.getText(2);
		in.getUseExternalId()[i] = Boolean.valueOf("Y".equals(item.getText(3)));
	}
	in.setUseCompression(wUseCompression.getSelection());
	in.setTimeOut(Const.NVL(wTimeOut.getText(),"0"));
	in.setRollbackAllChangesOnError(wRollbackAllChangesOnError.getSelection());
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:27,代碼來源:SalesforceInsertDialog.java

示例8: setDefault

import org.pentaho.di.trans.steps.salesforceinput.SalesforceConnectionUtils; //導入依賴的package包/類
public void setDefault()
{
	targeturl=SalesforceConnectionUtils.TARGET_DEFAULT_URL ;
	password = "";
	module = "Account";
	DeleteField = null;
	batchSize="10";
	useCompression=false;
	rollbackAllChangesOnError=false;
	timeout= "60000";

}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:13,代碼來源:SalesforceDeleteMeta.java

示例9: getData

import org.pentaho.di.trans.steps.salesforceinput.SalesforceConnectionUtils; //導入依賴的package包/類
/**
 * Read the data from the TextFileInputMeta object and show it in this
 * dialog.
 * 
 * @param in
 *            The SalesforceUpdateMeta object to obtain the data from.
 */
public void getData(SalesforceUpdateMeta in) 
{
	wURL.setText(Const.NVL(in.getTargetURL(),""));
	wUserName.setText(Const.NVL(in.getUserName(),""));
	wPassword.setText(Const.NVL(in.getPassword(),""));
	wBatchSize.setText(in.getBatchSize());
	wModule.setText(Const.NVL(in.getModule(), "Account"));
	wBatchSize.setText("" + in.getBatchSize());

	if(isDebug()) logDebug( BaseMessages.getString(PKG, "SalesforceUpdateDialog.Log.GettingFieldsInfo"));

	if (input.getUpdateLookup() != null)
	{
		for (int i = 0; i < input.getUpdateLookup().length; i++)
		{
			TableItem item = wReturn.table.getItem(i);
			if (input.getUpdateLookup()[i] != null)
				item.setText(1, input.getUpdateLookup()[i]);
			if (input.getUpdateStream()[i] != null)
				item.setText(2, input.getUpdateStream()[i]);
			if (input.getUseExternalId()[i]==null||input.getUseExternalId()[i].booleanValue()) {
				item.setText(3,"Y");
			} else {
				item.setText(3,"N");
			}
		}
	}

	wReturn.removeEmptyRows();
	wReturn.setRowNums();
	wReturn.optWidth(true);
	wTimeOut.setText(Const.NVL(in.getTimeOut(), SalesforceConnectionUtils.DEFAULT_TIMEOUT));
	wUseCompression.setSelection(in.isUsingCompression());
	wRollbackAllChangesOnError.setSelection(in.isRollbackAllChangesOnError());
	wStepname.selectAll();
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:44,代碼來源:SalesforceUpdateDialog.java

示例10: getData

import org.pentaho.di.trans.steps.salesforceinput.SalesforceConnectionUtils; //導入依賴的package包/類
/**
 * Read the data from the TextFileInputMeta object and show it in this
 * dialog.
 * 
 * @param in
 *            The SalesforceDeleteMeta object to obtain the data from.
 */
public void getData(SalesforceDeleteMeta in) 
{
	wURL.setText(Const.NVL(in.getTargetURL(),""));
	wUserName.setText(Const.NVL(in.getUserName(),""));
	wPassword.setText(Const.NVL(in.getPassword(),""));
	wBatchSize.setText(in.getBatchSize());
	wModule.setText(Const.NVL(in.getModule(), "Account"));
	if(in.getDeleteField()!=null) wDeleteField.setText(in.getDeleteField());
	wBatchSize.setText("" + in.getBatchSize());
	wTimeOut.setText(Const.NVL(in.getTimeOut(), SalesforceConnectionUtils.DEFAULT_TIMEOUT));
	wUseCompression.setSelection(in.isUsingCompression());
	wRollbackAllChangesOnError.setSelection(in.isRollbackAllChangesOnError());
	wStepname.selectAll();
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:22,代碼來源:SalesforceDeleteDialog.java

示例11: getInfo

import org.pentaho.di.trans.steps.salesforceinput.SalesforceConnectionUtils; //導入依賴的package包/類
private void getInfo(SalesforceDeleteMeta in) throws KettleException {
	stepname = wStepname.getText(); // return value

	// copy info to SalesforceDeleteMeta class (input)
	in.setTargetURL(Const.NVL(wURL.getText(),SalesforceConnectionUtils.TARGET_DEFAULT_URL));
	in.setUserName(wUserName.getText());
	in.setPassword(wPassword.getText());
	in.setModule(wModule.getText());
	in.setDeleteField(wDeleteField.getText());
	in.setBatchSize(wBatchSize.getText());
	in.setUseCompression(wUseCompression.getSelection());
	in.setTimeOut(Const.NVL(wTimeOut.getText(),"0"));
	in.setRollbackAllChangesOnError(wRollbackAllChangesOnError.getSelection());
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:15,代碼來源:SalesforceDeleteDialog.java

示例12: getData

import org.pentaho.di.trans.steps.salesforceinput.SalesforceConnectionUtils; //導入依賴的package包/類
/**
 * Read the data from the TextFileInputMeta object and show it in this
 * dialog.
 * 
 * @param in
 *            The SalesforceUpsertMeta object to obtain the data from.
 */
public void getData(SalesforceUpsertMeta in) 
{
	wURL.setText(Const.NVL(in.getTargetURL(),""));
	wUserName.setText(Const.NVL(in.getUserName(),""));
	wPassword.setText(Const.NVL(in.getPassword(),""));
	wBatchSize.setText(in.getBatchSize());
	wModule.setText(Const.NVL(in.getModule(), "Account"));
	wUpsertField.setText(Const.NVL(in.getUpsertField(), "Id"));
	wBatchSize.setText("" + in.getBatchSize());
	wSalesforceIDFieldName.setText(Const.NVL(in.getSalesforceIDFieldName(),""));
	if(isDebug()) logDebug( BaseMessages.getString(PKG, "SalesforceUpsertDialog.Log.GettingFieldsInfo"));

	if (input.getUpdateLookup() != null)
		for (int i = 0; i < input.getUpdateLookup().length; i++)
		{
			TableItem item = wReturn.table.getItem(i);
			if (input.getUpdateLookup()[i] != null)
				item.setText(1, input.getUpdateLookup()[i]);
			if (input.getUpdateStream()[i] != null)
				item.setText(2, input.getUpdateStream()[i]);
			if (input.getUseExternalId()[i]==null||input.getUseExternalId()[i].booleanValue()) {
				item.setText(3,"Y");
			} else {
				item.setText(3,"N");
			}
		}
	

	wReturn.removeEmptyRows();
	wReturn.setRowNums();
	wReturn.optWidth(true);
	wTimeOut.setText(Const.NVL(in.getTimeOut(), SalesforceConnectionUtils.DEFAULT_TIMEOUT));
	wUseCompression.setSelection(in.isUsingCompression());
	wRollbackAllChangesOnError.setSelection(in.isRollbackAllChangesOnError());
	wStepname.selectAll();
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:44,代碼來源:SalesforceUpsertDialog.java

示例13: getInfo

import org.pentaho.di.trans.steps.salesforceinput.SalesforceConnectionUtils; //導入依賴的package包/類
private void getInfo(SalesforceUpsertMeta in) throws KettleException {
	stepname = wStepname.getText(); // return value

	// copy info to SalesforceUpsertMeta class (input)
	in.setTargetURL(Const.NVL(wURL.getText(),SalesforceConnectionUtils.TARGET_DEFAULT_URL));
	in.setUserName(wUserName.getText());
	in.setPassword(wPassword.getText());
	in.setModule(Const.NVL(wModule.getText(),"Account"));
	in.setUpsertField(Const.NVL(wUpsertField.getText(), "Id"));
	in.setSalesforceIDFieldName(wSalesforceIDFieldName.getText());
	in.setBatchSize(wBatchSize.getText());

	int nrfields = wReturn.nrNonEmpty();

	in.allocate(nrfields);

	for (int i = 0; i < nrfields; i++)
	{
		TableItem item = wReturn.getNonEmpty(i);
		in.getUpdateLookup()[i] = item.getText(1);
		in.getUpdateStream()[i] = item.getText(2);
		in.getUseExternalId()[i] = Boolean.valueOf("Y".equals(item.getText(3)));
	}
	in.setUseCompression(wUseCompression.getSelection());
	in.setTimeOut(Const.NVL(wTimeOut.getText(),"0"));
	in.setRollbackAllChangesOnError(wRollbackAllChangesOnError.getSelection());
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:28,代碼來源:SalesforceUpsertDialog.java

示例14: getData

import org.pentaho.di.trans.steps.salesforceinput.SalesforceConnectionUtils; //導入依賴的package包/類
/**
 * Read the data from the TextFileInputMeta object and show it in this
 * dialog.
 * 
 * @param in
 *            The SalesforceInsertMeta object to obtain the data from.
 */
public void getData(SalesforceInsertMeta in) 
{
	wURL.setText(Const.NVL(in.getTargetURL(),""));
	wUserName.setText(Const.NVL(in.getUserName(),""));
	wPassword.setText(Const.NVL(in.getPassword(),""));
	wBatchSize.setText(in.getBatchSize());
	wModule.setText(Const.NVL(in.getModule(), "Account"));
	wBatchSize.setText("" + in.getBatchSize());
	wSalesforceIDFieldName.setText(Const.NVL(in.getSalesforceIDFieldName(),""));
	if(isDebug()) logDebug( BaseMessages.getString(PKG, "SalesforceInsertDialog.Log.GettingFieldsInfo"));

	if (input.getUpdateLookup() != null)
		for (int i = 0; i < input.getUpdateLookup().length; i++)
		{
			TableItem item = wReturn.table.getItem(i);
			if (input.getUpdateLookup()[i] != null)
				item.setText(1, input.getUpdateLookup()[i]);
			if (input.getUpdateStream()[i] != null)
				item.setText(2, input.getUpdateStream()[i]);
			if (input.getUseExternalId()[i]==null||input.getUseExternalId()[i].booleanValue()) {
				item.setText(3,"Y");
			} else {
				item.setText(3,"N");
			}
		}
	

	wReturn.removeEmptyRows();
	wReturn.setRowNums();
	wReturn.optWidth(true);

	wTimeOut.setText(Const.NVL(in.getTimeOut(), SalesforceConnectionUtils.DEFAULT_TIMEOUT));
	wUseCompression.setSelection(in.isUsingCompression());
	wRollbackAllChangesOnError.setSelection(in.isRollbackAllChangesOnError());
	wStepname.selectAll();
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:44,代碼來源:SalesforceInsertDialog.java


注:本文中的org.pentaho.di.trans.steps.salesforceinput.SalesforceConnectionUtils類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。