本文整理汇总了Java中org.pentaho.di.core.Condition.getObjectId方法的典型用法代码示例。如果您正苦于以下问题:Java Condition.getObjectId方法的具体用法?Java Condition.getObjectId怎么用?Java Condition.getObjectId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.core.Condition
的用法示例。
在下文中一共展示了Condition.getObjectId方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: saveCondition
import org.pentaho.di.core.Condition; //导入方法依赖的package包/类
public ObjectId saveCondition(Condition condition, ObjectId id_condition_parent) throws KettleException
{
try
{
condition.setObjectId( insertCondition( id_condition_parent, condition ) );
for (int i=0;i<condition.nrConditions();i++)
{
Condition subc = condition.getCondition(i);
repository.saveCondition(subc, condition.getObjectId());
}
return condition.getObjectId();
}
catch(KettleException dbe)
{
throw new KettleException("Error saving condition to the repository.", dbe);
}
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:19,代码来源:KettleDatabaseRepositoryConditionDelegate.java
示例2: saveCondition
import org.pentaho.di.core.Condition; //导入方法依赖的package包/类
public ObjectId saveCondition( Condition condition, ObjectId id_condition_parent ) throws KettleException {
try {
condition.setObjectId( insertCondition( id_condition_parent, condition ) );
for ( int i = 0; i < condition.nrConditions(); i++ ) {
Condition subc = condition.getCondition( i );
repository.saveCondition( subc, condition.getObjectId() );
}
return condition.getObjectId();
} catch ( KettleException dbe ) {
throw new KettleException( "Error saving condition to the repository.", dbe );
}
}