本文整理匯總了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;
}
示例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;
}
示例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;
}
示例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);
}
}
示例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;
}
示例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;
}
示例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;
}
示例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 );
}
}
示例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);
}
示例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);
}
示例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);
}
示例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 );
}
示例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 );
}
示例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 );
}