本文整理汇总了Java中org.pentaho.di.trans.steps.salesforceinput.SalesforceInputMeta.setQuery方法的典型用法代码示例。如果您正苦于以下问题:Java SalesforceInputMeta.setQuery方法的具体用法?Java SalesforceInputMeta.setQuery怎么用?Java SalesforceInputMeta.setQuery使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.trans.steps.salesforceinput.SalesforceInputMeta
的用法示例。
在下文中一共展示了SalesforceInputMeta.setQuery方法的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(),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;
}
}
示例2: 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;
}
}