当前位置: 首页>>代码示例>>Java>>正文


Java SalesforceInputMeta.setTimeOut方法代码示例

本文整理汇总了Java中org.pentaho.di.trans.steps.salesforceinput.SalesforceInputMeta.setTimeOut方法的典型用法代码示例。如果您正苦于以下问题:Java SalesforceInputMeta.setTimeOut方法的具体用法?Java SalesforceInputMeta.setTimeOut怎么用?Java SalesforceInputMeta.setTimeOut使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.pentaho.di.trans.steps.salesforceinput.SalesforceInputMeta的用法示例。


在下文中一共展示了SalesforceInputMeta.setTimeOut方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getInfo

import org.pentaho.di.trans.steps.salesforceinput.SalesforceInputMeta; //导入方法依赖的package包/类
private void getInfo(SalesforceInputMeta in) throws KettleException {
	stepname = wStepname.getText(); // return value

	// copy info to SalesforceInputMeta class (input)
	in.setTargetURL(Const.NVL(wURL.getText(),in.TargetDefaultURL));
	in.setUserName(Const.NVL(wUserName.getText(),""));
	in.setPassword(Const.NVL(wPassword.getText(),""));
	in.setModule(Const.NVL(wModule.getText(),"Account"));
	in.setCondition(Const.NVL(wCondition.getText(),""));
	
	in.setTimeOut(Const.NVL(wTimeOut.getText(),"0"));
	in.setRowLimit(Const.NVL(wLimit.getText(),"0"));
	in.setTargetURLField(Const.NVL(wInclURLField.getText(),""));
	in.setSQLField(Const.NVL(wInclSQLField.getText(),""));
	in.setTimestampField(Const.NVL(wInclTimestampField.getText(),""));
	in.setModuleField(Const.NVL(wInclModuleField.getText(),""));
	in.setRowNumberField(Const.NVL(wInclRownumField.getText(),""));
	
	in.setIncludeTargetURL(wInclURL.getSelection());
	in.setIncludeSQL(wInclSQL.getSelection());
	in.setIncludeTimestamp(wInclTimestamp.getSelection());
	in.setIncludeModule(wInclModule.getSelection());
	in.setIncludeRowNumber(wInclRownum.getSelection());

	int nrFields = wFields.nrNonEmpty();

	in.allocate(nrFields);

	for (int i = 0; i < nrFields; i++) {
		SalesforceInputField field = new SalesforceInputField();

		TableItem item = wFields.getNonEmpty(i);

		field.setName(item.getText(1));
		field.setField(item.getText(2));
		field.setType(ValueMeta.getType(item.getText(3)));
		field.setFormat(item.getText(4));
		field.setLength(Const.toInt(item.getText(5), -1));
		field.setPrecision(Const.toInt(item.getText(6), -1));
		field.setCurrencySymbol(item.getText(7));
		field.setDecimalSymbol(item.getText(8));
		field.setGroupSymbol(item.getText(9));
		field.setTrimType(SalesforceInputField
				.getTrimTypeByDesc(item.getText(10)));
		field.setRepeated(Messages.getString("System.Combo.Yes")
				.equalsIgnoreCase(item.getText(11)));

		in.getInputFields()[i] = field;
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:51,代码来源:SalesforceInputDialog.java

示例2: getInfo

import org.pentaho.di.trans.steps.salesforceinput.SalesforceInputMeta; //导入方法依赖的package包/类
private void getInfo(SalesforceInputMeta in) throws KettleException {
	stepname = wStepname.getText(); // return value

	// copy info to SalesforceInputMeta class (input)
	in.setTargetURL(Const.NVL(wURL.getText(),SalesforceConnectionUtils.TARGET_DEFAULT_URL));
	in.setUserName(Const.NVL(wUserName.getText(),""));
	in.setPassword(Const.NVL(wPassword.getText(),""));
	in.setModule(Const.NVL(wModule.getText(),"Account"));
	in.setCondition(Const.NVL(wCondition.getText(),""));
	
	in.setSpecifyQuery(wspecifyQuery.getSelection());
	in.setQuery(Const.NVL(wQuery.getText(),""));
	in.setUseCompression(wUseCompression.getSelection());
	in.setQueryAll(wQueryAll.getSelection());
	in.setTimeOut(Const.NVL(wTimeOut.getText(),"0"));
	in.setRowLimit(Const.NVL(wLimit.getText(),"0"));
	in.setTargetURLField(Const.NVL(wInclURLField.getText(),""));
	in.setSQLField(Const.NVL(wInclSQLField.getText(),""));
	in.setTimestampField(Const.NVL(wInclTimestampField.getText(),""));
	in.setModuleField(Const.NVL(wInclModuleField.getText(),""));
	in.setRowNumberField(Const.NVL(wInclRownumField.getText(),""));
	in.setRecordsFilter(SalesforceConnectionUtils.getRecordsFilterByDesc(wRecordsFilter.getText()));
	in.setIncludeTargetURL(wInclURL.getSelection());
	in.setIncludeSQL(wInclSQL.getSelection());
	in.setIncludeTimestamp(wInclTimestamp.getSelection());
	in.setIncludeModule(wInclModule.getSelection());
	in.setIncludeRowNumber(wInclRownum.getSelection());
	in.setReadFrom(wReadFrom.getText());
	in.setReadTo(wReadTo.getText());
	in.setDeletionDateField(Const.NVL(wInclDeletionDateField.getText(),""));
	in.setIncludeDeletionDate(wInclDeletionDate.getSelection());
	int nrFields = wFields.nrNonEmpty();

	in.allocate(nrFields);

	for (int i = 0; i < nrFields; i++) {
		SalesforceInputField field = new SalesforceInputField();

		TableItem item = wFields.getNonEmpty(i);

		field.setName(item.getText(1));
		field.setField(item.getText(2));
		field.setIdLookup(BaseMessages.getString(PKG, "System.Combo.Yes").equalsIgnoreCase(item.getText(3)));
		field.setType(ValueMeta.getType(item.getText(4)));
		field.setFormat(item.getText(5));
		field.setLength(Const.toInt(item.getText(6), -1));
		field.setPrecision(Const.toInt(item.getText(7), -1));
		field.setCurrencySymbol(item.getText(8));
		field.setDecimalSymbol(item.getText(9));
		field.setGroupSymbol(item.getText(10));
		field.setTrimType(SalesforceInputField.getTrimTypeByDesc(item.getText(11)));
		field.setRepeated(BaseMessages.getString(PKG, "System.Combo.Yes").equalsIgnoreCase(item.getText(12)));

		in.getInputFields()[i] = field;
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:57,代码来源:SalesforceInputDialog.java


注:本文中的org.pentaho.di.trans.steps.salesforceinput.SalesforceInputMeta.setTimeOut方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。