本文整理匯總了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$
}
}