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


Java TextFileOutputMeta.setFileAsCommand方法代码示例

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


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

示例1: getInfo

import org.pentaho.di.trans.steps.textfileoutput.TextFileOutputMeta; //导入方法依赖的package包/类
private void getInfo(TextFileOutputMeta tfoi)
{
	tfoi.setFileName(   wFilename.getText() );
	tfoi.setFileAsCommand( wFileIsCommand.getSelection() );
	tfoi.setDoNotOpenNewFileInit(wDoNotOpenNewFileInit.getSelection() );
	tfoi.setFileFormat( wFormat.getText() );
	tfoi.setFileCompression( wCompression.getText() );
       tfoi.setEncoding( wEncoding.getText() );
	tfoi.setSeparator(  wSeparator.getText() );
	tfoi.setEnclosure(  wEnclosure.getText() );
	tfoi.setExtension(  wExtension.getText() );
	tfoi.setSplitEvery( Const.toInt(wSplitEvery.getText(), 0) );
	tfoi.setEndedLine( wEndedLine.getText() );
	
	tfoi.setFileNameField(   wFileNameField.getText() );
	tfoi.setFileNameInField( wFileNameInField.getSelection() );

       tfoi.setEnclosureForced( wEnclForced.getSelection() ); 
	tfoi.setHeaderEnabled( wHeader.getSelection() ); 
	tfoi.setFooterEnabled( wFooter.getSelection() );
	tfoi.setFileAppended( wAppend.getSelection() );
	tfoi.setStepNrInFilename( wAddStepnr.getSelection() );
	tfoi.setPartNrInFilename( wAddPartnr.getSelection() );
	tfoi.setDateInFilename( wAddDate.getSelection() );
	tfoi.setTimeInFilename( wAddTime.getSelection() );
	tfoi.setDateTimeFormat(wDateTimeFormat.getText());
	tfoi.setSpecifyingFormat(wSpecifyFormat.getSelection());
	tfoi.setPadded( wPad.getSelection() );
	tfoi.setAddToResultFiles( wAddToResult.getSelection() );
	tfoi.setFastDump( wFastDump.getSelection() );

	int i;
	//Table table = wFields.table;
	
	int nrfields = wFields.nrNonEmpty();

	tfoi.allocate(nrfields);
	
	for (i=0;i<nrfields;i++)
	{
	    TextFileField field = new TextFileField();
	    
		TableItem item = wFields.getNonEmpty(i);
		field.setName( item.getText(1) );
		field.setType( item.getText(2) );
		field.setFormat( item.getText(3) );
		field.setLength( Const.toInt(item.getText(4), -1) );
		field.setPrecision( Const.toInt(item.getText(5), -1) );
		field.setCurrencySymbol( item.getText(6) );
		field.setDecimalSymbol( item.getText(7) );
		field.setGroupingSymbol( item.getText(8) );
		field.setTrimType( ValueMeta.getTrimTypeByDesc(item.getText(9)));
		field.setNullString( item.getText(10) );
		tfoi.getOutputFields()[i]  = field;
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:57,代码来源:TextFileOutputDialog.java

示例2: getInfo

import org.pentaho.di.trans.steps.textfileoutput.TextFileOutputMeta; //导入方法依赖的package包/类
private void getInfo(TextFileOutputMeta tfoi)
{
	tfoi.setFileName(   wFilename.getText() );
	tfoi.setFileAsCommand( wFileIsCommand.getSelection() );
	tfoi.setServletOutput(wServletOutput.getSelection() );
	tfoi.setCreateParentFolder(wCreateParentFolder.getSelection() );
	tfoi.setDoNotOpenNewFileInit(wDoNotOpenNewFileInit.getSelection() );
	tfoi.setFileFormat( TextFileOutputMeta.formatMapperLineTerminator[wFormat.getSelectionIndex()] );
	tfoi.setFileCompression( wCompression.getText() );
       tfoi.setEncoding( wEncoding.getText() );
	tfoi.setSeparator(  wSeparator.getText() );
	tfoi.setEnclosure(  wEnclosure.getText() );
	tfoi.setExtension(  wExtension.getText() );
	tfoi.setSplitEvery( Const.toInt(wSplitEvery.getText(), 0) );
	tfoi.setEndedLine( wEndedLine.getText() );
	
	tfoi.setFileNameField(   wFileNameField.getText() );
	tfoi.setFileNameInField( wFileNameInField.getSelection() );

       tfoi.setEnclosureForced( wEnclForced.getSelection() );
       tfoi.setEnclosureFixDisabled( wDisableEnclosureFix.getSelection() );
	tfoi.setHeaderEnabled( wHeader.getSelection() ); 
	tfoi.setFooterEnabled( wFooter.getSelection() );
	tfoi.setFileAppended( wAppend.getSelection() );
	tfoi.setStepNrInFilename( wAddStepnr.getSelection() );
	tfoi.setPartNrInFilename( wAddPartnr.getSelection() );
	tfoi.setDateInFilename( wAddDate.getSelection() );
	tfoi.setTimeInFilename( wAddTime.getSelection() );
	tfoi.setDateTimeFormat(wDateTimeFormat.getText());
	tfoi.setSpecifyingFormat(wSpecifyFormat.getSelection());
	tfoi.setPadded( wPad.getSelection() );
	tfoi.setAddToResultFiles( wAddToResult.getSelection() );
	tfoi.setFastDump( wFastDump.getSelection() );

	int i;
	//Table table = wFields.table;
	
	int nrfields = wFields.nrNonEmpty();

	tfoi.allocate(nrfields);
	
	for (i=0;i<nrfields;i++)
	{
	    TextFileField field = new TextFileField();
	    
		TableItem item = wFields.getNonEmpty(i);
		field.setName( item.getText(1) );
		field.setType( item.getText(2) );
		field.setFormat( item.getText(3) );
		field.setLength( Const.toInt(item.getText(4), -1) );
		field.setPrecision( Const.toInt(item.getText(5), -1) );
		field.setCurrencySymbol( item.getText(6) );
		field.setDecimalSymbol( item.getText(7) );
		field.setGroupingSymbol( item.getText(8) );
		field.setTrimType( ValueMeta.getTrimTypeByDesc(item.getText(9)));
		field.setNullString( item.getText(10) );
		tfoi.getOutputFields()[i]  = field;
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:60,代码来源:TextFileOutputDialog.java

示例3: saveInfoInMeta

import org.pentaho.di.trans.steps.textfileoutput.TextFileOutputMeta; //导入方法依赖的package包/类
private void saveInfoInMeta( TextFileOutputMeta tfoi ) {
  tfoi.setFileName( wFilename.getText() );
  tfoi.setFileAsCommand( wFileIsCommand.getSelection() );
  tfoi.setServletOutput( wServletOutput.getSelection() );
  tfoi.setCreateParentFolder( wCreateParentFolder.getSelection() );
  tfoi.setDoNotOpenNewFileInit( wDoNotOpenNewFileInit.getSelection() );
  tfoi.setFileFormat( TextFileOutputMeta.formatMapperLineTerminator[wFormat.getSelectionIndex()] );
  tfoi.setFileCompression( wCompression.getText() );
  tfoi.setEncoding( wEncoding.getText() );
  tfoi.setSeparator( wSeparator.getText() );
  tfoi.setEnclosure( wEnclosure.getText() );
  tfoi.setExtension( wExtension.getText() );
  tfoi.setSplitEvery( Const.toInt( wSplitEvery.getText(), 0 ) );
  tfoi.setEndedLine( wEndedLine.getText() );

  tfoi.setFileNameField( wFileNameField.getText() );
  tfoi.setFileNameInField( wFileNameInField.getSelection() );

  tfoi.setEnclosureForced( wEnclForced.getSelection() );
  tfoi.setEnclosureFixDisabled( wDisableEnclosureFix.getSelection() );
  tfoi.setHeaderEnabled( wHeader.getSelection() );
  tfoi.setFooterEnabled( wFooter.getSelection() );
  tfoi.setFileAppended( wAppend.getSelection() );
  tfoi.setStepNrInFilename( wAddStepnr.getSelection() );
  tfoi.setPartNrInFilename( wAddPartnr.getSelection() );
  tfoi.setDateInFilename( wAddDate.getSelection() );
  tfoi.setTimeInFilename( wAddTime.getSelection() );
  tfoi.setDateTimeFormat( wDateTimeFormat.getText() );
  tfoi.setSpecifyingFormat( wSpecifyFormat.getSelection() );
  tfoi.setPadded( wPad.getSelection() );
  tfoi.setAddToResultFiles( wAddToResult.getSelection() );
  tfoi.setFastDump( wFastDump.getSelection() );

  int i;
  // Table table = wFields.table;

  int nrfields = wFields.nrNonEmpty();

  tfoi.allocate( nrfields );

  for ( i = 0; i < nrfields; i++ ) {
    TextFileField field = new TextFileField();

    TableItem item = wFields.getNonEmpty( i );
    field.setName( item.getText( 1 ) );
    field.setType( item.getText( 2 ) );
    field.setFormat( item.getText( 3 ) );
    field.setLength( Const.toInt( item.getText( 4 ), -1 ) );
    field.setPrecision( Const.toInt( item.getText( 5 ), -1 ) );
    field.setCurrencySymbol( item.getText( 6 ) );
    field.setDecimalSymbol( item.getText( 7 ) );
    field.setGroupingSymbol( item.getText( 8 ) );
    field.setTrimType( ValueMetaString.getTrimTypeByDesc( item.getText( 9 ) ) );
    field.setNullString( item.getText( 10 ) );
    //CHECKSTYLE:Indentation:OFF
    tfoi.getOutputFields()[i] = field;
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:59,代码来源:TextFileOutputDialog.java


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