本文整理汇总了Java中org.pentaho.di.openerp.core.OpenERPHelper.StartSession方法的典型用法代码示例。如果您正苦于以下问题:Java OpenERPHelper.StartSession方法的具体用法?Java OpenERPHelper.StartSession怎么用?Java OpenERPHelper.StartSession使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.openerp.core.OpenERPHelper
的用法示例。
在下文中一共展示了OpenERPHelper.StartSession方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getFields
import org.pentaho.di.openerp.core.OpenERPHelper; //导入方法依赖的package包/类
public void getFields(final RowMetaInterface row, final String origin,
final RowMetaInterface[] info, final StepMeta nextStep,
final VariableSpace space) throws KettleStepException {
if (databaseMeta == null)
throw new KettleStepException("There is no OpenERP database server connection defined");
final OpenERPHelper helper = new OpenERPHelper(databaseMeta);
try {
helper.StartSession();
final RowMetaInterface rowMeta = this.getRowMeta();
row.addRowMeta(rowMeta);
} catch (Exception e) {
throw new KettleStepException(e);
}
}
示例2: getFields
import org.pentaho.di.openerp.core.OpenERPHelper; //导入方法依赖的package包/类
public void getFields( final RowMetaInterface row, final String origin, final RowMetaInterface[] info,
final StepMeta nextStep, final VariableSpace space, Repository repository, IMetaStore metaStore )
throws KettleStepException {
if ( databaseMeta == null ) {
throw new KettleStepException( "There is no OpenERP database server connection defined" );
}
final OpenERPHelper helper = new OpenERPHelper( databaseMeta );
try {
helper.StartSession();
final RowMetaInterface rowMeta = this.getRowMeta();
row.addRowMeta( rowMeta );
} catch ( Exception e ) {
throw new KettleStepException( e );
}
}