本文整理汇总了Java中org.pentaho.di.trans.TransHopMeta.setObjectId方法的典型用法代码示例。如果您正苦于以下问题:Java TransHopMeta.setObjectId方法的具体用法?Java TransHopMeta.setObjectId怎么用?Java TransHopMeta.setObjectId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.trans.TransHopMeta
的用法示例。
在下文中一共展示了TransHopMeta.setObjectId方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: saveTransHopMeta
import org.pentaho.di.trans.TransHopMeta; //导入方法依赖的package包/类
public void saveTransHopMeta(TransHopMeta transHopMeta, ObjectId id_transformation) throws KettleException
{
try
{
// See if a transformation hop with the same fromstep and tostep is
// already available...
ObjectId id_step_from = transHopMeta.getFromStep() == null ? null : transHopMeta.getFromStep().getObjectId();
ObjectId id_step_to = transHopMeta.getToStep() == null ? null : transHopMeta.getToStep().getObjectId();
// Insert new transMeta hop in repository
transHopMeta.setObjectId(insertTransHop(id_transformation, id_step_from, id_step_to, transHopMeta.isEnabled()));
} catch (KettleDatabaseException dbe)
{
throw new KettleException(
BaseMessages.getString(PKG, "TransHopMeta.Exception.UnableToSaveTransformationHopInfo") + id_transformation, dbe); //$NON-NLS-1$
}
}
示例2: saveTransHopMeta
import org.pentaho.di.trans.TransHopMeta; //导入方法依赖的package包/类
public void saveTransHopMeta( TransHopMeta transHopMeta, ObjectId id_transformation ) throws KettleException {
try {
// See if a transformation hop with the same fromstep and tostep is
// already available...
ObjectId id_step_from = transHopMeta.getFromStep() == null ? null : transHopMeta.getFromStep().getObjectId();
ObjectId id_step_to = transHopMeta.getToStep() == null ? null : transHopMeta.getToStep().getObjectId();
// Insert new transMeta hop in repository
transHopMeta.setObjectId( insertTransHop( id_transformation, id_step_from, id_step_to, transHopMeta
.isEnabled() ) );
} catch ( KettleDatabaseException dbe ) {
throw new KettleException( BaseMessages.getString(
PKG, "TransHopMeta.Exception.UnableToSaveTransformationHopInfo" )
+ id_transformation, dbe );
}
}