本文整理汇总了Java中org.pentaho.di.repository.Repository.saveConditionStepAttribute方法的典型用法代码示例。如果您正苦于以下问题:Java Repository.saveConditionStepAttribute方法的具体用法?Java Repository.saveConditionStepAttribute怎么用?Java Repository.saveConditionStepAttribute使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.repository.Repository
的用法示例。
在下文中一共展示了Repository.saveConditionStepAttribute方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: saveRep
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step) throws KettleException
{
try
{
if (condition!=null)
{
List<StreamInterface> targetStreams = getStepIOMeta().getTargetStreams();
rep.saveConditionStepAttribute(id_transformation, id_step, "id_condition", condition);
rep.saveStepAttribute(id_transformation, id_step, "send_true_to", targetStreams.get(0).getStepname()); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "send_false_to", targetStreams.get(1).getStepname()); //$NON-NLS-1$
}
}
catch(Exception e)
{
throw new KettleException(BaseMessages.getString(PKG, "FilterRowsMeta.Exception.UnableToSaveStepInfoToRepository")+id_step, e); //$NON-NLS-1$
}
}
示例2: saveRep
import org.pentaho.di.repository.Repository; //导入方法依赖的package包/类
public void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step) throws KettleException
{
try
{
rep.saveStepAttribute(id_transformation, id_step, "directory", directory); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "prefix", prefix); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "cache_size", cacheSize); //$NON-NLS-1$
rep.saveStepAttribute(id_transformation, id_step, "main", getLookupStepname()); //$NON-NLS-1$
rep.saveConditionStepAttribute(id_transformation, id_step, "id_condition", condition);
}
catch(Exception e)
{
throw new KettleException(BaseMessages.getString(PKG, "JoinRowsMeta.Exception.UnableToSaveStepInfoToRepository")+id_step, e); //$NON-NLS-1$
}
}