当前位置: 首页>>代码示例>>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;未经允许,请勿转载。