當前位置: 首頁>>代碼示例>>Java>>正文


Java OpenERPHelper類代碼示例

本文整理匯總了Java中org.pentaho.di.openerp.core.OpenERPHelper的典型用法代碼示例。如果您正苦於以下問題:Java OpenERPHelper類的具體用法?Java OpenERPHelper怎麽用?Java OpenERPHelper使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


OpenERPHelper類屬於org.pentaho.di.openerp.core包,在下文中一共展示了OpenERPHelper類的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: init

import org.pentaho.di.openerp.core.OpenERPHelper; //導入依賴的package包/類
public boolean init(StepMetaInterface smi, StepDataInterface sdi) {
	meta = (OpenERPObjectOutputMeta) smi;
	data = (OpenERPObjectOutputData) sdi;

	if (super.init(smi, sdi)) {
		try {
			this.logDebug("Initializing OpenERP Session");
			data.helper = new OpenERPHelper(meta.getDatabaseMeta());
			data.helper.StartSession();
			openerERPAdapter = data.helper.getAdapter(meta.getModelName());
			return true;
		} catch (Exception e) {
			logError("An error occurred, processing will be stopped: "
					+ e.getMessage());
			setErrors(1);
			stopAll();
		}
	}

	return false;
}
 
開發者ID:jjeb,項目名稱:kettle-trunk,代碼行數:22,代碼來源:OpenERPObjectOutput.java

示例2: init

import org.pentaho.di.openerp.core.OpenERPHelper; //導入依賴的package包/類
public boolean init(StepMetaInterface smi, StepDataInterface sdi) {
	meta = (OpenERPObjectDeleteMeta) smi;
	data = (OpenERPObjectDeleteData) sdi;

	if (super.init(smi, sdi)) {
		try {
			this.logDebug("Initializing OpenERP Session");
			data.helper = new OpenERPHelper(meta.getDatabaseMeta());
			data.helper.StartSession();
			return true;
		} catch (Exception e) {
			logError("An error occurred, processing will be stopped: "
					+ e.getMessage());
			setErrors(1);
			stopAll();
		}
	}

	return false;
}
 
開發者ID:jjeb,項目名稱:kettle-trunk,代碼行數:21,代碼來源:OpenERPObjectDelete.java

示例3: init

import org.pentaho.di.openerp.core.OpenERPHelper; //導入依賴的package包/類
public boolean init(StepMetaInterface smi, StepDataInterface sdi) {
	meta = (OpenERPObjectInputMeta) smi;
	data = (OpenERPObjectInputData) sdi;

	if (super.init(smi, sdi)) {
		try {
			this.logDebug("Initializing OpenERP Session");
			data.helper = new OpenERPHelper(meta.getDatabaseMeta());
			data.helper.StartSession();
			return true;
		} catch (Exception e) {
			logError("An error occurred, processing will be stopped: " + e.getMessage());
			setErrors(1);
			stopAll();
		}
	}

	return false;
}
 
開發者ID:jjeb,項目名稱:kettle-trunk,代碼行數:20,代碼來源:OpenERPObjectInput.java

示例4: 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);
	}
}
 
開發者ID:jjeb,項目名稱:kettle-trunk,代碼行數:17,代碼來源:OpenERPObjectInputMeta.java

示例5: init

import org.pentaho.di.openerp.core.OpenERPHelper; //導入依賴的package包/類
public boolean init( StepMetaInterface smi, StepDataInterface sdi ) {
  meta = (OpenERPObjectOutputMeta) smi;
  data = (OpenERPObjectOutputData) sdi;

  if ( super.init( smi, sdi ) ) {
    try {
      this.logDebug( "Initializing OpenERP Session" );
      data.helper = new OpenERPHelper( meta.getDatabaseMeta() );
      data.helper.StartSession();
      openerERPAdapter = data.helper.getAdapter( meta.getModelName() );
      return true;
    } catch ( Exception e ) {
      logError( "An error occurred, processing will be stopped: " + e.getMessage() );
      setErrors( 1 );
      stopAll();
    }
  }

  return false;
}
 
開發者ID:pentaho,項目名稱:pentaho-kettle,代碼行數:21,代碼來源:OpenERPObjectOutput.java

示例6: init

import org.pentaho.di.openerp.core.OpenERPHelper; //導入依賴的package包/類
public boolean init( StepMetaInterface smi, StepDataInterface sdi ) {
  meta = (OpenERPObjectDeleteMeta) smi;
  data = (OpenERPObjectDeleteData) sdi;

  if ( super.init( smi, sdi ) ) {
    try {
      this.logDebug( "Initializing OpenERP Session" );
      data.helper = new OpenERPHelper( meta.getDatabaseMeta() );
      data.helper.StartSession();
      return true;
    } catch ( Exception e ) {
      logError( "An error occurred, processing will be stopped: " + e.getMessage() );
      setErrors( 1 );
      stopAll();
    }
  }

  return false;
}
 
