当前位置: 首页>>代码示例>>Java>>正文


Java JobEntryCopy.setObjectId方法代码示例

本文整理汇总了Java中org.pentaho.di.job.entry.JobEntryCopy.setObjectId方法的典型用法代码示例。如果您正苦于以下问题:Java JobEntryCopy.setObjectId方法的具体用法?Java JobEntryCopy.setObjectId怎么用?Java JobEntryCopy.setObjectId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.pentaho.di.job.entry.JobEntryCopy的用法示例。


在下文中一共展示了JobEntryCopy.setObjectId方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createStartEntry

import org.pentaho.di.job.entry.JobEntryCopy; //导入方法依赖的package包/类
public static final JobEntryCopy createStartEntry() {
	JobEntrySpecial jobEntrySpecial = new JobEntrySpecial(STRING_SPECIAL_START, true, false);
	JobEntryCopy jobEntry = new JobEntryCopy();
	jobEntry.setObjectId(null);
	jobEntry.setEntry(jobEntrySpecial);
	jobEntry.setLocation(50, 50);
	jobEntry.setDrawn(false);
	jobEntry.setDescription(BaseMessages.getString(PKG, "JobMeta.StartJobEntry.Description")); //$NON-NLS-1$
	return jobEntry;

}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:12,代码来源:JobMeta.java

示例2: createDummyEntry

import org.pentaho.di.job.entry.JobEntryCopy; //导入方法依赖的package包/类
public static final JobEntryCopy createDummyEntry() {
	JobEntrySpecial jobEntrySpecial = new JobEntrySpecial(STRING_SPECIAL_DUMMY, false, true);
	JobEntryCopy jobEntry = new JobEntryCopy();
	jobEntry.setObjectId(null);
	jobEntry.setEntry(jobEntrySpecial);
	jobEntry.setLocation(50, 50);
	jobEntry.setDrawn(false);
	jobEntry.setDescription(BaseMessages.getString(PKG, "JobMeta.DummyJobEntry.Description")); //$NON-NLS-1$
	return jobEntry;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:11,代码来源:JobMeta.java

示例3: saveJobEntryCopy

import org.pentaho.di.job.entry.JobEntryCopy; //导入方法依赖的package包/类
public void saveJobEntryCopy(JobEntryCopy copy, ObjectId id_job) throws KettleException
{
	try
	{
		JobEntryInterface entry = copy.getEntry();
		/*
		 * --1-- Save the JobEntryCopy details... --2-- If we don't find a
		 * id_jobentry, save the jobentry (meaning: only once)
		 */

		// See if an entry with the same name is already available...
		ObjectId id_jobentry = getJobEntryID(copy.getName(), id_job);
		if (id_jobentry == null)
		{
			insertJobEntry(id_job, (JobEntryBase)entry);
			
			// THIS IS THE PLUGIN/JOB-ENTRY BEING SAVED!
			//
			entry.saveRep(repository, id_job);  
			id_jobentry = entry.getObjectId();
		}

		// OK, the entry is saved.
		// Get the entry type...
		//
		ObjectId id_jobentry_type = getJobEntryTypeID(entry.getPluginId());

		// Oops, not found: update the repository!
		if (id_jobentry_type == null)
		{
			repository.updateJobEntryTypes();

			// Try again!
			id_jobentry_type = getJobEntryTypeID(entry.getPluginId());
		}

		// Save the entry copy..
		//
		copy.setObjectId(insertJobEntryCopy(id_job, id_jobentry, id_jobentry_type, copy.getNr(), copy.getLocation().x,
				copy.getLocation().y, copy.isDrawn(), copy.isLaunchingInParallel()));
		
	} catch (KettleDatabaseException dbe) {
		throw new KettleException("Unable to save job entry copy to the repository, id_job=" + id_job, dbe);
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:46,代码来源:KettleDatabaseRepositoryJobEntryDelegate.java


注:本文中的org.pentaho.di.job.entry.JobEntryCopy.setObjectId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。