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


Java SalesforceInputMeta.setModule方法代码示例

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


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

示例3: getInfo

import org.pentaho.di.trans.steps.salesforceinput.SalesforceInputMeta; //导入方法依赖的package包/类
@Override
protected void getInfo( SalesforceStepMeta in ) throws KettleException {
  SalesforceInputMeta meta = (SalesforceInputMeta) in;

  stepname = wStepname.getText(); // return value

  // copy info to SalesforceInputMeta class (input)
  meta.setTargetURL( Const.NVL( wURL.getText(), SalesforceConnectionUtils.TARGET_DEFAULT_URL ) );
  meta.setUsername( Const.NVL( wUserName.getText(), "" ) );
  meta.setPassword( Const.NVL( wPassword.getText(), "" ) );
  meta.setModule( Const.NVL( wModule.getText(), "Account" ) );
  meta.setCondition( Const.NVL( wCondition.getText(), "" ) );

  meta.setSpecifyQuery( wspecifyQuery.getSelection() );
  meta.setQuery( Const.NVL( wQuery.getText(), "" ) );
  meta.setCompression( wUseCompression.getSelection() );
  meta.setQueryAll( wQueryAll.getSelection() );
  meta.setTimeout( Const.NVL( wTimeOut.getText(), "0" ) );
  meta.setRowLimit( Const.NVL( wLimit.getText(), "0" ) );
  meta.setTargetURLField( Const.NVL( wInclURLField.getText(), "" ) );
  meta.setSQLField( Const.NVL( wInclSQLField.getText(), "" ) );
  meta.setTimestampField( Const.NVL( wInclTimestampField.getText(), "" ) );
  meta.setModuleField( Const.NVL( wInclModuleField.getText(), "" ) );
  meta.setRowNumberField( Const.NVL( wInclRownumField.getText(), "" ) );
  meta.setRecordsFilter( SalesforceConnectionUtils.getRecordsFilterByDesc( wRecordsFilter.getText() ) );
  meta.setIncludeTargetURL( wInclURL.getSelection() );
  meta.setIncludeSQL( wInclSQL.getSelection() );
  meta.setIncludeTimestamp( wInclTimestamp.getSelection() );
  meta.setIncludeModule( wInclModule.getSelection() );
  meta.setIncludeRowNumber( wInclRownum.getSelection() );
  meta.setReadFrom( wReadFrom.getText() );
  meta.setReadTo( wReadTo.getText() );
  meta.setDeletionDateField( Const.NVL( wInclDeletionDateField.getText(), "" ) );
  meta.setIncludeDeletionDate( wInclDeletionDate.getSelection() );
  int nrFields = wFields.nrNonEmpty();

  meta.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( ValueMetaFactory.getIdForValueMeta( 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 ) ) );

    //CHECKSTYLE:Indentation:OFF
    meta.getInputFields()[i] = field;
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:61,代码来源:SalesforceInputDialog.java


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