開發者ID:pentaho,項目名稱:pentaho-kettle,代碼行數:20,代碼來源:OpenERPObjectDelete.java

示例7: init

import org.pentaho.di.openerp.core.OpenERPHelper; //導入依賴的package包/類
public boolean init( StepMetaInterface smi, StepDataInterface sdi ) {
  meta = (OpenERPObjectInputMeta) smi;
  data = (OpenERPObjectInputData) sdi;

  if ( super.init( smi, sdi ) ) {
    try {
      this.logDebug( "Initializing OpenERP Session" );
      data.helper = new OpenERPHelper( meta.getDatabaseMeta() );
      data.helper.StartSession();
      return true;
    } catch ( Exception e ) {
      logError( "An error occurred, processing will be stopped: " + e.getMessage() );
      setErrors( 1 );
      stopAll();
    }
  }

  return false;
}
 
開發者ID:pentaho,項目名稱:pentaho-kettle,代碼行數:20,代碼來源:OpenERPObjectInput.java

示例8: 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 );
  }
}
 
開發者ID:pentaho,項目名稱:pentaho-kettle,代碼行數:18,代碼來源:OpenERPObjectInputMeta.java

示例9: OpenERPObjectOutputData

import org.pentaho.di.openerp.core.OpenERPHelper; //導入依賴的package包/類
public OpenERPObjectOutputData(DatabaseMeta databaseMeta) throws KettleException {
	super();
	if(!(databaseMeta.getDatabaseInterface() instanceof OpenERPDatabaseMeta) ) {
		throw new KettleException ("A connection of type OPENERP is expected");
	}
	helper = new OpenERPHelper(databaseMeta);
}
 
開發者ID:jjeb,項目名稱:kettle-trunk,代碼行數:8,代碼來源:OpenERPObjectOutputData.java

示例10: OpenERPObjectDeleteData

import org.pentaho.di.openerp.core.OpenERPHelper; //導入依賴的package包/類
public OpenERPObjectDeleteData(DatabaseMeta databaseMeta) throws KettleException {
	super();
	if(!(databaseMeta.getDatabaseInterface() instanceof OpenERPDatabaseMeta) ) {
		throw new KettleException ("A connection of type OPENERP is expected");
	}
	helper = new OpenERPHelper(databaseMeta);
}
 
開發者ID:jjeb,項目名稱:kettle-trunk,代碼行數:8,代碼來源:OpenERPObjectDeleteData.java

示例11: OpenERPObjectInputData

import org.pentaho.di.openerp.core.OpenERPHelper; //導入依賴的package包/類
public OpenERPObjectInputData(DatabaseMeta databaseMeta) throws KettleException {
	super();
	if(!(databaseMeta.getDatabaseInterface() instanceof OpenERPDatabaseMeta) ) {
		throw new KettleException ("A connection of type OPENERP is expected");
	}
	helper = new OpenERPHelper(databaseMeta);
}
 
開發者ID:jjeb,項目名稱:kettle-trunk,代碼行數:8,代碼來源:OpenERPObjectInputData.java

示例12: OpenERPObjectOutputData

import org.pentaho.di.openerp.core.OpenERPHelper; //導入依賴的package包/類
public OpenERPObjectOutputData( DatabaseMeta databaseMeta ) throws KettleException {
  super();
  if ( !( databaseMeta.getDatabaseInterface() instanceof OpenERPDatabaseMeta ) ) {
    throw new KettleException( "A connection of type OPENERP is expected" );
  }
  helper = new OpenERPHelper( databaseMeta );
}
 
開發者ID:pentaho,項目名稱:pentaho-kettle,代碼行數:8,代碼來源:OpenERPObjectOutputData.java

示例13: OpenERPObjectDeleteData

import org.pentaho.di.openerp.core.OpenERPHelper; //導入依賴的package包/類
public OpenERPObjectDeleteData( DatabaseMeta databaseMeta ) throws KettleException {
  super();
  if ( !( databaseMeta.getDatabaseInterface() instanceof OpenERPDatabaseMeta ) ) {
    throw new KettleException( "A connection of type OPENERP is expected" );
  }
  helper = new OpenERPHelper( databaseMeta );
}
 
開發者ID:pentaho,項目名稱:pentaho-kettle,代碼行數:8,代碼來源:OpenERPObjectDeleteData.java

示例14: OpenERPObjectInputData

import org.pentaho.di.openerp.core.OpenERPHelper; //導入依賴的package包/類
public OpenERPObjectInputData( DatabaseMeta databaseMeta ) throws KettleException {
  super();
  if ( !( databaseMeta.getDatabaseInterface() instanceof OpenERPDatabaseMeta ) ) {
    throw new KettleException( "A connection of type OPENERP is expected" );
  }
  helper = new OpenERPHelper( databaseMeta );
}
 
開發者ID:pentaho,項目名稱:pentaho-kettle,代碼行數:8,代碼來源:OpenERPObjectInputData.java


注:本文中的org.pentaho.di.openerp.core.OpenERPHelper類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。